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. Natural language support but running in an English locale 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(09.166456,07.970589,07.104091,06.621064,07.529215,08.170938,08.157450,07.378962,07.921496,08.156740,08.856365,08.817177,08.734347,09.345927,08.992970,10.785120,08.886867,08.818847,08.823744,09.165298,08.652657,08.173054,07.563416,07.595809,08.381467,07.216432,06.540178,06.238914,05.487288,05.759462,05.993215,07.474726,07.348907,07.303379,07.119314,06.993780,06.958153,07.595706,08.088153,07.555753,07.315433,07.893427,08.858794,08.839367,08.014733,07.873465,08.930377,10.500550,12.611440,11.417870,11.872490,11.060820,12.043310,09.776299,09.557194,09.202590,10.224020,09.350807,08.300913,08.365779,08.133595,07.660470,08.074839,07.848597,07.998220,07.396895,07.900419,08.100500,07.899453,07.599783,08.100929,09.002175,10.298900,10.101520,10.699150,09.698140,09.800951,10.900470,10.697850,09.297252,10.397440,10.900720,12.901270,13.099060,11.698280,11.099870,11.301570,10.702110,10.099310,09.591119) > 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] 90 > (np <- floor(n / par1)) [1] 7 > arr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + if (j == par1) j = 0 + } > ari [1] 8 8 8 8 8 8 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.166456 8.734347 8.381467 6.958153 12.611440 8.133595 10.298900 [2,] 7.970589 9.345927 7.216432 7.595706 11.417870 7.660470 10.101520 [3,] 7.104091 8.992970 6.540178 8.088153 11.872490 8.074839 10.699150 [4,] 6.621064 10.785120 6.238914 7.555753 11.060820 7.848597 9.698140 [5,] 7.529215 8.886867 5.487288 7.315433 12.043310 7.998220 9.800951 [6,] 8.170938 8.818847 5.759462 7.893427 9.776299 7.396895 10.900470 [7,] 8.157450 8.823744 5.993215 8.858794 9.557194 7.900419 10.697850 [8,] 7.378962 9.165298 7.474726 8.839367 9.202590 8.100500 9.297252 [9,] 7.921496 8.652657 7.348907 8.014733 10.224020 7.899453 10.397440 [10,] 8.156740 8.173054 7.303379 7.873465 9.350807 7.599783 10.900720 [11,] 8.856365 7.563416 7.119314 8.930377 8.300913 8.100929 12.901270 [12,] 8.817177 7.595809 6.993780 10.500550 8.365779 9.002175 13.099060 [,8] [1,] 11.698280 [2,] 11.099870 [3,] 11.301570 [4,] 10.702110 [5,] 10.099310 [6,] 9.591119 [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/www/html/freestat/rcomp/tmp/1x23l1293625679.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/2x23l1293625679.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/3i4511293625680.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/4i4511293625680.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] [1,] 6.958153 7.216432 6.540178 6.238914 5.487288 5.759462 7.900419 [2,] 8.257531 7.628088 7.589465 7.088408 7.422324 7.645161 8.028935 [3,] 8.950401 8.658258 8.540561 8.773369 8.442543 8.494892 8.823744 [4,] 10.998590 10.600695 11.000360 10.743615 9.950131 9.683709 9.207994 [5,] 12.611440 11.417870 11.872490 11.060820 12.043310 10.900470 10.697850 [,8] [,9] [,10] [,11] [,12] [1,] 7.378962 7.348907 7.303379 7.119314 6.993780 [2,] 7.787613 7.910475 7.736624 7.832173 7.980794 [3,] 8.839367 8.014733 8.156740 8.300913 8.817177 [4,] 9.183944 9.438339 8.761931 8.893371 9.751362 [5,] 9.297252 10.397440 9.350807 8.930377 10.500550 $n [1] 8 8 8 8 8 8 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7.419207 6.997717 6.635187 6.731518 7.030474 7.356130 8.119629 [2,] 10.481596 10.318799 10.445936 10.815219 9.854613 9.633655 9.527859 [,8] [,9] [,10] [,11] [,12] [1,] 8.005501 7.102317 7.544443 7.667182 7.759822 [2,] 9.673233 8.927149 8.769037 8.934644 9.874532 $out [1] 5.993215 10.900720 12.901270 13.099060 $group [1] 7 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6.958153, 8.257531, 8.9504015, 10.99859, 12.61144, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5i4511293625680.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,] 6.621064 7.563416 5.487288 6.958153 8.300913 7.396895 9.297252 [2,] 7.454088 8.412855 6.116065 7.575729 9.276699 7.754533 9.951235 [3,] 8.063664 8.821295 7.056547 7.954080 10.000159 7.949319 10.547645 [4,] 8.494058 9.079134 7.326143 8.849080 11.645180 8.100715 10.900595 [5,] 9.166456 9.345927 8.381467 10.500550 12.611440 8.133595 10.900720 [,8] [1,] 9.591119 [2,] 10.099310 [3,] 10.900990 [4,] 11.301570 [5,] 11.698280 $n [1] 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.589328 8.517401 6.504622 7.373296 8.91988 7.791424 10.11464 10.12549 [2,] 8.538001 9.125190 7.608472 8.534864 11.08044 8.107215 10.98065 11.67649 $out [1] 10.785120 9.002175 12.901270 13.099060 $group [1] 2 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(6.621064, 7.4540885, 8.0636645, 8.4940575, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6td4m1293625680.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 0.8320962 1.918290 1.025306 [2,] 1.3573498 3.899390 1.287695 [3,] 1.7890957 4.981457 1.819344 [4,] 1.9810864 5.717621 2.553300 [5,] 2.0500591 6.556022 3.400782 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.504605 4.152149 1.242093 [2,] 2.073586 5.810765 2.396595 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.832096182602852, 1.35734979545860, 1.78909573160086, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1x23l1293625679.ps tmp/1x23l1293625679.png",intern=TRUE)) character(0) > try(system("convert tmp/2x23l1293625679.ps tmp/2x23l1293625679.png",intern=TRUE)) character(0) > try(system("convert tmp/3i4511293625680.ps tmp/3i4511293625680.png",intern=TRUE)) character(0) > try(system("convert tmp/4i4511293625680.ps tmp/4i4511293625680.png",intern=TRUE)) character(0) > try(system("convert tmp/5i4511293625680.ps tmp/5i4511293625680.png",intern=TRUE)) character(0) > try(system("convert tmp/6td4m1293625680.ps tmp/6td4m1293625680.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.698 1.235 1.870