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(216234,213587,209465,204045,200237,203666,241476,260307,243324,244460,233575,237217,235243,230354,227184,221678,217142,219452,256446,265845,248624,241114,229245,231805,219277,219313,212610,214771,211142,211457,240048,240636,230580,208795,197922,194596,194581,185686,178106,172608,167302,168053,202300,202388,182516,173476,166444,171297,169701,164182,161914,159612,151001,158114,186530,187069,174330,169362,166827,178037,186412,189226,191563,188906,186005,195309,223532,226899,214126) > 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] 69 > (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 6 6 6 6 6 6 6 6 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 216234 235243 219277 194581 169701 186412 [2,] 213587 230354 219313 185686 164182 189226 [3,] 209465 227184 212610 178106 161914 191563 [4,] 204045 221678 214771 172608 159612 188906 [5,] 200237 217142 211142 167302 151001 186005 [6,] 203666 219452 211457 168053 158114 195309 [7,] 241476 256446 240048 202300 186530 223532 [8,] 260307 265845 240636 202388 187069 226899 [9,] 243324 248624 230580 182516 174330 214126 [10,] 244460 241114 208795 173476 169362 NA [11,] 233575 229245 197922 166444 166827 NA [12,] 237217 231805 194596 171297 178037 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/10yaf1258129968.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/2p1ve1258129968.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/3ey741258129968.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/4wew51258129968.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,] 169701.0 164182.0 161914 159612.0 151001 158114.0 186530 187069.0 174330 [2,] 186412.0 185686.0 178106 172608.0 167302 168053.0 202300 202388.0 182516 [3,] 205407.5 201406.5 200514 196475.5 193121 199487.5 231790 233767.5 222353 [4,] 219277.0 219313.0 212610 214771.0 211142 211457.0 241476 260307.0 243324 [5,] 235243.0 230354.0 227184 221678.0 217142 219452.0 256446 265845.0 248624 [,10] [,11] [,12] [1,] 169362 166444 171297 [2,] 173476 166827 178037 [3,] 208795 197922 194596 [4,] 241114 229245 231805 [5,] 244460 233575 237217 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 184208.5 179716 178257.8 169279 164842.8 171490.5 206520.2 196407.9 [2,] 226606.5 223097 222770.2 223672 221399.2 227484.5 257059.8 271127.1 [,9] [,10] [,11] [,12] [1,] 183129.9 161002.2 153817.6 156603.7 [2,] 261576.1 256587.8 242026.4 232588.3 $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(169701, 186412, 205407.5, 219277, 235243, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/550z11258129968.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,] 200237.0 217142.0 194596.0 166444.0 151001.0 186005 [2,] 206755.0 224431.0 209968.5 169675.0 160763.0 188906 [3,] 224904.5 231079.5 213690.5 175791.0 168094.5 191563 [4,] 242400.0 244869.0 224946.5 190133.5 176183.5 214126 [5,] 260307.0 265845.0 240636.0 202388.0 187069.0 226899 $n [1] 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 208646.6 221757.6 206858.9 166459.7 161061.1 178280.5 [2,] 241162.4 240401.4 220522.1 185122.3 175127.9 204845.5 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(200237, 206755, 224904.5, 242400, 260307, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6inpv1258129968.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,] 24196.98 61338.0 30062.00 [2,] 24416.66 65406.0 32410.75 [3,] 26106.03 66156.5 35922.50 [4,] 31326.43 72105.0 51743.75 [5,] 35741.23 78776.0 67638.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 22954.44 63101.04 27104.59 [2,] 29257.62 69211.96 44740.41 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(24196.9844732768, 24416.6575721910, 26106.0327534953, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/10yaf1258129968.ps tmp/10yaf1258129968.png") > system("convert tmp/2p1ve1258129968.ps tmp/2p1ve1258129968.png") > system("convert tmp/3ey741258129968.ps tmp/3ey741258129968.png") > system("convert tmp/4wew51258129968.ps tmp/4wew51258129968.png") > system("convert tmp/550z11258129968.ps tmp/550z11258129968.png") > system("convert tmp/6inpv1258129968.ps tmp/6inpv1258129968.png") > > > proc.time() user system elapsed 1.079 0.839 1.337