R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(162.9,164.7,165,167.2,168.6,169.5,169.8,171.9,172,173.7,173.9,175.9,175.6,176.1,176.3,179.4,179.7,179.9,180.4,182.5,183.6,183.9,184.5,187.6,188,188.5,188.6,191.9,193.5,194.9,194.9,196.2,196.2,198,198.6,201.3,203.5,204.1,204.8,206.5,207.8,208.6,209.7,210,211.7,212.4,213.7,214.8,216.4,217.5,218.6,220.4,221.8,222.5,223.4,225.5,226.5,227.8,228.5,229.1,229.9,230.8,231.9,236,237.5,239.1,240.5,241.4,243.2,243.6,244.3,244.5,245.1,245.8,246.7,247.7,248.5) > 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] 77 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 162.9 175.6 188.0 203.5 216.4 229.9 245.1 [2,] 164.7 176.1 188.5 204.1 217.5 230.8 245.8 [3,] 165.0 176.3 188.6 204.8 218.6 231.9 246.7 [4,] 167.2 179.4 191.9 206.5 220.4 236.0 247.7 [5,] 168.6 179.7 193.5 207.8 221.8 237.5 248.5 [6,] 169.5 179.9 194.9 208.6 222.5 239.1 NA [7,] 169.8 180.4 194.9 209.7 223.4 240.5 NA [8,] 171.9 182.5 196.2 210.0 225.5 241.4 NA [9,] 172.0 183.6 196.2 211.7 226.5 243.2 NA [10,] 173.7 183.9 198.0 212.4 227.8 243.6 NA [11,] 173.9 184.5 198.6 213.7 228.5 244.3 NA [12,] 175.9 187.6 201.3 214.8 229.1 244.5 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/wessaorg/rcomp/tmp/19k751323175447.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/wessaorg/rcomp/tmp/2iqq01323175447.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/wessaorg/rcomp/tmp/3hkor1323175447.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/wessaorg/rcomp/tmp/4iyrr1323175447.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] [,8] [,9] [,10] [,11] [1,] 162.90 164.70 165.00 167.20 168.60 169.50 169.8 171.9 172.00 173.7 173.90 [2,] 181.80 182.30 182.45 185.65 186.60 179.90 180.4 182.5 183.60 183.9 184.50 [3,] 203.50 204.10 204.80 206.50 207.80 201.75 202.3 203.1 203.95 205.2 206.15 [4,] 223.15 224.15 225.25 228.20 229.65 222.50 223.4 225.5 226.50 227.8 228.50 [5,] 245.10 245.80 246.70 247.70 248.50 239.10 240.5 241.4 243.20 243.6 244.30 [,12] [1,] 175.90 [2,] 187.60 [3,] 208.05 [4,] 229.10 [5,] 244.50 $n [1] 7 7 7 7 7 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 178.8064 179.1079 179.2405 181.0898 182.0912 174.2716 174.5636 175.3636 [2,] 228.1936 229.0921 230.3595 231.9102 233.5088 229.2284 230.0364 230.8364 [,9] [,10] [,11] [,12] [1,] 176.2781 176.8831 177.7686 181.2812 [2,] 231.6219 233.5169 234.5314 234.8188 $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(162.9, 181.8, 203.5, 223.15, 245.1, 164.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5gurb1323175447.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,] 162.90 175.60 188.00 203.50 216.40 229.90 245.1 [2,] 166.10 177.85 190.25 205.65 219.50 233.95 245.8 [3,] 169.65 180.15 194.90 209.15 222.95 239.80 246.7 [4,] 172.85 183.75 197.10 212.05 227.15 243.40 247.7 [5,] 175.90 187.60 201.30 214.80 229.10 244.50 248.5 $n [1] 12 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 166.5713 177.459 191.7757 206.2309 219.4608 235.4898 245.3575 [2,] 172.7287 182.841 198.0243 212.0691 226.4392 244.1102 248.0425 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(162.9, 166.1, 169.65, 172.85, 175.9, 175.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/65rd81323175447.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,] 25.73190 68.60 34.500 [2,] 26.40454 69.75 35.825 [3,] 26.75731 70.95 36.650 [4,] 29.59544 80.80 42.200 [5,] 29.82945 82.20 43.050 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 25.30192 65.91002 33.74232 [2,] 28.21270 75.98998 39.55768 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(25.7318997873586, 26.4045422969344, 26.7573097584694, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/19k751323175447.ps tmp/19k751323175447.png",intern=TRUE)) character(0) > try(system("convert tmp/2iqq01323175447.ps tmp/2iqq01323175447.png",intern=TRUE)) character(0) > try(system("convert tmp/3hkor1323175447.ps tmp/3hkor1323175447.png",intern=TRUE)) character(0) > try(system("convert tmp/4iyrr1323175447.ps tmp/4iyrr1323175447.png",intern=TRUE)) character(0) > try(system("convert tmp/5gurb1323175447.ps tmp/5gurb1323175447.png",intern=TRUE)) character(0) > try(system("convert tmp/65rd81323175447.ps tmp/65rd81323175447.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.397 0.266 1.675