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(9487,8700,9627,8947,9283,8829,9947,9628,9318,9605,8640,9214,9567,8547,9185,9470,9123,9278,10170,9434,9655,9429,8739,9552,9687,9019,9672,9206,9069,9788,10312,10105,9863,9656,9295,9946,9701,9049,10190,9706,9765,9893,9994,10433,10073,10112,9266,9820,10097,9115,10411,9678,10408,10153,10368,10581,10597,10680,9738,9556) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 9487 9567 9687 9701 10097 NA [2,] 8700 8547 9019 9049 9115 NA [3,] 9627 9185 9672 10190 10411 NA [4,] 8947 9470 9206 9706 9678 NA [5,] 9283 9123 9069 9765 10408 NA [6,] 8829 9278 9788 9893 10153 NA [7,] 9947 10170 10312 9994 10368 NA [8,] 9628 9434 10105 10433 10581 NA [9,] 9318 9655 9863 10073 10597 NA [10,] 9605 9429 9656 10112 10680 NA [11,] 8640 8739 9295 9266 9738 NA [12,] 9214 9552 9946 9820 9556 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/1rz811257953068.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/24fkw1257953068.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/3o2hl1257953068.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/40xdi1257953068.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,] 9487 8547 9185 8947 9069 8829 9947 9434 9318 9429 8640 9214 [2,] 9567 8700 9627 9206 9123 9278 9994 9628 9655 9605 8739 9552 [3,] 9687 9019 9672 9470 9283 9788 10170 10105 9863 9656 9266 9556 [4,] 9701 9049 10190 9678 9765 9893 10312 10433 10073 10112 9295 9820 [5,] 9701 9115 10411 9706 10408 10153 10368 10581 10597 10680 9738 9946 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9592.316 8772.397 9274.186 9136.486 8829.364 9353.443 9945.302 [2,] 9781.684 9265.603 10069.814 9803.514 9736.636 10222.557 10394.698 [,8] [,9] [,10] [,11] [,12] [1,] 9536.189 9567.642 9297.755 8873.132 9366.632 [2,] 10673.811 10158.358 10014.245 9658.868 9745.368 $out [1] 10097 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(9487, 9567, 9687, 9701, 9701, 8547, 8700, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fbdu1257953068.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,] 8640.0 8547.0 9019.0 9266.0 9115.0 NA [2,] 8888.0 9154.0 9250.5 9703.5 9708.0 NA [3,] 9300.5 9431.5 9679.5 9856.5 10260.5 NA [4,] 9616.0 9559.5 9904.5 10092.5 10496.0 NA [5,] 9947.0 9655.0 10312.0 10433.0 10680.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 8968.454 9246.549 9381.206 9679.074 9901.088 NA [2,] 9632.546 9616.451 9977.794 10033.926 10619.912 NA $out [1] 10170 9049 $group [1] 2 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(8640, 8888, 9300.5, 9616, 9947, 8547, 9154, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6q7371257953068.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,] 186.6660 421.0 134.0 [2,] 265.4283 671.0 333.5 [3,] 464.0011 1122.5 489.5 [4,] 501.2241 1265.0 589.0 [5,] 562.4249 1339.0 805.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 356.4530 851.5726 372.9647 [2,] 571.5492 1393.4274 606.0353 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(186.666011903614, 265.428255468150, 464.001114029533, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rz811257953068.ps tmp/1rz811257953068.png") > system("convert tmp/24fkw1257953068.ps tmp/24fkw1257953068.png") > system("convert tmp/3o2hl1257953068.ps tmp/3o2hl1257953068.png") > system("convert tmp/40xdi1257953068.ps tmp/40xdi1257953068.png") > system("convert tmp/5fbdu1257953068.ps tmp/5fbdu1257953068.png") > system("convert tmp/6q7371257953068.ps tmp/6q7371257953068.png") > > > proc.time() user system elapsed 1.053 0.803 1.346