R version 2.8.0 (2008-10-20) 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(1.4369,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,1.3408,1.2991,1.249,1.2218,1.2176,1.2266,1.2138,1.2007,1.1985,1.2262,1.2646,1.2613,1.2286,1.1702,1.1692,1.1222,1.1139,1.1372,1.1663,1.1582,1.0848,1.0807,1.0773,1.0622,1.0183,1.0014,0.9811) > 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.4369 1.3896 1.2727 1.2256 1.2218 1.1222 NA [2,] 1.4975 1.3622 1.2811 1.2292 1.2176 1.1139 NA [3,] 1.5770 1.3716 1.2684 1.2037 1.2266 1.1372 NA [4,] 1.5553 1.3419 1.2650 1.2165 1.2138 1.1663 NA [5,] 1.5557 1.3511 1.2770 1.2694 1.2007 1.1582 NA [6,] 1.5750 1.3516 1.2271 1.2938 1.1985 1.0848 NA [7,] 1.5527 1.3242 1.2020 1.3201 1.2262 1.0807 NA [8,] 1.4748 1.3074 1.1938 1.3014 1.2646 1.0773 NA [9,] 1.4718 1.2999 1.2103 1.3119 1.2613 1.0622 NA [10,] 1.4570 1.3213 1.1856 1.3408 1.2286 1.0183 NA [11,] 1.4684 1.2881 1.1786 1.2991 1.1702 1.0014 NA [12,] 1.4227 1.2611 1.2015 1.2490 1.1692 0.9811 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.0606 -0.0274 0.0084 0.0036 -0.0042 -0.0083 NA [2,] 0.0795 0.0094 -0.0127 -0.0255 0.0090 0.0233 NA [3,] -0.0217 -0.0297 -0.0034 0.0128 -0.0128 0.0291 NA [4,] 0.0004 0.0092 0.0120 0.0529 -0.0131 -0.0081 NA [5,] 0.0193 0.0005 -0.0499 0.0244 -0.0022 -0.0734 NA [6,] -0.0223 -0.0274 -0.0251 0.0263 0.0277 -0.0041 NA [7,] -0.0779 -0.0168 -0.0082 -0.0187 0.0384 -0.0034 NA [8,] -0.0030 -0.0075 0.0165 0.0105 -0.0033 -0.0151 NA [9,] -0.0148 0.0214 -0.0247 0.0289 -0.0327 -0.0439 NA [10,] 0.0114 -0.0332 -0.0070 -0.0417 -0.0584 -0.0169 NA [11,] -0.0457 -0.0270 0.0229 -0.0501 -0.0010 -0.0203 NA [12,] -0.0331 0.0116 0.0241 -0.0272 -0.0470 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/14jvi1228329217.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/2guip1228329217.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/36xjq1228329217.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/4lvop1228329217.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] [1,] 1.12220 1.11390 1.1372 1.16630 1.1582 1.08480 1.08070 1.0773 1.0622 [2,] 1.22180 1.21760 1.2037 1.21380 1.2007 1.19850 1.20200 1.1938 1.2103 [3,] 1.24915 1.25515 1.2475 1.24075 1.2732 1.26045 1.27315 1.2830 1.2806 [4,] 1.38960 1.36220 1.3716 1.34190 1.3511 1.35160 1.32420 1.3074 1.3119 [5,] 1.43690 1.49750 1.5770 1.34190 1.5557 1.57500 1.32420 1.4748 1.3119 [,10] [,11] [,12] [1,] 1.01830 1.00140 1.16920 [2,] 1.18560 1.17020 1.16920 [3,] 1.27495 1.23335 1.22525 [4,] 1.34080 1.29910 1.26110 [5,] 1.45700 1.46840 1.26110 $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.140914 1.161878 1.139199 1.158121 1.176187 1.161696 1.194327 1.209724 [2,] 1.357386 1.348422 1.355801 1.323379 1.370213 1.359204 1.351973 1.356276 [,9] [,10] [,11] [,12] [1,] 1.215065 1.174841 1.150205 1.165972 [2,] 1.346135 1.375059 1.316495 1.284528 $out [1] 1.5553 1.5527 1.4718 1.4227 0.9811 $group [1] 4 7 9 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.1222, 1.2218, 1.24915, 1.3896, 1.4369, 1.1139, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5h6d51228329217.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.0274 -0.0255 -0.0297 -0.0131 -0.07340 -0.0274 -0.0187 -0.01510 -0.04390 [2,] -0.0083 -0.0127 -0.0217 -0.0081 -0.04990 -0.0251 -0.0187 -0.00750 -0.03270 [3,] -0.0003 0.0092 -0.0081 0.0048 -0.00085 -0.0132 -0.0125 -0.00315 -0.01975 [4,] 0.0084 0.0233 0.0128 0.0120 0.01930 0.0263 -0.0034 0.01050 0.02140 [5,] 0.0084 0.0233 0.0291 0.0120 0.02440 0.0277 -0.0034 0.01650 0.02890 [,10] [,11] [,12] [1,] -0.05840 -0.05010 -0.0470 [2,] -0.04170 -0.04570 -0.0331 [3,] -0.02505 -0.02365 -0.0272 [4,] -0.00700 -0.00100 0.0116 [5,] 0.01140 0.02290 0.0241 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01107204 -0.01402116 -0.03035361 -0.00816515 -0.04548624 -0.04635466 [2,] 0.01047204 0.03242116 0.01415361 0.01776515 0.04378624 0.01995466 [,7] [,8] [,9] [,10] [,11] [1,] -0.022368994 -0.014760581 -0.05464625 -0.047432621 -0.052482944 [2,] -0.002631006 0.008460581 0.01514625 -0.002667379 0.005182944 [,12] [1,] -0.058784907 [2,] 0.004384907 $out [1] 0.0606 0.0795 0.0529 -0.0779 0.0384 $group [1] 1 2 4 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0273999999999999, -0.0083000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/62kam1228329217.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,] 1.42270 1.26110 1.17860 1.20370 1.1692 0.98110 NA [2,] 1.46270 1.30365 1.19765 1.22740 1.1996 1.04025 NA [3,] 1.48615 1.33305 1.21870 1.28160 1.2197 1.08275 NA [4,] 1.55550 1.35690 1.27055 1.30665 1.2276 1.12970 NA [5,] 1.57700 1.38960 1.28110 1.34080 1.2646 1.16630 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.443823 1.308762 1.185450 1.245454 1.206929 1.041951 NA [2,] 1.528477 1.357338 1.251950 1.317746 1.232471 1.123549 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.4227, 1.4627, 1.48615, 1.5555, 1.577, 1.2611, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7laqx1228329217.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.234300 1.225250 1.258700 [2,] 1.264083 1.244125 1.262156 [3,] 1.280858 1.257800 1.267356 [4,] 1.290800 1.274075 1.276419 [5,] 1.302017 1.283000 1.291562 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.268673 1.244140 1.260851 [2,] 1.293044 1.271460 1.273861 $out [1] 1.214100 1.234325 1.217675 $group [1] 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.2343, 1.26408333333333, 1.28085833333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/14jvi1228329217.ps tmp/14jvi1228329217.png") > system("convert tmp/2guip1228329217.ps tmp/2guip1228329217.png") > system("convert tmp/36xjq1228329217.ps tmp/36xjq1228329217.png") > system("convert tmp/4lvop1228329217.ps tmp/4lvop1228329217.png") > system("convert tmp/5h6d51228329217.ps tmp/5h6d51228329217.png") > system("convert tmp/62kam1228329217.ps tmp/62kam1228329217.png") > system("convert tmp/7laqx1228329217.ps tmp/7laqx1228329217.png") > > > proc.time() user system elapsed 1.238 0.970 3.106