R version 2.9.0 (2009-04-17) 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(1.249,1.2991,1.3408,1.3119,1.3014,1.3201,1.2938,1.2694,1.2165,1.2037,1.2292,1.2256,1.2015,1.1786,1.1856,1.2103,1.1938,1.202,1.2271,1.277,1.265,1.2684,1.2811,1.2727,1.2611,1.2881,1.3213,1.2999,1.3074,1.3242,1.3516,1.3511,1.3419,1.3716,1.3622,1.3896,1.4227,1.4684,1.457,1.4718,1.4748,1.5527,1.575,1.5557,1.5553,1.577,1.4975,1.4369,1.3322,1.2732,1.3449,1.3239,1.2785,1.305,1.319,1.365,1.4016,1.4088,1.4268,1.4562) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.2490 1.2015 1.2611 1.4227 1.3322 NA [2,] 1.2991 1.1786 1.2881 1.4684 1.2732 NA [3,] 1.3408 1.1856 1.3213 1.4570 1.3449 NA [4,] 1.3119 1.2103 1.2999 1.4718 1.3239 NA [5,] 1.3014 1.1938 1.3074 1.4748 1.2785 NA [6,] 1.3201 1.2020 1.3242 1.5527 1.3050 NA [7,] 1.2938 1.2271 1.3516 1.5750 1.3190 NA [8,] 1.2694 1.2770 1.3511 1.5557 1.3650 NA [9,] 1.2165 1.2650 1.3419 1.5553 1.4016 NA [10,] 1.2037 1.2684 1.3716 1.5770 1.4088 NA [11,] 1.2292 1.2811 1.3622 1.4975 1.4268 NA [12,] 1.2256 1.2727 1.3896 1.4369 1.4562 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0501 -0.0229 0.0270 0.0457 -0.0590 NA [2,] 0.0417 0.0070 0.0332 -0.0114 0.0717 NA [3,] -0.0289 0.0247 -0.0214 0.0148 -0.0210 NA [4,] -0.0105 -0.0165 0.0075 0.0030 -0.0454 NA [5,] 0.0187 0.0082 0.0168 0.0779 0.0265 NA [6,] -0.0263 0.0251 0.0274 0.0223 0.0140 NA [7,] -0.0244 0.0499 -0.0005 -0.0193 0.0460 NA [8,] -0.0529 -0.0120 -0.0092 -0.0004 0.0366 NA [9,] -0.0128 0.0034 0.0297 0.0217 0.0072 NA [10,] 0.0255 0.0127 -0.0094 -0.0795 0.0180 NA [11,] -0.0036 -0.0084 0.0274 -0.0606 0.0294 NA [12,] -0.0241 -0.0116 0.0331 -0.1047 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/html/rcomp/tmp/1g8ca1257959310.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/html/rcomp/tmp/2olfo1257959310.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/html/rcomp/tmp/3qkn71257959310.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/html/rcomp/tmp/4e8ce1257959310.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] [1,] 1.2015 1.2732 1.3213 1.2999 1.2785 1.3050 1.2271 1.2694 1.2165 1.2037 [2,] 1.2490 1.2732 1.3213 1.2999 1.2785 1.3050 1.2938 1.2770 1.2650 1.2684 [3,] 1.2611 1.2881 1.3408 1.3119 1.3014 1.3201 1.3190 1.3511 1.3419 1.3716 [4,] 1.3322 1.2991 1.3449 1.3239 1.3074 1.3242 1.3516 1.3650 1.4016 1.4088 [5,] 1.4227 1.2991 1.3449 1.3239 1.3074 1.3242 1.3516 1.3650 1.5553 1.5770 [,11] [,12] [1,] 1.2292 1.2256 [2,] 1.2811 1.2727 [3,] 1.3622 1.3896 [4,] 1.4268 1.4369 [5,] 1.4975 1.4562 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.202311 1.269799 1.324124 1.294942 1.280979 1.306533 1.278159 1.288919 [2,] 1.319889 1.306401 1.357476 1.328858 1.321821 1.333667 1.359841 1.413281 [,9] [,10] [,11] [,12] [1,] 1.245379 1.272394 1.259249 1.273577 [2,] 1.438421 1.470806 1.465151 1.505623 $out [1] 1.1786 1.4684 1.1856 1.4570 1.2103 1.4718 1.1938 1.4748 1.2020 1.5527 [11] 1.5750 1.5557 $group [1] 2 2 3 3 4 4 5 5 6 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.2015, 1.249, 1.2611, 1.3322, 1.4227, 1.2732, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xmv21257959310.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] [1,] -0.0590 -0.0114 -0.0289 -0.0454 0.0082 0.0140 -0.0244 -0.0120 -0.0128 [2,] -0.0229 0.0070 -0.0214 -0.0165 0.0168 0.0140 -0.0193 -0.0120 0.0034 [3,] 0.0270 0.0332 -0.0210 -0.0105 0.0187 0.0223 -0.0005 -0.0092 0.0072 [4,] 0.0457 0.0417 0.0148 0.0030 0.0265 0.0251 0.0460 -0.0004 0.0217 [5,] 0.0501 0.0717 0.0247 0.0075 0.0265 0.0274 0.0499 -0.0004 0.0297 [,10] [,11] [,12] [1,] -0.0094 -0.0606 -0.10470 [2,] -0.0094 -0.0084 -0.06440 [3,] 0.0127 -0.0036 -0.01785 [4,] 0.0180 0.0274 0.01075 [5,] 0.0255 0.0294 0.03310 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.02147259 0.008681067 -0.046578829 -0.024278651 0.01184600 0.01445677 [2,] 0.07547259 0.057718933 0.004578829 0.003278651 0.02555400 0.03014323 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.04664082 -0.017396531 -0.005730734 -0.006660771 -0.02889619 -0.0772185 [2,] 0.04564082 -0.001003469 0.020130734 0.032060771 0.02169619 0.0415185 $out [1] 0.0779 -0.0263 -0.0529 0.0366 -0.0795 $group [1] 5 6 8 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.059, -0.0228999999999999, 0.0269999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fv0y1257959310.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] [1,] 1.20370 1.17860 1.26110 1.42270 1.27320 NA [2,] 1.22740 1.19765 1.30365 1.46270 1.31200 NA [3,] 1.28160 1.21870 1.33305 1.48615 1.33855 NA [4,] 1.30665 1.27055 1.35690 1.55550 1.40520 NA [5,] 1.34080 1.28110 1.38960 1.57700 1.45620 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.245454 1.185450 1.308762 1.443823 1.296041 NA [2,] 1.317746 1.251950 1.357338 1.528477 1.381059 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.2037, 1.2274, 1.2816, 1.30665, 1.3408, 1.1786, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ntea1257959310.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,] 1.29330 1.26110 1.286150 [2,] 1.31737 1.30665 1.302425 [3,] 1.34705 1.33045 1.321850 [4,] 1.35778 1.35665 1.335950 [5,] 1.36590 1.38960 1.354800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.328619 1.307645 1.306559 [2,] 1.365481 1.353255 1.337141 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.2933, 1.31737, 1.34705, 1.35778, 1.3659, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1g8ca1257959310.ps tmp/1g8ca1257959310.png") > system("convert tmp/2olfo1257959310.ps tmp/2olfo1257959310.png") > system("convert tmp/3qkn71257959310.ps tmp/3qkn71257959310.png") > system("convert tmp/4e8ce1257959310.ps tmp/4e8ce1257959310.png") > system("convert tmp/5xmv21257959310.ps tmp/5xmv21257959310.png") > system("convert tmp/6fv0y1257959310.ps tmp/6fv0y1257959310.png") > system("convert tmp/7ntea1257959310.ps tmp/7ntea1257959310.png") > > > proc.time() user system elapsed 1.221 0.972 1.541