R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(252,251,250,248,268,267,252,242,243,243,244,246,236,241,240,239,253,249,232,229,221,222,224,224,215,225,225,221,238,234,228,227,216,219,225,227,205,215,214,209,222,216,206,199,189,198,203,211,199,211,210,203,214,202,193,193,176,192,200,195,180,197,194,194,212,202,195,198,170,187,190,189,176,188,195,194,211,203,194,194,163,183,181,184,171,178,179,186,205,204,195,186,156,167,164,165,153,160,154,169,186,188,187,169,131,146,145,137,119,118,113,123,142,141,138,124,83,100,96,98) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 252 236 215 205 199 180 176 171 153 119 NA [2,] 251 241 225 215 211 197 188 178 160 118 NA [3,] 250 240 225 214 210 194 195 179 154 113 NA [4,] 248 239 221 209 203 194 194 186 169 123 NA [5,] 268 253 238 222 214 212 211 205 186 142 NA [6,] 267 249 234 216 202 202 203 204 188 141 NA [7,] 252 232 228 206 193 195 194 195 187 138 NA [8,] 242 229 227 199 193 198 194 186 169 124 NA [9,] 243 221 216 189 176 170 163 156 131 83 NA [10,] 243 222 219 198 192 187 183 167 146 100 NA [11,] 244 224 225 203 200 190 181 164 145 96 NA [12,] 246 224 227 211 195 189 184 165 137 98 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/1lim01281902269.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/2wrl31281902269.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/3pik51281902269.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/4pik51281902269.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] [,11] [,12] [1,] 119.0 118 113.0 169.0 186 188.0 187 169 83 100.0 96 98 [2,] 171.0 178 179.0 186.0 205 202.0 193 186 156 167.0 164 165 [3,] 189.5 204 202.5 198.5 213 203.5 195 196 173 189.5 195 192 [4,] 215.0 225 225.0 221.0 238 234.0 228 227 216 219.0 224 224 [5,] 252.0 251 250.0 248.0 268 267.0 252 242 243 243.0 244 246 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 167.5158 180.5169 179.5166 181.0126 196.5119 187.5115 177.5126 175.5148 [2,] 211.4842 227.4831 225.4834 215.9874 229.4881 219.4885 212.4874 216.4852 [,9] [,10] [,11] [,12] [1,] 143.0216 163.5187 165.0216 162.5212 [2,] 202.9784 215.4813 224.9784 221.4788 $out [1] 123 142 141 138 124 $group [1] 4 5 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(119, 171, 189.5, 215, 252, 118, 178, 204, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5pik51281902269.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] [,10] [,11] [1,] 242.0 221.0 215.0 189.0 176.0 180.0 176.0 156.0 131.0 83.0 NA [2,] 243.5 224.0 220.0 201.0 193.0 188.0 182.0 166.0 145.5 99.0 NA [3,] 249.0 234.0 225.0 207.5 199.5 194.0 191.0 178.5 157.0 118.5 NA [4,] 252.0 240.5 227.5 214.5 206.5 197.5 194.5 190.5 177.5 131.0 NA [5,] 252.0 253.0 238.0 222.0 214.0 202.0 211.0 205.0 188.0 142.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 245.1231 226.4742 221.5792 201.3426 193.3426 189.667 185.2987 167.3254 [2,] 252.8769 241.5258 228.4208 213.6574 205.6574 198.333 196.7013 189.6746 [,9] [,10] [,11] [1,] 142.4046 103.9046 NA [2,] 171.5954 133.0954 NA $out [1] 268 267 212 170 163 $group [1] 1 1 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(242, 243.5, 249, 252, 252, 221, 224, 234, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ha1q1281902269.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,] 31.01254 114.0 27.500 [2,] 34.93036 125.5 29.625 [3,] 39.54064 133.0 39.875 [4,] 42.33265 145.5 46.625 [5,] 46.60424 160.0 51.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 36.16440 123.8779 32.12119 [2,] 42.91687 142.1221 47.62881 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(31.0125422656347, 34.9303587914936, 39.5406356236759, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1lim01281902269.ps tmp/1lim01281902269.png",intern=TRUE)) character(0) > try(system("convert tmp/2wrl31281902269.ps tmp/2wrl31281902269.png",intern=TRUE)) character(0) > try(system("convert tmp/3pik51281902269.ps tmp/3pik51281902269.png",intern=TRUE)) character(0) > try(system("convert tmp/4pik51281902269.ps tmp/4pik51281902269.png",intern=TRUE)) character(0) > try(system("convert tmp/5pik51281902269.ps tmp/5pik51281902269.png",intern=TRUE)) character(0) > try(system("convert tmp/6ha1q1281902269.ps tmp/6ha1q1281902269.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.044 0.803 1.306