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(233084,233898,231355,232662,230037,231814,246796,247891,248291,245766,238776,242541,246861,246843,246947,241679,240085,241514,250525,250567,252145,251877,245817,248269,246310,246733,245028,240022,238614,238096,248530,248381,247567,241783,235000,237384,238020,236412,232279,230408,230254,229217,239658,239906,236558,223566,216054,214685,216086,211692,204681,203075,198401,191246,206750,209611,199573,195635,190062,193134,194795,190835,185045,184425,177293,180549,195344,196597,189102,185749,185145,192243,197356) > 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] 73 > (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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 233084 246861 246310 238020 216086 194795 197356 [2,] 233898 246843 246733 236412 211692 190835 NA [3,] 231355 246947 245028 232279 204681 185045 NA [4,] 232662 241679 240022 230408 203075 184425 NA [5,] 230037 240085 238614 230254 198401 177293 NA [6,] 231814 241514 238096 229217 191246 180549 NA [7,] 246796 250525 248530 239658 206750 195344 NA [8,] 247891 250567 248381 239906 209611 196597 NA [9,] 248291 252145 247567 236558 199573 189102 NA [10,] 245766 251877 241783 223566 195635 185749 NA [11,] 238776 245817 235000 216054 190062 185145 NA [12,] 242541 248269 237384 214685 193134 192243 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/1dqgl1244107734.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/2xjk31244107734.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/3o1051244107734.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/4x9v11244107734.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,] 194795 190835 185045 184425 177293.0 180549.0 195344 196597.0 189102.0 [2,] 206721 211692 204681 203075 198401.0 191246.0 206750 209611.0 199573.0 [3,] 233084 235155 231817 231535 230145.5 230515.5 243227 243898.5 242062.5 [4,] 242165 246733 245028 240022 238614.0 238096.0 248530 248381.0 248291.0 [5,] 246861 246843 246947 241679 240085.0 241514.0 250525 250567.0 252145.0 [,10] [,11] [,12] [1,] 185749.0 185145 192243.0 [2,] 195635.0 190062 193134.0 [3,] 232674.5 225527 226034.5 [4,] 245766.0 238776 242541.0 [5,] 251877.0 245817 248269.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 211917.4 212552.4 205791.9 207703 204206.8 200295.7 216277.6 218890.6 [2,] 254250.6 257757.6 257842.1 255367 256084.2 260735.3 270176.4 268906.4 [,9] [,10] [,11] [,12] [1,] 210637.8 200338.4 194104.9 194165.4 [2,] 273487.2 265010.6 256949.1 257903.6 $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(194795, 206721, 233084, 242165, 246861, 190835, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ofwv1244107734.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] [1,] 230037 240085 235000.0 214685.0 190062.0 177293.0 197356 [2,] 232238 243748 238355.0 226391.5 194384.5 184735.0 197356 [3,] 236337 246904 243405.5 231343.5 201324.0 187425.5 197356 [4,] 246281 250546 247150.0 237289.0 208180.5 193519.0 197356 [5,] 248291 252145 248530.0 239906.0 216086.0 196597.0 197356 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 229931.9 243803.4 239394.0 226373.1 195031.6 183419.1 197356 [2,] 242742.1 250004.6 247417.0 236313.9 207616.4 191431.9 197356 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(230037, 232238, 236337, 246281, 248291, 240085, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wmi91244107734.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,] 22068.07 52066.0 26909.25 [2,] 23127.97 55594.5 30352.62 [3,] 24697.35 58963.0 34281.75 [4,] 25971.68 62347.0 40281.38 [5,] 27694.76 66128.0 42730.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 23400.31 55883.14 29753.18 [2,] 25994.39 62042.86 38810.32 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(22068.071686316, 23127.9653307094, 24697.3482309994, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1dqgl1244107734.ps tmp/1dqgl1244107734.png") > system("convert tmp/2xjk31244107734.ps tmp/2xjk31244107734.png") > system("convert tmp/3o1051244107734.ps tmp/3o1051244107734.png") > system("convert tmp/4x9v11244107734.ps tmp/4x9v11244107734.png") > system("convert tmp/5ofwv1244107734.ps tmp/5ofwv1244107734.png") > system("convert tmp/6wmi91244107734.ps tmp/6wmi91244107734.png") > > > proc.time() user system elapsed 1.021 0.787 1.335