R version 2.10.1 (2009-12-14) Copyright (C) 2009 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(59,58,57,55,53,52,53,55,56,56,57,59,68,68,68,70,66,64,72,80,84,82,83,86,99,100,95,98,103,107,114,123,132,137,141,146,156,156,143,143,151,149,156,166,177,180,189,195,205,209,199,191,198,200,208,224,234,243,249,258,274,270,261,258,261,258,264,270,267,287,297,306,322,323,309,303,306,301,316,327,330,342,359,379) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 59 68 99 156 205 274 322 NA [2,] 58 68 100 156 209 270 323 NA [3,] 57 68 95 143 199 261 309 NA [4,] 55 70 98 143 191 258 303 NA [5,] 53 66 103 151 198 261 306 NA [6,] 52 64 107 149 200 258 301 NA [7,] 53 72 114 156 208 264 316 NA [8,] 55 80 123 166 224 270 327 NA [9,] 56 84 132 177 234 267 330 NA [10,] 56 82 137 180 243 287 342 NA [11,] 57 83 141 189 249 297 359 NA [12,] 59 86 146 195 258 306 379 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 0 1 0 4 -4 1 NA [2,] -1 0 -5 -13 -10 -9 -14 NA [3,] -2 2 3 0 -8 -3 -6 NA [4,] -2 -4 5 8 7 3 3 NA [5,] -1 -2 4 -2 2 -3 -5 NA [6,] 1 8 7 7 8 6 15 NA [7,] 2 8 9 10 16 6 11 NA [8,] 1 4 9 11 10 -3 3 NA [9,] 0 -2 5 3 9 20 12 NA [10,] 1 1 4 9 6 10 17 NA [11,] 2 3 5 6 9 9 20 NA [12,] 9 13 10 10 16 16 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/1379h1278072331.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/2379h1278072331.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/3379h1278072331.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/4wyrk1278072331.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] [,9] [,10] [,11] [,12] [1,] 59.0 58.0 57.0 55.0 53.0 52.0 53 55.0 56.0 56.0 57 59 [2,] 83.5 84.0 81.5 84.0 84.5 85.5 93 101.5 108.0 109.5 112 116 [3,] 156.0 156.0 143.0 143.0 151.0 149.0 156 166.0 177.0 180.0 189 195 [4,] 239.5 239.5 230.0 224.5 229.5 229.0 236 247.0 250.5 265.0 273 282 [5,] 322.0 323.0 309.0 303.0 306.0 301.0 316 327.0 330.0 342.0 359 379 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 62.83932 63.13791 54.3182 59.09567 64.40834 63.30412 70.6027 [2,] 249.16068 248.86209 231.6818 226.90433 237.59166 234.69588 241.3973 [,8] [,9] [,10] [,11] [,12] [1,] 79.10975 91.9013 87.1379 92.8534 95.86748 [2,] 252.89025 262.0987 272.8621 285.1466 294.13252 $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(59, 83.5, 156, 239.5, 322, 58, 84, 156, 239.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5wyrk1278072331.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] [,11] [,12] [1,] -1.0 -14.0 -8.0 -4.0 -5.0 6.0 2.0 -3.0 -2.0 1.0 2 9.0 [2,] -0.5 -11.5 -4.5 0.5 -2.5 6.5 7.0 2.0 1.5 2.5 4 10.0 [3,] 0.0 -9.0 -2.0 3.0 -2.0 7.0 9.0 4.0 5.0 6.0 6 11.5 [4,] 1.0 -3.0 1.0 6.0 0.5 8.0 10.5 9.5 10.5 9.5 9 16.0 [5,] 1.0 0.0 3.0 8.0 4.0 8.0 11.0 11.0 20.0 17.0 9 16.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.8957758 -14.076063 -5.284511 -0.2845113 -3.7915516 6.104224 6.909856 [2,] 0.8957758 -3.923937 1.284511 6.2845113 -0.2084484 7.895776 11.090144 [,8] [,9] [,10] [,11] [,12] [1,] -0.478879 -0.3746548 1.819713 3.014081 7.629806 [2,] 8.478879 10.3746548 10.180287 8.985919 15.370194 $out [1] 4 -4 1 15 16 20 $group [1] 1 1 6 6 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, -0.5, 0, 1, 1, -14, -11.5, -9, -3, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6wyrk1278072331.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] [,8] [1,] 52.0 64.0 95.0 143.0 191.0 258.0 301.0 NA [2,] 54.0 68.0 99.5 150.0 199.5 261.0 307.5 NA [3,] 56.0 71.0 110.5 156.0 208.5 268.5 322.5 NA [4,] 57.5 82.5 134.5 178.5 238.5 280.5 336.0 NA [5,] 59.0 86.0 146.0 195.0 258.0 306.0 359.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 54.40363 64.38645 94.53627 143.0010 190.7118 259.6059 309.5010 NA [2,] 57.59637 77.61355 126.46373 168.9990 226.2882 277.3941 335.4990 NA $out [1] 379 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(52, 54, 56, 57.5, 59, 64, 68, 71, 82.5, 86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/77pq41278072331.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,] 159.7143 143.0 154.250 [2,] 162.1429 150.0 157.125 [3,] 169.0714 156.0 163.125 [4,] 186.2143 178.5 183.250 [5,] 204.1429 195.0 199.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 158.0923 143.0010 151.2092 [2,] 180.0506 168.9990 175.0408 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(159.714285714286, 162.142857142857, 169.071428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1379h1278072331.ps tmp/1379h1278072331.png",intern=TRUE)) character(0) > try(system("convert tmp/2379h1278072331.ps tmp/2379h1278072331.png",intern=TRUE)) character(0) > try(system("convert tmp/3379h1278072331.ps tmp/3379h1278072331.png",intern=TRUE)) character(0) > try(system("convert tmp/4wyrk1278072331.ps tmp/4wyrk1278072331.png",intern=TRUE)) character(0) > try(system("convert tmp/5wyrk1278072331.ps tmp/5wyrk1278072331.png",intern=TRUE)) character(0) > try(system("convert tmp/6wyrk1278072331.ps tmp/6wyrk1278072331.png",intern=TRUE)) character(0) > try(system("convert tmp/77pq41278072331.ps tmp/77pq41278072331.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.430 1.210 1.583