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.4098,1.4027,1.4167,1.3903,1.3473,1.3016,1.3153,1.3857,1.426,1.4224,1.4153,1.4075,1.4135,1.388,1.3903,1.4008,1.421,1.4627,1.5321,1.5333,1.5434,1.5481,1.5735,1.5872,1.6364,1.6299,1.5943,1.5851,1.6016,1.5798,1.5694,1.557,1.533,1.5489,1.5361,1.6131,1.6346,1.6817,1.6314,1.6068,1.6541,1.6492,1.622,1.6007,1.5767,1.56,1.554,1.6333,1.606,1.6128,1.6064,1.5991,1.5942,1.5111,1.473,1.4819,1.4452,1.4149,1.3944,1.3778) > 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.4098 1.4135 1.6364 1.6346 1.6060 NA [2,] 1.4027 1.3880 1.6299 1.6817 1.6128 NA [3,] 1.4167 1.3903 1.5943 1.6314 1.6064 NA [4,] 1.3903 1.4008 1.5851 1.6068 1.5991 NA [5,] 1.3473 1.4210 1.6016 1.6541 1.5942 NA [6,] 1.3016 1.4627 1.5798 1.6492 1.5111 NA [7,] 1.3153 1.5321 1.5694 1.6220 1.4730 NA [8,] 1.3857 1.5333 1.5570 1.6007 1.4819 NA [9,] 1.4260 1.5434 1.5330 1.5767 1.4452 NA [10,] 1.4224 1.5481 1.5489 1.5600 1.4149 NA [11,] 1.4153 1.5735 1.5361 1.5540 1.3944 NA [12,] 1.4075 1.5872 1.6131 1.6333 1.3778 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.0071 -0.0255 -0.0065 0.0471 0.0068 NA [2,] 0.0140 0.0023 -0.0356 -0.0503 -0.0064 NA [3,] -0.0264 0.0105 -0.0092 -0.0246 -0.0073 NA [4,] -0.0430 0.0202 0.0165 0.0473 -0.0049 NA [5,] -0.0457 0.0417 -0.0218 -0.0049 -0.0831 NA [6,] 0.0137 0.0694 -0.0104 -0.0272 -0.0381 NA [7,] 0.0704 0.0012 -0.0124 -0.0213 0.0089 NA [8,] 0.0403 0.0101 -0.0240 -0.0240 -0.0367 NA [9,] -0.0036 0.0047 0.0159 -0.0167 -0.0303 NA [10,] -0.0071 0.0254 -0.0128 -0.0060 -0.0205 NA [11,] -0.0078 0.0137 0.0770 0.0793 -0.0166 NA [12,] 0.0060 0.0492 0.0215 -0.0273 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/153qw1257772188.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/268uf1257772188.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/3etlz1257772188.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/48bjf1257772188.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.4098 1.3880 1.3903 1.3903 1.3473 1.3016 1.4730 1.3857 1.4260 1.4149 [2,] 1.4135 1.4027 1.4167 1.4008 1.4210 1.4627 1.4730 1.4819 1.4452 1.4224 [3,] 1.6060 1.6128 1.5943 1.5851 1.5942 1.5111 1.5321 1.5333 1.5330 1.5481 [4,] 1.6346 1.6299 1.6064 1.5991 1.6016 1.5798 1.5694 1.5570 1.5434 1.5489 [5,] 1.6364 1.6817 1.6314 1.6068 1.6541 1.6492 1.6220 1.6007 1.5767 1.5600 [,11] [,12] [1,] 1.3944 1.3778 [2,] 1.4153 1.4075 [3,] 1.5361 1.5872 [4,] 1.5540 1.6131 [5,] 1.5735 1.6333 $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.449771 1.452261 1.460258 1.444982 1.466588 1.428357 1.463984 1.480235 [2,] 1.762229 1.773339 1.728342 1.725218 1.721812 1.593843 1.600216 1.586365 [,9] [,10] [,11] [,12] [1,] 1.463612 1.458715 1.438095 1.441924 [2,] 1.602388 1.637485 1.634105 1.732476 $out [1] 1.3153 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.4098, 1.4135, 1.606, 1.6346, 1.6364, 1.388, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5c4ts1257772188.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.0255 -0.0503 -0.0264 -0.0049 -0.0831 -0.0381 -0.0213 -0.0367 -0.0303 [2,] -0.0071 -0.0356 -0.0246 -0.0049 -0.0457 -0.0272 -0.0124 -0.0240 -0.0167 [3,] -0.0065 -0.0064 -0.0092 0.0165 -0.0218 -0.0104 0.0012 -0.0240 -0.0036 [4,] 0.0068 0.0023 -0.0073 0.0202 -0.0049 0.0137 0.0089 0.0101 0.0047 [5,] 0.0068 0.0140 0.0105 0.0473 0.0417 0.0694 0.0089 0.0403 0.0159 [,10] [,11] [,12] [1,] -0.0205 -0.0166 -0.02730 [2,] -0.0128 -0.0078 -0.01065 [3,] -0.0071 0.0137 0.01375 [4,] -0.0060 0.0770 0.03535 [5,] -0.0060 0.0793 0.04920 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.016321705 -0.03318004 -0.021424136 -0.001235597 -0.050629177 [2,] 0.003321705 0.02038004 0.003024136 0.034235597 0.007029177 [,6] [,7] [,8] [,9] [,10] [,11] [1,] -0.03929984 -0.01385053 -0.0480949741 -0.01872119 -0.011904863 -0.04621947 [2,] 0.01849984 0.01625053 0.0000949741 0.01152119 -0.002295137 0.07361947 [,12] [1,] -0.02259 [2,] 0.05009 $out [1] 0.0471 -0.0430 0.0704 0.0254 $group [1] 1 4 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0255000000000001, -0.00709999999999988, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/68r7n1257772188.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.3016 1.38800 1.53300 1.5540 1.37780 NA [2,] 1.3665 1.40715 1.55295 1.5887 1.43005 NA [3,] 1.4051 1.49740 1.58245 1.6267 1.49650 NA [4,] 1.4160 1.54575 1.60735 1.6419 1.60255 NA [5,] 1.4260 1.58720 1.63640 1.6817 1.61280 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.382523 1.434184 1.557638 1.602435 1.417822 NA [2,] 1.427677 1.560616 1.607262 1.650965 1.575178 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.3016, 1.3665, 1.4051, 1.416, 1.426, 1.388, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/72rm31257772188.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.49466 1.51110 1.484650 [2,] 1.50162 1.53315 1.497125 [3,] 1.51407 1.56660 1.511425 [4,] 1.52580 1.59425 1.520325 [5,] 1.54302 1.61280 1.524050 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.503041 1.538732 1.500843 [2,] 1.525099 1.594468 1.522007 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.49466, 1.50162, 1.51407, 1.5258, 1.54302, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/153qw1257772188.ps tmp/153qw1257772188.png") > system("convert tmp/268uf1257772188.ps tmp/268uf1257772188.png") > system("convert tmp/3etlz1257772188.ps tmp/3etlz1257772188.png") > system("convert tmp/48bjf1257772188.ps tmp/48bjf1257772188.png") > system("convert tmp/5c4ts1257772188.ps tmp/5c4ts1257772188.png") > system("convert tmp/68r7n1257772188.ps tmp/68r7n1257772188.png") > system("convert tmp/72rm31257772188.ps tmp/72rm31257772188.png") > > > proc.time() user system elapsed 1.913 1.512 2.313