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(77,70,67,76,85,106,108,120,108,111,109,104,104,117,111,110,116,118,115,111,112,97,106,93,95,97,81,71,75,70,72,80,78,80,81,99,87,100,95,128,112,104,102,108,103,99,96,85,78,74,106,100,109,87,107,106,109,83,84,83,65,68,61,75,66,78,68,68,174,64,48,45) > 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,] 77 104 95 87 78 65 NA [2,] 70 117 97 100 74 68 NA [3,] 67 111 81 95 106 61 NA [4,] 76 110 71 128 100 75 NA [5,] 85 116 75 112 109 66 NA [6,] 106 118 70 104 87 78 NA [7,] 108 115 72 102 107 68 NA [8,] 120 111 80 108 106 68 NA [9,] 108 112 78 103 109 174 NA [10,] 111 97 80 99 83 64 NA [11,] 109 106 81 96 84 48 NA [12,] 104 93 99 85 83 45 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/1qyj31291753542.ps",horizontal=F,onefile=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/2jpio1291753542.ps",horizontal=F,onefile=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/3jpio1291753542.ps",horizontal=F,onefile=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/4tzi91291753542.ps",horizontal=F,onefile=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,] 65.0 68.0 61 71 66 70.0 68.0 68 103.0 64 48 83 [2,] 77.0 70.0 67 75 75 78.0 72.0 80 103.0 80 81 83 [3,] 82.5 85.5 88 88 97 95.5 104.5 107 108.5 90 90 89 [4,] 95.0 100.0 106 110 112 106.0 108.0 111 112.0 99 106 99 [5,] 104.0 117.0 111 128 116 118.0 115.0 120 112.0 111 109 104 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 70.88942 66.14903 62.84374 65.42387 73.1338 77.4391 81.27884 87.004 [2,] 94.11058 104.85097 113.15626 110.57613 120.8662 113.5609 127.72116 126.996 [,9] [,10] [,11] [,12] [1,] 102.6947 77.74439 73.87419 78.67948 [2,] 114.3053 102.25561 106.12581 99.32052 $out [1] 78 174 45 $group [1] 9 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(65, 77, 82.5, 95, 104, 68, 70, 85.5, 100, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tzi91291753542.ps",horizontal=F,onefile=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,] 67.0 93.0 70.0 85.0 74.0 61.0 NA [2,] 76.5 105.0 73.5 95.5 83.0 62.5 NA [3,] 105.0 111.0 80.0 101.0 93.5 67.0 NA [4,] 108.5 115.5 88.0 106.0 106.5 71.5 NA [5,] 120.0 118.0 99.0 112.0 109.0 78.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 90.40459 106.2109 73.38645 96.21088 82.7815 62.89504 NA [2,] 119.59541 115.7891 86.61355 105.78912 104.2185 71.10496 NA $out [1] 128 174 48 45 $group [1] 4 6 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(67, 76.5, 105, 108.5, 120, 93, 105, 111, 115.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6tzi91291753542.ps",horizontal=F,onefile=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,] 16.67333 39.0 7.00 [2,] 19.18507 47.5 16.75 [3,] 20.36988 50.0 24.50 [4,] 21.78835 58.0 30.25 [5,] 23.06223 61.0 33.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 19.18250 45.21088 18.34256 [2,] 21.55725 54.78912 30.65744 $out [1] 13.96663 31.88103 96.00000 $group [1] 1 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(16.6733320005331, 19.1850697362007, 20.3698764299731, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qyj31291753542.ps tmp/1qyj31291753542.png",intern=TRUE)) character(0) > try(system("convert tmp/2jpio1291753542.ps tmp/2jpio1291753542.png",intern=TRUE)) character(0) > try(system("convert tmp/3jpio1291753542.ps tmp/3jpio1291753542.png",intern=TRUE)) character(0) > try(system("convert tmp/4tzi91291753542.ps tmp/4tzi91291753542.png",intern=TRUE)) character(0) > try(system("convert tmp/5tzi91291753542.ps tmp/5tzi91291753542.png",intern=TRUE)) character(0) > try(system("convert tmp/6tzi91291753542.ps tmp/6tzi91291753542.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.043 0.843 2.802