R version 2.8.1 (2008-12-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(269645,267037,258113,262813,267413,267366,264777,258863,254844,254868,277267,285351,286602,283042,276687,277915,277128,277103,275037,270150,267140,264993,287259,291186,292300,288186,281477,282656,280190,280408,276836,275216,274352,271311,289802,290726,292300,278506,269826,265861,269034,264176,255198,253353,246057,235372,258556,260993,254663,250643,243422,247105,248541,245039,237080,237085,225554,226839,247934,248333,246969,245098,246263,255765,264319,268347,273046,273963,267430,271993,292710,295881) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 72 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 269645 286602 292300 292300 254663 246969 NA [2,] 267037 283042 288186 278506 250643 245098 NA [3,] 258113 276687 281477 269826 243422 246263 NA [4,] 262813 277915 282656 265861 247105 255765 NA [5,] 267413 277128 280190 269034 248541 264319 NA [6,] 267366 277103 280408 264176 245039 268347 NA [7,] 264777 275037 276836 255198 237080 273046 NA [8,] 258863 270150 275216 253353 237085 273963 NA [9,] 254844 267140 274352 246057 225554 267430 NA [10,] 254868 264993 271311 235372 226839 271993 NA [11,] 277267 287259 289802 258556 247934 292710 NA [12,] 285351 291186 290726 260993 248333 295881 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2608 -3560 -4114 -13794 -4020 -1871 NA [2,] -8924 -6355 -6709 -8680 -7221 1165 NA [3,] 4700 1228 1179 -3965 3683 9502 NA [4,] 4600 -787 -2466 3173 1436 8554 NA [5,] -47 -25 218 -4858 -3502 4028 NA [6,] -2589 -2066 -3572 -8978 -7959 4699 NA [7,] -5914 -4887 -1620 -1845 5 917 NA [8,] -4019 -3010 -864 -7296 -11531 -6533 NA [9,] 24 -2147 -3041 -10685 1285 4563 NA [10,] 22399 22266 18491 23184 21095 20717 NA [11,] 8084 3927 924 2437 399 3171 NA [12,] 1251 1114 1574 -6330 -1364 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/rcomp/tmp/1spgc1257904035.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/219511257904035.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/3l10r1257904035.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/4v8b41257904035.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 246969.0 245098.0 243422.0 247105 248541.0 245039.0 237080.0 237085.0 [2,] 254663.0 250643.0 246263.0 255765 264319.0 264176.0 255198.0 253353.0 [3,] 278123.5 272771.5 263969.5 264337 268223.5 267856.5 268911.5 264506.5 [4,] 292300.0 283042.0 276687.0 277915 277128.0 277103.0 275037.0 273963.0 [5,] 292300.0 288186.0 281477.0 282656 280190.0 280408.0 276836.0 275216.0 [,9] [,10] [,11] [,12] [1,] 225554 226839.0 247934 248333.0 [2,] 246057 235372.0 258556 260993.0 [3,] 260992 259930.5 282263 288038.5 [4,] 267430 271311.0 289802 291186.0 [5,] 274352 271993.0 292710 295881.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 253846.4 251873.1 244345.0 250049.5 259961.3 259518.2 256114.7 251212.4 [2,] 302400.6 293669.9 283594.0 278624.5 276485.7 276194.8 281708.3 277800.6 [,9] [,10] [,11] [,12] [1,] 247205.7 236748.7 262108.3 268563.0 [2,] 274778.3 283112.3 302417.7 307514.0 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(246969, 254663, 278123.5, 292300, 292300, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/50c1u1257904035.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -4114 -8924 -3965.0 -2466.0 -4858 -8978.0 -5914.0 -11531 -3041.0 18491.0 [2,] -4114 -8680 1179.0 -787.0 -3502 -7959.0 -4887.0 -7296 -3041.0 20717.0 [3,] -3790 -6965 2455.5 2304.5 -36 -3080.5 -1732.5 -5276 -1061.5 21680.5 [4,] -2608 -6355 4700.0 4600.0 218 -2066.0 5.0 -3010 1285.0 22399.0 [5,] -1871 -6355 9502.0 8554.0 4028 4699.0 917.0 -864 4563.0 23184.0 [,11] [,12] [1,] 399 -1364 [2,] 924 -1364 [3,] 2804 1114 [4,] 3927 1251 [5,] 8084 1574 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4761.419 -8464.7 184.3413 -1170.289 -2435.52 -6881.6753 -4887.998 [2,] -2818.581 -5465.3 4726.6587 5779.289 2363.52 720.6753 1422.998 [,8] [,9] [,10] [,11] [,12] [1,] -8040.608 -3851.910 20595.56 866.968 -733.7524 [2,] -2511.392 1728.910 22765.44 4741.032 2961.7524 $out [1] -13794 1165 -10685 -6330 $group [1] 1 2 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4114, -4114, -3790, -2608, -1871, -8924, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/691t71257904035.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 254844 264993.0 271311.0 235372.0 225554.0 245098.0 NA [2,] 258488 272593.5 276026.0 254275.5 237082.5 251367.0 NA [3,] 265907 277115.5 280942.5 262584.5 246072.0 267888.5 NA [4,] 268529 284822.0 288994.0 269430.0 248437.0 273504.5 NA [5,] 277267 291186.0 292300.0 278506.0 254663.0 295881.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 261327.2 271538 275027.7 255672.4 240893.1 257791.4 NA [2,] 270486.8 282693 286857.3 269496.6 251250.9 277985.6 NA $out [1] 285351 292300 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(254844, 258488, 265907, 268529, 277267, 264993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7saym1257904035.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 254229.3 259930.5 254988.8 [2,] 262034.8 264153.2 262984.4 [3,] 266212.8 268040.0 267269.5 [4,] 271249.2 275447.5 272370.2 [5,] 278745.0 288038.5 279076.8 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 262010.1 262888.6 262988.5 [2,] 270415.6 273191.4 271550.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(254229.333333333, 262034.833333333, 266212.833333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1spgc1257904035.ps tmp/1spgc1257904035.png") > system("convert tmp/219511257904035.ps tmp/219511257904035.png") > system("convert tmp/3l10r1257904035.ps tmp/3l10r1257904035.png") > system("convert tmp/4v8b41257904035.ps tmp/4v8b41257904035.png") > system("convert tmp/50c1u1257904035.ps tmp/50c1u1257904035.png") > system("convert tmp/691t71257904035.ps tmp/691t71257904035.png") > system("convert tmp/7saym1257904035.ps tmp/7saym1257904035.png") > > > proc.time() user system elapsed 1.500 1.440 2.751