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(0.101412434656184 + ,8.81202575001982 + ,7.22218199005616 + ,6.34522390407069 + ,10.8649940993359 + ,-10.8922198651649 + ,0.734394414465646 + ,-0.0179390706289798 + ,9.77474289606975 + ,-1.89838978467021 + ,-7.43663216780881 + ,3.93631177801305 + ,-7.37586328597002 + ,4.56937607566163 + ,-5.57644511931599 + ,-5.01498813962224 + ,-3.15959218858348 + ,19.1892932271942 + ,-7.06045860990475 + ,11.0833125612922 + ,-13.0458821593181 + ,-9.06290124399022 + ,-1.28060038228237 + ,-15.9882579614673 + ,-7.77520617937238 + ,-0.433574311074287 + ,9.42649047423882 + ,10.8410822582803 + ,-3.69645197084187 + ,-0.959561390175432 + ,-2.93909670762435 + ,-5.22988378451808 + ,-8.70332470272302 + ,0.20118534528325 + ,8.63697951799477 + ,0.0353594847692281 + ,-8.52606038876601 + ,4.32479728273804 + ,3.77674215942339 + ,-4.3395217968542 + ,-13.1524297646555 + ,-4.89269052015993 + ,-3.64581392623976 + ,-3.03944041822005 + ,9.51943698875795 + ,-3.59266175781745 + ,-5.48035015252675 + ,-4.25254907793764 + ,-9.9008973968445 + ,-1.75816861848705 + ,-1.52563999886315 + ,-7.18999545624147 + ,-5.51845416493396 + ,3.89790349608751 + ,-3.35322089064957 + ,2.13650137374166 + ,-5.51652882241756 + ,-2.76178813847456 + ,8.56498835185603 + ,9.7467700827992) > 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,] 0.10141243 -7.375863 -7.77520618 -8.526060 -9.900897 NA [2,] 8.81202575 4.569376 -0.43357431 4.324797 -1.758169 NA [3,] 7.22218199 -5.576445 9.42649047 3.776742 -1.525640 NA [4,] 6.34522390 -5.014988 10.84108226 -4.339522 -7.189995 NA [5,] 10.86499410 -3.159592 -3.69645197 -13.152430 -5.518454 NA [6,] -10.89221987 19.189293 -0.95956139 -4.892691 3.897903 NA [7,] 0.73439441 -7.060459 -2.93909671 -3.645814 -3.353221 NA [8,] -0.01793907 11.083313 -5.22988378 -3.039440 2.136501 NA [9,] 9.77474290 -13.045882 -8.70332470 9.519437 -5.516529 NA [10,] -1.89838978 -9.062901 0.20118535 -3.592662 -2.761788 NA [11,] -7.43663217 -1.280600 8.63697952 -5.480350 8.564988 NA [12,] 3.93631178 -15.988258 0.03535948 -4.252549 9.746770 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 8.7106133 11.945239 7.341632 12.8508577 8.1427288 NA [2,] -1.5898438 -10.145821 9.860065 -0.5480551 0.2325286 NA [3,] -0.8769581 0.561457 1.414592 -8.1162640 -5.6643555 NA [4,] 4.5197702 1.855396 -14.537534 -8.8129080 1.6715413 NA [5,] -21.7572140 22.348885 2.736891 8.2597392 9.4163577 NA [6,] 11.6266143 -26.249752 -1.979535 1.2468766 -7.2511244 NA [7,] -0.7523335 18.143771 -2.290787 0.6063735 5.4897223 NA [8,] 9.7926820 -24.129195 -3.473441 12.5588774 -7.6530302 NA [9,] -11.6731327 3.982981 8.904510 -13.1120987 2.7547407 NA [10,] -5.5382424 7.782301 8.435794 -1.8876884 11.3267765 NA [11,] 11.3729439 -14.707658 -8.601620 1.2278011 1.1817817 NA [12,] -11.3121751 8.213052 -8.561420 -5.6483483 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/1baqn1259887573.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/235v81259887573.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/3lkdy1259887573.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/4mxzw1259887573.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] [1,] -9.900897 -1.7581686 -5.576445 -7.189995 -5.518454 -10.8922199 -3.645814 [2,] -8.526060 -0.4335743 -1.525640 -5.014988 -5.518454 -4.8926905 -3.645814 [3,] -7.775206 4.3247973 3.776742 -4.339522 -3.696452 -0.9595614 -3.353221 [4,] -7.375863 4.5693761 7.222182 6.345224 -3.159592 3.8979035 -2.939097 [5,] -7.375863 8.8120258 9.426490 10.841082 -3.159592 3.8979035 -2.939097 [,8] [,9] [,10] [,11] [,12] [1,] -5.22988378 -13.045882 -3.5926618 -7.436632 -15.98825796 [2,] -3.03944042 -8.703325 -3.5926618 -5.480350 -4.25254908 [3,] -0.01793907 -5.516529 -2.7617881 -1.280600 0.03535948 [4,] 2.13650137 9.519437 -1.8983898 8.564988 3.93631178 [5,] 2.13650137 9.774743 0.2011853 8.636980 9.74677008 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -8.587933 0.7897251 -2.404447 -12.366619 -5.363218 -7.170973 -3.852585 [2,] -6.962480 7.8598694 9.957931 3.687575 -2.029686 5.251850 -2.853856 [,8] [,9] [,10] [,11] [,12] [1,] -3.675247 -18.392686 -3.958956 -11.20500 -5.750869 [2,] 3.639368 7.359629 -1.564620 8.64380 5.821588 $out [1] 0.1014124 10.8649941 -13.1524298 19.1892932 0.7343944 -7.0604586 [7] 11.0833126 -9.0629012 $group [1] 1 5 5 6 7 7 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9.9008973968445, -8.526060388766, -7.77520617937238, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wp871259887573.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] [1,] 7.341632 -1.5898438 -8.116264 -14.537534 2.736891 -7.251124 -2.2907871 [2,] 8.142729 -1.5898438 -5.664355 -8.812908 2.736891 -7.251124 -0.7523335 [3,] 8.710613 -0.5480551 -0.876958 1.671541 8.259739 -1.979535 0.6063735 [4,] 11.945239 0.2325286 0.561457 1.855396 9.416358 1.246877 5.4897223 [5,] 12.850858 0.2325286 1.414592 4.519770 9.416358 11.626614 5.4897223 [,8] [,9] [,10] [,11] [,12] [1,] -24.129195 -13.112099 -5.538242 -14.707658 -11.312175 [2,] -7.653030 -11.673133 -1.887688 -8.601620 -9.936797 [3,] -3.473441 2.754741 7.782301 1.181782 -7.104884 [4,] 9.792682 3.982981 8.435794 1.227801 1.282352 [5,] 12.558877 8.904510 11.326776 11.372944 8.213052 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 6.023769 -1.8357389 -5.276101 -5.866655 3.540045 -7.984201 -3.804247 [2,] 11.397458 0.7396286 3.522185 9.209738 12.979434 4.025131 5.016994 [,8] [,9] [,10] [,11] [,12] [1,] -15.800537 -8.30783 0.4877541 -5.763662 -15.968012 [2,] 8.853655 13.81731 15.0768476 8.127226 1.758244 $out [1] -10.145821 9.860065 -21.757214 22.348885 -26.249752 18.143771 $group [1] 2 2 5 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(7.3416318682981, 8.14272877835745, 8.71061331536364, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rbar1259887573.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,] -10.8922199 -15.988258 -8.7033247 -13.1524298 -9.900897 NA [2,] -0.9581644 -8.219382 -4.4631679 -5.1865203 -5.517491 NA [3,] 2.3353531 -5.295717 -0.6965679 -3.9491815 -2.259978 NA [4,] 8.0171039 1.644388 4.4190824 0.3686509 3.017202 NA [5,] 10.8649941 11.083313 10.8410823 4.3247973 9.746770 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.758327 -9.7946484 -4.747822 -6.482932 -6.152710 NA [2,] 6.429033 -0.7967849 3.354686 -1.415431 1.632753 NA $out [1] 19.189293 9.519437 $group [1] 2 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-10.8922198651649, -0.958164427649595, 2.33535309623935, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7urip1259887573.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,] -6.6953230 -7.775206179 -7.9509618 [2,] -3.0926130 -4.017986884 -3.0189905 [3,] -0.5880565 -2.021194260 -0.3047941 [4,] 1.1275276 0.008710207 1.1037185 [5,] 3.1028912 4.324797283 2.8482710 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -2.512891 -3.8577978 -2.185189 [2,] 1.336778 -0.1845907 1.575601 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-6.69532296325935, -3.09261297096317, -0.588056492419038, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1baqn1259887573.ps tmp/1baqn1259887573.png") > system("convert tmp/235v81259887573.ps tmp/235v81259887573.png") > system("convert tmp/3lkdy1259887573.ps tmp/3lkdy1259887573.png") > system("convert tmp/4mxzw1259887573.ps tmp/4mxzw1259887573.png") > system("convert tmp/5wp871259887573.ps tmp/5wp871259887573.png") > system("convert tmp/6rbar1259887573.ps tmp/6rbar1259887573.png") > system("convert tmp/7urip1259887573.ps tmp/7urip1259887573.png") > > > proc.time() user system elapsed 1.182 0.950 1.505