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(9.026,9.787,9.536,9.49,9.736,9.694,9.647,9.753,10.07,10.137,9.984,9.732,9.103,9.155,9.308,9.394,9.948,10.177,10.002,9.728,10.002,10.063,10.018,9.96,10.236,10.893,10.756,10.94,10.997,10.827,10.166,10.186,10.457,10.368,10.244,10.511,10.812,10.738,10.171,9.721,9.897,9.828,9.924,10.371,10.846,10.413,10.709,10.662,10.57,10.297,10.635,10.872,10.296,10.383,10.431,10.574,10.653,10.805,10.872,10.625,10.407,10.463,10.556,10.646,10.702,11.353,11.346,11.451,11.964,12.574,13.031,13.812,14.544,14.931,14.886,16.005,17.064,15.168,16.05,15.839,15.137,14.954,15.648,15.305) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9.026 9.103 10.236 10.812 10.570 10.407 14.544 NA [2,] 9.787 9.155 10.893 10.738 10.297 10.463 14.931 NA [3,] 9.536 9.308 10.756 10.171 10.635 10.556 14.886 NA [4,] 9.490 9.394 10.940 9.721 10.872 10.646 16.005 NA [5,] 9.736 9.948 10.997 9.897 10.296 10.702 17.064 NA [6,] 9.694 10.177 10.827 9.828 10.383 11.353 15.168 NA [7,] 9.647 10.002 10.166 9.924 10.431 11.346 16.050 NA [8,] 9.753 9.728 10.186 10.371 10.574 11.451 15.839 NA [9,] 10.070 10.002 10.457 10.846 10.653 11.964 15.137 NA [10,] 10.137 10.063 10.368 10.413 10.805 12.574 14.954 NA [11,] 9.984 10.018 10.244 10.709 10.872 13.031 15.648 NA [12,] 9.732 9.960 10.511 10.662 10.625 13.812 15.305 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/rcomp/tmp/18lkv1230118071.ps",horizontal=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/rcomp/tmp/2u9de1230118071.ps",horizontal=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/rcomp/tmp/3df4h1230118071.ps",horizontal=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/rcomp/tmp/41o4c1230118071.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,] 9.0260 9.1550 9.3080 9.3940 9.7360 9.6940 9.6470 9.7280 10.0020 [2,] 9.6695 10.0420 9.8535 9.6055 9.9225 10.0025 9.9630 9.9695 10.2635 [3,] 10.4070 10.4630 10.5560 10.6460 10.2960 10.3830 10.1660 10.3710 10.6530 [4,] 10.6910 10.8155 10.6955 10.9060 10.8495 11.0900 10.8885 11.0125 11.4050 [5,] 10.8120 10.8930 10.7560 10.9400 10.9970 11.3530 11.3460 11.4510 11.9640 [,10] [,11] [,12] [1,] 10.0630 9.9840 9.7320 [2,] 10.2525 10.1310 10.2355 [3,] 10.4130 10.7090 10.6250 [4,] 11.6895 11.9515 12.2370 [5,] 12.5740 13.0310 13.8120 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.796977 10.00108 10.05317 9.869362 9.74241 9.733563 9.613306 [2,] 11.017023 10.92492 11.05883 11.422638 10.84959 11.032437 10.718694 [,8] [,9] [,10] [,11] [,12] [1,] 9.748137 9.971315 9.554847 9.621827 9.429736 [2,] 10.993863 11.334685 11.271153 11.796173 11.820264 $out [1] 14.544 14.931 14.886 16.005 17.064 15.168 16.050 15.839 15.137 14.954 [11] 15.648 15.305 $group [1] 1 2 3 4 5 6 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(9.026, 9.6695, 10.407, 10.691, 10.812, 9.155, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5pjsj1230118071.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] [,8] [1,] 9.4900 9.103 10.166 9.7210 10.2960 10.4070 14.5440 NA [2,] 9.5915 9.351 10.240 9.9105 10.4070 10.6010 14.9425 NA [3,] 9.7340 9.954 10.484 10.3920 10.5995 11.3495 15.2365 NA [4,] 9.8855 10.010 10.860 10.7235 10.7290 12.2690 15.9220 NA [5,] 10.1370 10.177 10.997 10.8460 10.8720 13.8120 17.0640 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9.599905 9.653426 10.20121 10.02119 10.45263 10.58871 14.78974 NA [2,] 9.868095 10.254574 10.76679 10.76281 10.74637 12.11029 15.68326 NA $out [1] 9.026 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(9.49, 9.5915, 9.734, 9.8855, 10.137, 9.103, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60zx61230118071.ps",horizontal=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,] 1.811833 4.891 0.77350 [2,] 1.858465 5.496 0.92625 [3,] 2.003114 5.621 1.06525 [4,] 2.207291 6.257 1.36875 [5,] 2.610661 7.328 2.00150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.844012 5.273903 0.8634228 [2,] 2.162216 5.968097 1.2670772 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.81183253720015, 1.85846539838284, 2.00311406209256, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18lkv1230118071.ps tmp/18lkv1230118071.png") > system("convert tmp/2u9de1230118071.ps tmp/2u9de1230118071.png") > system("convert tmp/3df4h1230118071.ps tmp/3df4h1230118071.png") > system("convert tmp/41o4c1230118071.ps tmp/41o4c1230118071.png") > system("convert tmp/5pjsj1230118071.ps tmp/5pjsj1230118071.png") > system("convert tmp/60zx61230118071.ps tmp/60zx61230118071.png") > > > proc.time() user system elapsed 1.069 0.812 1.456