R version 2.7.1 (2008-06-23) 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(81.6,113.8,97.6,120.1,101.9,97.6,150,143.8,103.7,115.3,87.4,97.6,84,96.1,88,120.6,121.1,109.7,149.2,156.5,109.3,102,90,85.9,88.4,88.4,100,120.6,103.3,107.1,168.1,172.1,104.9,112.8,88.8,109,89.5,90.2,91.2,116.9,106.1,106.1,170.4,163.9,108,118.6,94.7,101.4,94.86,101.61,96.04,115.96,123.87,115.59,178.58,184.31,115.59,117.91,95.22,113.49,97.84,97.84,98.82,142.58,122.57,122.29,167.48,176.09,121.78,122.6,107.8,116.77,99.56,103.41,107.77,139.17,130.56,125.18,181.69,194.7,125.18,123.54,112.25,123.21,109.02,115.97,118.71,126.4,129.39,128.97,192.64,188.1,128.03,132.42,114.73,123.82) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 81.6 84.0 88.4 89.5 94.86 97.84 99.56 109.02 NA [2,] 113.8 96.1 88.4 90.2 101.61 97.84 103.41 115.97 NA [3,] 97.6 88.0 100.0 91.2 96.04 98.82 107.77 118.71 NA [4,] 120.1 120.6 120.6 116.9 115.96 142.58 139.17 126.40 NA [5,] 101.9 121.1 103.3 106.1 123.87 122.57 130.56 129.39 NA [6,] 97.6 109.7 107.1 106.1 115.59 122.29 125.18 128.97 NA [7,] 150.0 149.2 168.1 170.4 178.58 167.48 181.69 192.64 NA [8,] 143.8 156.5 172.1 163.9 184.31 176.09 194.70 188.10 NA [9,] 103.7 109.3 104.9 108.0 115.59 121.78 125.18 128.03 NA [10,] 115.3 102.0 112.8 118.6 117.91 122.60 123.54 132.42 NA [11,] 87.4 90.0 88.8 94.7 95.22 107.80 112.25 114.73 NA [12,] 97.6 85.9 109.0 101.4 113.49 116.77 123.21 123.82 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/1edgx1218983389.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/28rbl1218983389.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/3dt8c1218983389.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/4uc311218983389.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,] 81.60 88.400 88.000 115.960 101.900 97.600 149.200 143.800 103.700 [2,] 86.20 93.150 93.620 118.500 104.700 106.600 158.740 160.200 106.450 [3,] 92.18 99.725 98.210 120.600 121.835 112.645 169.250 174.095 112.445 [4,] 98.70 108.605 103.885 132.785 126.630 123.735 180.135 186.205 123.480 [5,] 109.02 115.970 118.710 142.580 130.560 128.970 192.640 194.700 128.030 [,10] [,11] [,12] [1,] 102.000 87.400 85.900 [2,] 114.050 89.400 99.500 [3,] 118.255 94.960 111.245 [4,] 123.070 110.025 119.990 [5,] 132.420 114.730 123.820 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 85.19732 91.09162 92.47582 112.6202 109.5846 103.0731 157.2984 159.5682 [2,] 99.16268 108.35838 103.94418 128.5798 134.0854 122.2169 181.2016 188.6218 [,9] [,10] [,11] [,12] [1,] 102.9318 113.2163 83.43858 99.799 [2,] 121.9582 123.2937 106.48142 122.691 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(81.6, 86.2, 92.18, 98.7, 109.02, 88.4, 93.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/582tp1218983389.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] [,9] [1,] 81.6 84.00 88.4 89.50 94.860 97.840 99.560 109.020 NA [2,] 97.6 89.00 94.4 92.95 98.825 103.310 110.010 117.340 NA [3,] 102.8 105.65 106.0 106.10 115.590 122.035 124.360 127.215 NA [4,] 117.7 120.85 116.7 117.75 120.890 132.590 134.865 130.905 NA [5,] 143.8 156.50 120.6 118.60 123.870 176.090 139.170 132.420 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93.63226 91.123 95.82882 94.78855 105.526 108.6802 113.0235 121.0279 [2,] 111.96774 120.177 116.17118 117.41145 125.654 135.3898 135.6965 133.4021 [,9] [1,] NA [2,] NA $out [1] 150.00 168.10 172.10 170.40 163.90 178.58 184.31 181.69 194.70 192.64 [11] 188.10 $group [1] 1 3 3 4 4 5 5 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(81.6, 97.6, 102.8, 117.7, 143.8, 84, 89, 105.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6izgg1218983389.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,] 8.86659 24.330 7.11250 [2,] 9.57500 27.375 10.63125 [3,] 10.47945 29.540 15.78375 [4,] 12.48342 34.645 18.57125 [5,] 14.95300 43.440 23.20750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 9.152898 26.22410 12.16226 [2,] 11.805998 32.85590 19.40524 $out [1] 17.08108 50.90000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(8.8665904825764, 9.57499986561693, 10.4794476568978, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1edgx1218983389.ps tmp/1edgx1218983389.png") > system("convert tmp/28rbl1218983389.ps tmp/28rbl1218983389.png") > system("convert tmp/3dt8c1218983389.ps tmp/3dt8c1218983389.png") > system("convert tmp/4uc311218983389.ps tmp/4uc311218983389.png") > system("convert tmp/582tp1218983389.ps tmp/582tp1218983389.png") > system("convert tmp/6izgg1218983389.ps tmp/6izgg1218983389.png") > > > proc.time() user system elapsed 1.317 0.815 1.701