R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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.322,1.3661,1.3898,1.3067,1.2894,1.277,1.2208,1.2565,1.3406,1.3569,1.3686,1.4272,1.4614,1.4914,1.4816,1.4562,1.4268,1.4088,1.4016,1.365,1.319,1.305,1.2785,1.3239,1.3449,1.2732,1.3322,1.437,1.4975,1.577,1.5553,1.5557,1.575,1.5527,1.4748,1.4718,1.457,1.4684,1.4227,1.3896,1.3622,1.3716,1.3419,1.3511,1.3516,1.3242,1.3074,1.2999,1.3213,1.2881,1.2611,1.2727,1.2811,1.2684,1.265,1.277,1.2271,1.202,1.1938,1.2103,1.1856,1.1786,1.2015,1.2256,1.2292,1.2037,1.2165,1.2694,1.2938,1.3201,1.3014,1.3119) > 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,] 1.3220 1.4614 1.3449 1.4570 1.3213 1.1856 NA [2,] 1.3661 1.4914 1.2732 1.4684 1.2881 1.1786 NA [3,] 1.3898 1.4816 1.3322 1.4227 1.2611 1.2015 NA [4,] 1.3067 1.4562 1.4370 1.3896 1.2727 1.2256 NA [5,] 1.2894 1.4268 1.4975 1.3622 1.2811 1.2292 NA [6,] 1.2770 1.4088 1.5770 1.3716 1.2684 1.2037 NA [7,] 1.2208 1.4016 1.5553 1.3419 1.2650 1.2165 NA [8,] 1.2565 1.3650 1.5557 1.3511 1.2770 1.2694 NA [9,] 1.3406 1.3190 1.5750 1.3516 1.2271 1.2938 NA [10,] 1.3569 1.3050 1.5527 1.3242 1.2020 1.3201 NA [11,] 1.3686 1.2785 1.4748 1.3074 1.1938 1.3014 NA [12,] 1.4272 1.3239 1.4718 1.2999 1.2103 1.3119 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.0441 0.0300 -0.0717 0.0114 -0.0332 -0.0070 NA [2,] 0.0237 -0.0098 0.0590 -0.0457 -0.0270 0.0229 NA [3,] -0.0831 -0.0254 0.1048 -0.0331 0.0116 0.0241 NA [4,] -0.0173 -0.0294 0.0605 -0.0274 0.0084 0.0036 NA [5,] -0.0124 -0.0180 0.0795 0.0094 -0.0127 -0.0255 NA [6,] -0.0562 -0.0072 -0.0217 -0.0297 -0.0034 0.0128 NA [7,] 0.0357 -0.0366 0.0004 0.0092 0.0120 0.0529 NA [8,] 0.0841 -0.0460 0.0193 0.0005 -0.0499 0.0244 NA [9,] 0.0163 -0.0140 -0.0223 -0.0274 -0.0251 0.0263 NA [10,] 0.0117 -0.0265 -0.0779 -0.0168 -0.0082 -0.0187 NA [11,] 0.0586 0.0454 -0.0030 -0.0075 0.0165 0.0105 NA [12,] 0.0342 0.0210 -0.0148 0.0214 -0.0247 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/wessaorg/rcomp/tmp/1qg8x1331669294.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2pjud1331669294.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/30bxb1331669294.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4x8uk1331669294.ps",horizontal=F,onefile=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.18560 1.1786 1.2015 1.22560 1.2292 1.2037 1.21650 1.25650 1.2271 1.30500 [2,] 1.32130 1.2732 1.2611 1.27270 1.2811 1.2684 1.22080 1.26940 1.2938 1.30500 [3,] 1.33345 1.3271 1.3610 1.34815 1.3258 1.3243 1.30345 1.31405 1.3298 1.32215 [4,] 1.45700 1.4684 1.4227 1.43700 1.4268 1.4088 1.40160 1.36500 1.3516 1.35690 [5,] 1.46140 1.4914 1.4816 1.45620 1.4975 1.5770 1.55530 1.36500 1.3516 1.35690 [,11] [,12] [1,] 1.1938 1.2103 [2,] 1.2785 1.2999 [3,] 1.3044 1.3179 [4,] 1.3686 1.4272 [5,] 1.4748 1.4718 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.245919 1.20119 1.256763 1.242171 1.231819 1.233737 1.186828 1.252385 [2,] 1.420981 1.45301 1.465237 1.454129 1.419781 1.414863 1.420072 1.375715 [,9] [,10] [,11] [,12] [1,] 1.292517 1.288673 1.246283 1.235787 [2,] 1.367083 1.355627 1.362517 1.400013 $out [1] 1.5557 1.5750 1.5527 1.2020 $group [1] 8 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.1856, 1.3213, 1.33345, 1.457, 1.4614, 1.1786, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5zt4r1331669294.ps",horizontal=F,onefile=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] [1,] -0.0717 -0.04570 -0.0831 -0.02940 -0.02550 -0.05620 -0.0366 -0.0499 [2,] -0.0332 -0.02700 -0.0331 -0.02740 -0.01800 -0.02970 0.0004 -0.0460 [3,] 0.0022 0.00655 -0.0069 -0.00685 -0.01255 -0.01445 0.0106 0.0099 [4,] 0.0300 0.02370 0.0241 0.00840 0.00940 -0.00340 0.0357 0.0244 [5,] 0.0441 0.05900 0.1048 0.06050 0.00940 0.01280 0.0529 0.0841 [,9] [,10] [,11] [,12] [1,] -0.02740 -0.02650 -0.0075 -0.0247 [2,] -0.02510 -0.02650 -0.0030 -0.0148 [3,] -0.01815 -0.01775 0.0135 0.0210 [4,] 0.01630 -0.00820 0.0454 0.0214 [5,] 0.02630 0.01170 0.0586 0.0342 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.03856604 -0.02615314 -0.04379585 -0.02994216 -0.030223885 -0.031414349 [2,] 0.04296604 0.03925314 0.02999585 0.01624216 0.005123885 0.002514349 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.01216964 -0.03551027 -0.044854337 -0.029554091 -0.01771956 -0.004578829 [2,] 0.03336964 0.05531027 0.008554337 -0.005945909 0.04471956 0.046578829 $out [1] 0.0795 -0.0779 $group [1] 5 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0716999999999999, -0.0331999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6th0n1331669294.ps",horizontal=F,onefile=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,] 1.22080 1.27850 1.27320 1.29990 1.19380 1.1786 NA [2,] 1.28320 1.32145 1.39095 1.33305 1.21870 1.2026 NA [3,] 1.33130 1.40520 1.48615 1.35690 1.26670 1.2274 NA [4,] 1.36735 1.45880 1.55550 1.40615 1.27905 1.2976 NA [5,] 1.42720 1.49140 1.57700 1.46840 1.32130 1.3201 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.292919 1.342554 1.411098 1.323559 1.239174 1.18407 NA [2,] 1.369681 1.467846 1.561202 1.390241 1.294226 1.27073 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.2208, 1.2832, 1.3313, 1.36735, 1.4272, 1.2785, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/79gcq1331669294.ps",horizontal=F,onefile=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.333517 1.303450 1.309262 [2,] 1.342158 1.315975 1.321619 [3,] 1.346742 1.325050 1.340850 [4,] 1.348425 1.331625 1.352656 [5,] 1.351183 1.348150 1.375225 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.343883 1.317912 1.326694 [2,] 1.349600 1.332188 1.355006 $out [1] 1.32075 1.36100 $group [1] 1 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.33351666666667, 1.34215833333333, 1.34674166666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qg8x1331669294.ps tmp/1qg8x1331669294.png",intern=TRUE)) character(0) > try(system("convert tmp/2pjud1331669294.ps tmp/2pjud1331669294.png",intern=TRUE)) character(0) > try(system("convert tmp/30bxb1331669294.ps tmp/30bxb1331669294.png",intern=TRUE)) character(0) > try(system("convert tmp/4x8uk1331669294.ps tmp/4x8uk1331669294.png",intern=TRUE)) character(0) > try(system("convert tmp/5zt4r1331669294.ps tmp/5zt4r1331669294.png",intern=TRUE)) character(0) > try(system("convert tmp/6th0n1331669294.ps tmp/6th0n1331669294.png",intern=TRUE)) character(0) > try(system("convert tmp/79gcq1331669294.ps tmp/79gcq1331669294.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.615 0.446 2.064