R version 2.8.1 (2008-12-22) 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(124,118.63,121.86,119.97,125.03,130.09,126.65,121.7,119.24,122.63,116.66,114.12,113.11,112.61,113.4,115.18,121.01,119.44,116.68,117.07,117.41,119.58,120.92,117.09,116.77,119.39,122.49,124.08,118.29,112.94,113.79,114.43,118.7,120.36,118.27,118.34,117.82,117.65,118.18,121.02,124.78,131.16,130.14,131.75,134.73,135.35,140.32,136.35,131.6,128.9,133.89,138.25,146.23,144.76,149.3,156.8,159.08,165.12,163.14,153.43,151.01) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 124.00 113.11 116.77 117.82 131.60 151.01 [2,] 118.63 112.61 119.39 117.65 128.90 NA [3,] 121.86 113.40 122.49 118.18 133.89 NA [4,] 119.97 115.18 124.08 121.02 138.25 NA [5,] 125.03 121.01 118.29 124.78 146.23 NA [6,] 130.09 119.44 112.94 131.16 144.76 NA [7,] 126.65 116.68 113.79 130.14 149.30 NA [8,] 121.70 117.07 114.43 131.75 156.80 NA [9,] 119.24 117.41 118.70 134.73 159.08 NA [10,] 122.63 119.58 120.36 135.35 165.12 NA [11,] 116.66 120.92 118.27 140.32 163.14 NA [12,] 114.12 117.09 118.34 136.35 153.43 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/rcomp/tmp/1x3ks1258042160.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/rcomp/tmp/2qxqt1258042160.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/rcomp/tmp/3tub51258042160.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/rcomp/tmp/4g4o91258042160.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,] 113.11 117.65 113.40 115.18 118.29 112.94 113.79 114.43 117.41 119.58 [2,] 116.77 117.65 118.18 119.97 121.01 119.44 116.68 117.07 118.70 120.36 [3,] 120.91 118.63 121.86 121.02 124.78 130.09 126.65 121.70 119.24 122.63 [4,] 131.60 119.39 122.49 124.08 125.03 131.16 130.14 131.75 134.73 135.35 [5,] 151.01 119.39 122.49 124.08 125.03 144.76 149.30 131.75 134.73 135.35 [,11] [,12] [1,] 116.66 114.12 [2,] 118.27 117.09 [3,] 120.92 118.34 [4,] 140.32 136.35 [5,] 163.14 153.43 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 111.3442 117.4005 118.8146 118.1159 121.9395 121.8087 117.1392 111.3271 [2,] 130.4758 119.8595 124.9054 123.9241 127.6205 138.3713 136.1608 132.0729 [,9] [,10] [,11] [,12] [1,] 107.9132 112.0381 105.3395 104.7309 [2,] 130.5668 133.2219 136.5005 131.9491 $out [1] 112.61 128.90 133.89 138.25 146.23 156.80 159.08 165.12 $group [1] 2 2 3 4 5 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(113.11, 116.77, 120.91, 131.6, 151.01, 117.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5k6ol1258042160.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,] 114.120 112.61 112.940 117.65 128.900 151.01 [2,] 118.935 114.29 115.600 119.60 136.070 151.01 [3,] 121.780 117.08 118.315 130.65 147.765 151.01 [4,] 124.515 119.51 119.875 135.04 157.940 151.01 [5,] 130.090 121.01 124.080 140.32 165.120 151.01 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 119.2349 114.6991 116.3651 123.6077 137.7899 151.01 [2,] 124.3251 119.4609 120.2649 137.6923 157.7401 151.01 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(114.12, 118.935, 121.78, 124.515, 130.09, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6s07n1258042160.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,] 5.916146 16.290 1.74000 [2,] 9.905684 25.505 4.21000 [3,] 14.012054 36.705 13.06375 [4,] 17.519029 42.020 15.51000 [5,] 19.908677 46.480 22.05000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.53956 29.1724 7.909744 [2,] 17.48455 44.2376 18.217756 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(5.91614570476421, 9.90568385182642, 14.0120540887453, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1x3ks1258042160.ps tmp/1x3ks1258042160.png") > system("convert tmp/2qxqt1258042160.ps tmp/2qxqt1258042160.png") > system("convert tmp/3tub51258042160.ps tmp/3tub51258042160.png") > system("convert tmp/4g4o91258042160.ps tmp/4g4o91258042160.png") > system("convert tmp/5k6ol1258042160.ps tmp/5k6ol1258042160.png") > system("convert tmp/6s07n1258042160.ps tmp/6s07n1258042160.png") > > > proc.time() user system elapsed 1.340 1.210 2.183