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(154,96,73,49,36,59,95,169,210,278,298,245,200,118,90,79,78,91,167,169,289,347,375,203,223,104,107,85,75,99,135,211,335,460,488,326,346,261,224,141,148,145,223,272,445,560,612,467,518,404,300,210,196,186,247,343,464,680,711,610,613,392,273,322,189,257,324,404,677,858,895,664,628,308,324,248,272) > 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] 77 > (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] 7 7 7 7 7 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 154 200 223 346 518 613 628 [2,] 96 118 104 261 404 392 308 [3,] 73 90 107 224 300 273 324 [4,] 49 79 85 141 210 322 248 [5,] 36 78 75 148 196 189 272 [6,] 59 91 99 145 186 257 NA [7,] 95 167 135 223 247 324 NA [8,] 169 169 211 272 343 404 NA [9,] 210 289 335 445 464 677 NA [10,] 278 347 460 560 680 858 NA [11,] 298 375 488 612 711 895 NA [12,] 245 203 326 467 610 664 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -58 -82 -119 -85 -114 -221 -320 [2,] -23 -28 3 -37 -104 -119 16 [3,] -24 -11 -22 -83 -90 49 -76 [4,] -13 -1 -10 7 -14 -133 24 [5,] 23 13 24 -3 -10 68 NA [6,] 36 76 36 78 61 67 NA [7,] 74 2 76 49 96 80 NA [8,] 41 120 124 173 121 273 NA [9,] 68 58 125 115 216 181 NA [10,] 20 28 28 52 31 37 NA [11,] -53 -172 -162 -145 -101 -231 NA [12,] -45 20 20 51 3 -36 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/1fkzi1271957207.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/2fkzi1271957207.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/3qty31271957207.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/4qty31271957207.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,] 154.0 96 73.0 49 36.0 59 95 169.0 210 278 298 203.0 [2,] 211.5 111 98.5 82 76.5 91 135 169.0 289 347 375 245.0 [3,] 346.0 261 224.0 141 148.0 122 195 241.5 390 510 550 396.5 [4,] 565.5 350 286.5 229 192.5 186 247 343.0 464 680 711 610.0 [5,] 628.0 404 324.0 322 272.0 257 324 404.0 677 858 895 664.0 $n [1] 7 7 7 7 7 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 134.5969 118.2731 111.7294 53.21397 78.72667 60.72193 122.7564 129.2644 [2,] 557.4031 403.7269 336.2706 228.78603 217.27333 183.27807 267.2436 353.7356 [,9] [,10] [,11] [,12] [1,] 277.1193 295.2042 333.2691 161.0632 [2,] 502.8807 724.7958 766.7309 631.9368 $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(154, 211.5, 346, 565.5, 628, 96, 111, 261, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5qty31271957207.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,] -221.0 -119.0 -90.0 -14.0 -10 36 49 41.0 58 20.0 -231.0 -45.0 [2,] -170.0 -70.5 -79.5 -13.5 -3 36 49 120.0 68 28.0 -172.0 -36.0 [3,] -114.0 -28.0 -24.0 -10.0 18 64 75 122.5 120 29.5 -153.5 11.5 [4,] -83.5 -10.0 -16.5 3.0 24 76 80 173.0 181 37.0 -101.0 20.0 [5,] -58.0 16.0 49.0 24.0 24 78 96 173.0 216 37.0 -53.0 51.0 $n [1] 7 7 7 7 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -165.6564 -64.129624 -61.62258 -19.8535338 0.5841279 38.19871 55.004 [2,] -62.3436 8.129624 13.62258 -0.1464662 35.4158721 89.80129 94.996 [,8] [,9] [,10] [,11] [,12] [1,] 88.31329 47.11135 23.69471 -199.2973 -24.62181 [2,] 156.68671 192.88865 35.30529 -107.7027 47.62181 $out [1] -320 -133 68 2 273 52 $group [1] 1 4 5 7 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-221, -170, -114, -83.5, -58, -119, -70.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/61kf61271957207.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,] 36.0 78.0 75.0 141.0 186.0 189.0 248 [2,] 66.0 90.5 101.5 185.5 228.5 297.5 272 [3,] 125.0 168.0 173.0 266.5 373.5 398.0 308 [4,] 227.5 246.0 330.5 456.0 564.0 670.5 324 [5,] 298.0 375.0 488.0 612.0 711.0 895.0 324 $n [1] 12 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 51.33877 97.0754 68.55156 143.1231 220.4762 227.8722 271.2569 [2,] 198.66123 238.9246 277.44844 389.8769 526.5238 568.1278 344.7431 $out [1] 628 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(36, 66, 125, 227.5, 298, 78, 90.5, 168, 246, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/71kf61271957207.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,] 139.5000 122.00 134.3750 [2,] 180.2500 171.50 173.7500 [3,] 250.8810 251.25 241.4375 [4,] 411.2500 393.25 404.1250 [5,] 563.1667 550.00 544.7500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 145.5203 150.1083 136.3619 [2,] 356.2416 352.3917 346.5131 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(139.5, 180.25, 250.880952380952, 411.25, 563.166666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fkzi1271957207.ps tmp/1fkzi1271957207.png",intern=TRUE)) character(0) > try(system("convert tmp/2fkzi1271957207.ps tmp/2fkzi1271957207.png",intern=TRUE)) character(0) > try(system("convert tmp/3qty31271957207.ps tmp/3qty31271957207.png",intern=TRUE)) character(0) > try(system("convert tmp/4qty31271957207.ps tmp/4qty31271957207.png",intern=TRUE)) character(0) > try(system("convert tmp/5qty31271957207.ps tmp/5qty31271957207.png",intern=TRUE)) character(0) > try(system("convert tmp/61kf61271957207.ps tmp/61kf61271957207.png",intern=TRUE)) character(0) > try(system("convert tmp/71kf61271957207.ps tmp/71kf61271957207.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.690 1.590 2.775