R version 2.10.1 (2009-12-14) 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(7089,77102,35123,23109,11115,48105,7896,79102,2494,76101,9484,8183,9092,49109,27127,31116,77120,80115,67117,18110,3099,3105,5786,7387,5089,288,65108,44100,68102,8798,8183,288,3680,9374,2271,4671,3466,8068,2780,9883,6479,3373,6468,460,5553,6157,2345,3744,6144,9948,2049,9549,6049,745,9643,9938,5535,6932,1827,9726,7624,9529,7631,6132,7534,2137,8738,8836,3230,633,9126,123) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7089 9092 5089 3466 6144 7624 NA [2,] 77102 49109 288 8068 9948 9529 NA [3,] 35123 27127 65108 2780 2049 7631 NA [4,] 23109 31116 44100 9883 9549 6132 NA [5,] 11115 77120 68102 6479 6049 7534 NA [6,] 48105 80115 8798 3373 745 2137 NA [7,] 7896 67117 8183 6468 9643 8738 NA [8,] 79102 18110 288 460 9938 8836 NA [9,] 2494 3099 3680 5553 5535 3230 NA [10,] 76101 3105 9374 6157 6932 633 NA [11,] 9484 5786 2271 2345 1827 9126 NA [12,] 8183 7387 4671 3744 9726 123 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/rcomp/tmp/1vif21274875047.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/rcomp/tmp/26rw51274875047.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/rcomp/tmp/36rw51274875047.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/rcomp/tmp/4z1e81274875047.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] [1,] 3466.0 288.0 2049 6132 6049.0 745.0 6468.0 288 2494 633.0 1827.0 [2,] 5089.0 8068.0 2780 9549 6479.0 2137.0 7896.0 460 3099 3105.0 2271.0 [3,] 6616.5 9738.5 17379 16496 9324.5 6085.5 8460.5 9387 3455 6544.5 4065.5 [4,] 7624.0 49109.0 35123 31116 68102.0 48105.0 9643.0 18110 5535 9374.0 9126.0 [5,] 9092.0 77102.0 65108 44100 77120.0 80115.0 9643.0 18110 5553 9374.0 9484.0 [,12] [1,] 123 [2,] 3744 [3,] 6029 [4,] 8183 [5,] 9726 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4981.343 -16734.27 -3483.280 2584.588 -30424.33 -23565.34 7333.629 [2,] 8251.657 36211.27 38241.280 30407.412 49073.33 35736.34 9587.371 [,8] [,9] [,10] [,11] [,12] [1,] -1997.82 1883.701 2500.793 -356.1964 3165.702 [2,] 20771.82 5026.299 10588.207 8487.1964 8892.298 $out [1] 67117 79102 76101 $group [1] 7 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3466, 5089, 6616.5, 7624, 9092, 288, 8068, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5z1e81274875047.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,] 2494.0 3099.0 288.0 460.0 745.0 123.0 NA [2,] 8039.5 6586.5 2975.5 3076.5 3792.0 2683.5 NA [3,] 17112.0 22618.5 6636.0 4648.5 6538.0 7579.0 NA [4,] 62103.0 58113.0 26737.0 6473.5 9684.5 8787.0 NA [5,] 79102.0 80115.0 44100.0 9883.0 9948.0 9529.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7546.725 -883.0825 -4201.78 3099.105 3850.391 4795.153 NA [2,] 41770.725 46120.0825 17473.78 6197.895 9225.609 10362.847 NA $out [1] 65108 68102 $group [1] 3 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2494, 8039.5, 17112, 62103, 79102, 3099, 6586.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6z1e81274875047.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,] 1305.013 3059 1449.000 [2,] 3512.524 8630 3072.875 [3,] 24329.956 61854 9757.250 [4,] 30243.633 76141 30008.375 [5,] 33639.702 79370 47112.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 12137.72 31061.78 -2528.212 [2,] 36522.19 92646.22 22042.712 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1305.01270747325, 3512.52403677623, 24329.9562372727, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vif21274875047.ps tmp/1vif21274875047.png",intern=TRUE)) character(0) > try(system("convert tmp/26rw51274875047.ps tmp/26rw51274875047.png",intern=TRUE)) character(0) > try(system("convert tmp/36rw51274875047.ps tmp/36rw51274875047.png",intern=TRUE)) character(0) > try(system("convert tmp/4z1e81274875047.ps tmp/4z1e81274875047.png",intern=TRUE)) character(0) > try(system("convert tmp/5z1e81274875047.ps tmp/5z1e81274875047.png",intern=TRUE)) character(0) > try(system("convert tmp/6z1e81274875047.ps tmp/6z1e81274875047.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.410 1.220 1.899