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.2732,1.3322,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) > 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.2732 1.4684 1.2881 1.1786 1.2991 NA [2,] 1.3322 1.4227 1.2611 1.2015 1.2490 NA [3,] 1.4369 1.3896 1.2727 1.2256 1.2218 NA [4,] 1.4975 1.3622 1.2811 1.2292 1.2176 NA [5,] 1.5770 1.3716 1.2684 1.2037 1.2266 NA [6,] 1.5553 1.3419 1.2650 1.2165 1.2138 NA [7,] 1.5557 1.3511 1.2770 1.2694 1.2007 NA [8,] 1.5750 1.3516 1.2271 1.2938 1.1985 NA [9,] 1.5527 1.3242 1.2020 1.3201 1.2262 NA [10,] 1.4748 1.3074 1.1938 1.3014 1.2646 NA [11,] 1.4718 1.2999 1.2103 1.3119 1.2613 NA [12,] 1.4570 1.3213 1.1856 1.3408 1.2286 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0590 -0.0457 -0.0270 0.0229 -0.0501 NA [2,] 0.1047 -0.0331 0.0116 0.0241 -0.0272 NA [3,] 0.0606 -0.0274 0.0084 0.0036 -0.0042 NA [4,] 0.0795 0.0094 -0.0127 -0.0255 0.0090 NA [5,] -0.0217 -0.0297 -0.0034 0.0128 -0.0128 NA [6,] 0.0004 0.0092 0.0120 0.0529 -0.0131 NA [7,] 0.0193 0.0005 -0.0499 0.0244 -0.0022 NA [8,] -0.0223 -0.0274 -0.0251 0.0263 0.0277 NA [9,] -0.0779 -0.0168 -0.0082 -0.0187 0.0384 NA [10,] -0.0030 -0.0075 0.0165 0.0105 -0.0033 NA [11,] -0.0148 0.0214 -0.0247 0.0289 -0.0327 NA [12,] 0.0114 -0.0332 -0.0070 -0.0417 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/freestat/rcomp/tmp/1se591229420368.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/freestat/rcomp/tmp/24zhg1229420368.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/freestat/rcomp/tmp/3u23b1229420368.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/freestat/rcomp/tmp/48iiq1229420368.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.2732 1.2015 1.2218 1.2176 1.2037 1.2138 1.2007 1.1985 1.2020 1.2646 [2,] 1.2732 1.2490 1.2256 1.2292 1.2266 1.2165 1.2694 1.2271 1.2262 1.2646 [3,] 1.2881 1.2611 1.2727 1.2811 1.2684 1.2650 1.2770 1.2938 1.3201 1.3014 [4,] 1.2991 1.3322 1.3896 1.3622 1.3716 1.3419 1.3511 1.3516 1.3242 1.3074 [5,] 1.2991 1.4227 1.4369 1.4975 1.5770 1.3419 1.3511 1.3516 1.3242 1.3074 [,11] [,12] [1,] 1.2103 1.1856 [2,] 1.2613 1.2286 [3,] 1.2999 1.3213 [4,] 1.3119 1.3408 [5,] 1.3119 1.4570 $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.269799 1.202311 1.156818 1.187123 1.165943 1.176393 1.219271 1.205829 [2,] 1.306401 1.319889 1.388582 1.375077 1.370857 1.353607 1.334729 1.381771 [,9] [,10] [,11] [,12] [1,] 1.250853 1.271158 1.264146 1.242020 [2,] 1.389347 1.331642 1.335654 1.400580 $out [1] 1.4684 1.1786 1.5553 1.5557 1.5750 1.5527 1.4748 1.1938 1.4718 $group [1] 1 1 6 7 8 9 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.2732, 1.2732, 1.2881, 1.2991, 1.2991, 1.2015, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5bj4q1229420368.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.0501 -0.0331 -0.0042 -0.0255 -0.0297 -0.0131 -0.0022 -0.0274 -0.0187 [2,] -0.0457 -0.0272 -0.0042 -0.0127 -0.0217 0.0004 -0.0022 -0.0251 -0.0187 [3,] -0.0270 0.0116 0.0036 0.0090 -0.0128 0.0092 0.0005 -0.0223 -0.0168 [4,] 0.0229 0.0241 0.0084 0.0094 -0.0034 0.0120 0.0193 0.0263 -0.0082 [5,] 0.0590 0.0241 0.0084 0.0094 0.0128 0.0120 0.0244 0.0277 -0.0082 [,10] [,11] [,12] [1,] -0.0075 -0.0327 -0.04170 [2,] -0.0033 -0.0247 -0.03745 [3,] -0.0030 -0.0148 -0.02010 [4,] 0.0105 0.0214 0.00220 [5,] 0.0165 0.0289 0.01140 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.07547259 -0.02464845 -0.005303128 -0.006615804 -0.0257307339 [2,] 0.02147259 0.04784845 0.012503128 0.024615804 0.0001307339 [,6] [,7] [,8] [,9] [,10] [,11] [1,] 0.001003469 -0.01469185 -0.05861911 -0.024219274 -0.012751045 -0.04737414 [2,] 0.017396531 0.01569185 0.01401911 -0.009380726 0.006751045 0.01777414 [,12] [1,] -0.0514235 [2,] 0.0112235 $out [1] 0.1047 0.0606 -0.0274 0.0795 0.0529 -0.0499 -0.0779 0.0384 $group [1] 2 3 3 4 6 7 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0500999999999998, -0.0456999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6g8fy1229420368.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.33220 1.29990 1.18560 1.17860 1.19850 NA [2,] 1.44695 1.32275 1.20615 1.21010 1.21570 NA [3,] 1.48615 1.35135 1.26305 1.24930 1.22640 NA [4,] 1.55550 1.38060 1.27485 1.30665 1.25515 NA [5,] 1.57700 1.42270 1.28810 1.34080 1.29910 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.436640 1.324964 1.231715 1.205263 1.208407 NA [2,] 1.535660 1.377736 1.294385 1.293337 1.244393 NA $out [1] 1.2732 1.4684 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.3322, 1.44695, 1.48615, 1.5555, 1.577, 1.2999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/707gm1229420368.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.275200 [2,] 1.30753 1.27055 1.285350 [3,] 1.31428 1.28460 1.287975 [4,] 1.32712 1.30065 1.297400 [5,] 1.33078 1.32130 1.310250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.305345 1.270871 1.282479 [2,] 1.323215 1.298329 1.293471 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.2933, 1.30753, 1.31428, 1.32712, 1.33078, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1se591229420368.ps tmp/1se591229420368.png") > system("convert tmp/24zhg1229420368.ps tmp/24zhg1229420368.png") > system("convert tmp/3u23b1229420368.ps tmp/3u23b1229420368.png") > system("convert tmp/48iiq1229420368.ps tmp/48iiq1229420368.png") > system("convert tmp/5bj4q1229420368.ps tmp/5bj4q1229420368.png") > system("convert tmp/6g8fy1229420368.ps tmp/6g8fy1229420368.png") > system("convert tmp/707gm1229420368.ps tmp/707gm1229420368.png") > > > proc.time() user system elapsed 1.970 1.558 2.537