R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(73,72,71,69,89,88,73,63,64,64,65,67,69,71,70,72,88,83,76,70,75,71,75,81,87,90,80,85,105,104,98,94,107,112,121,118,120,122,109,112,132,127,116,113,123,125,137,127,123,128,114,120,143,135,119,117,132,139,158,141,139,150,142,149,166,150,139,140,158,169,186,177,175,187,176,185,204,188,171,171,182,185,200,192,185,195,190,195,213,194,171,171,186,182,193,185,172,185,179,182,193,173,155,164,188,186,200,185,173,190,190,193,195,178,163,165,188,182,200,177) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 73 69 87 120 123 139 175 185 172 173 NA [2,] 72 71 90 122 128 150 187 195 185 190 NA [3,] 71 70 80 109 114 142 176 190 179 190 NA [4,] 69 72 85 112 120 149 185 195 182 193 NA [5,] 89 88 105 132 143 166 204 213 193 195 NA [6,] 88 83 104 127 135 150 188 194 173 178 NA [7,] 73 76 98 116 119 139 171 171 155 163 NA [8,] 63 70 94 113 117 140 171 171 164 165 NA [9,] 64 75 107 123 132 158 182 186 188 188 NA [10,] 64 71 112 125 139 169 185 182 186 182 NA [11,] 65 75 121 137 158 186 200 193 200 200 NA [12,] 67 81 118 127 141 177 192 185 185 177 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/1kyis1281014115.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/2v80v1281014115.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/3v80v1281014115.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/4v80v1281014115.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,] 69 71 70 69.0 88.0 83.0 73 63.0 64 64 65 67 [2,] 87 90 80 85.0 105.0 104.0 98 94.0 107 112 121 118 [3,] 131 139 128 134.5 154.5 142.5 129 128.5 145 154 172 159 [4,] 173 187 179 185.0 195.0 178.0 163 165.0 186 182 200 185 [5,] 185 195 190 195.0 213.0 194.0 171 171.0 188 186 200 192 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 88.03097 90.53493 78.53565 84.53601 109.5324 105.5266 96.5234 [2,] 173.96903 187.46507 177.46435 184.46399 199.4676 179.4734 161.4766 [,8] [,9] [,10] [,11] [,12] [1,] 93.02557 105.5285 119.0252 132.5285 125.5241 [2,] 163.97443 184.4715 188.9748 211.4715 192.4759 $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(69, 87, 131, 173, 185, 71, 90, 139, 187, 195, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5nhzg1281014115.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] [,8] [,9] [,10] [,11] [1,] 63.0 69.0 80.0 109.0 114.0 139.0 171.0 171.0 155.0 163.0 NA [2,] 64.5 70.5 88.5 114.5 119.5 141.0 175.5 183.5 172.5 175.0 NA [3,] 70.0 73.5 101.0 122.5 130.0 150.0 185.0 188.0 183.5 185.0 NA [4,] 73.0 78.5 109.5 127.0 140.0 167.5 190.0 194.5 187.0 191.5 NA [5,] 73.0 88.0 121.0 137.0 158.0 186.0 204.0 195.0 200.0 200.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.12309 69.85115 91.42176 116.7987 120.6498 137.9132 178.3865 182.9828 [2,] 73.87691 77.14885 110.57824 128.2013 139.3502 162.0868 191.6135 193.0172 [,9] [,10] [,11] [1,] 176.8865 177.4742 NA [2,] 190.1135 192.5258 NA $out [1] 89 88 213 $group [1] 1 1 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(63, 64.5, 70, 73, 73, 69, 70.5, 73.5, 78.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6nhzg1281014115.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,] 37.45649 98.0 58.500 [2,] 42.97075 113.5 66.375 [3,] 47.31003 123.0 73.625 [4,] 49.60781 125.0 85.625 [5,] 52.11792 135.0 92.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 44.28282 117.7548 64.84495 [2,] 50.33724 128.2452 82.40505 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(37.4564932807236, 42.9707525609515, 47.3100299183823, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1kyis1281014115.ps tmp/1kyis1281014115.png",intern=TRUE)) character(0) > try(system("convert tmp/2v80v1281014115.ps tmp/2v80v1281014115.png",intern=TRUE)) character(0) > try(system("convert tmp/3v80v1281014115.ps tmp/3v80v1281014115.png",intern=TRUE)) character(0) > try(system("convert tmp/4v80v1281014115.ps tmp/4v80v1281014115.png",intern=TRUE)) character(0) > try(system("convert tmp/5nhzg1281014115.ps tmp/5nhzg1281014115.png",intern=TRUE)) character(0) > try(system("convert tmp/6nhzg1281014115.ps tmp/6nhzg1281014115.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.740 0.770 2.501