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(25,24,23,21,41,40,25,15,16,16,17,19,18,19,20,21,46,47,30,16,15,18,30,31,32,36,30,31,61,57,45,33,31,36,46,49,34,40,41,48,75,77,71,54,50,56,66,66,48,63,71,70,88,92,91,80,81,81,98,106,85,93,96,92,115,109,119,107,107,106,132,143,120,123,132,136,158,151,155,138,143,139,168,182,154,158,167,170,197,190,196,174,180,171,200,215,184,186,197,186,211,205,218,199,213,207,236,248,211,220,235,223,245,236,253,246,255,248,274,288) > 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,] 25 18 32 34 48 85 120 154 184 211 NA [2,] 24 19 36 40 63 93 123 158 186 220 NA [3,] 23 20 30 41 71 96 132 167 197 235 NA [4,] 21 21 31 48 70 92 136 170 186 223 NA [5,] 41 46 61 75 88 115 158 197 211 245 NA [6,] 40 47 57 77 92 109 151 190 205 236 NA [7,] 25 30 45 71 91 119 155 196 218 253 NA [8,] 15 16 33 54 80 107 138 174 199 246 NA [9,] 16 15 31 50 81 107 143 180 213 255 NA [10,] 16 18 36 56 81 106 139 171 207 248 NA [11,] 17 30 46 66 98 132 168 200 236 274 NA [12,] 19 31 49 66 106 143 182 215 248 288 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/1l2xv1282245999.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/2l2xv1282245999.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/3l2xv1282245999.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/4wteg1282245999.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,] 18.0 19 20.0 21 41.0 40.0 25 15.0 15 16.0 17 19.0 [2,] 32.0 36 30.0 31 61.0 57.0 45 33.0 31 36.0 46 49.0 [3,] 66.5 78 83.5 81 101.5 100.5 105 93.5 94 93.5 115 124.5 [4,] 154.0 158 167.0 170 197.0 190.0 196 174.0 180 171.0 200 215.0 [5,] 211.0 220 235.0 223 245.0 236.0 253 246.0 255 248.0 274 288.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.543936 17.04394 15.04934 11.55006 33.54898 34.0479 29.55438 [2,] 127.456064 138.95606 151.95066 150.44994 169.45102 166.9521 180.44562 [,8] [,9] [,10] [,11] [,12] [1,] 23.05078 19.55366 26.04862 38.05546 41.55978 [2,] 163.94922 168.44634 160.95138 191.94454 207.44022 $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(18, 32, 66.5, 154, 211, 19, 36, 78, 158, 220, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wteg1282245999.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,] 15.0 15.0 30.0 34.0 48.0 85.0 120.0 154.0 184.0 211.0 NA [2,] 16.5 18.0 31.5 44.5 70.5 94.5 134.0 168.5 191.5 229.0 NA [3,] 22.0 20.5 36.0 55.0 81.0 107.0 141.0 177.0 206.0 245.5 NA [4,] 25.0 30.5 47.5 68.5 91.5 117.0 156.5 196.5 215.5 254.0 NA [5,] 25.0 47.0 61.0 77.0 106.0 143.0 182.0 215.0 248.0 288.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,] 18.12309 14.79867 28.70229 44.05344 71.42176 96.7376 130.7376 164.229 [2,] 25.87691 26.20133 43.29771 65.94656 90.57824 117.2624 151.2624 189.771 [,9] [,10] [,11] [1,] 195.0534 234.0973 NA [2,] 216.9466 256.9027 NA $out [1] 41 40 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(15, 16.5, 22, 25, 25, 15, 18, 20.5, 30.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66kd11282245999.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,] 70.70471 193.0 112.250 [2,] 73.17959 201.5 120.125 [3,] 79.45885 221.5 125.875 [4,] 83.79359 236.0 134.625 [5,] 95.52202 269.0 153.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 74.61773 205.7643 119.2615 [2,] 84.29997 237.2357 132.4885 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(70.7047067425893, 73.1795851169063, 79.4588476371995, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1l2xv1282245999.ps tmp/1l2xv1282245999.png",intern=TRUE)) character(0) > try(system("convert tmp/2l2xv1282245999.ps tmp/2l2xv1282245999.png",intern=TRUE)) character(0) > try(system("convert tmp/3l2xv1282245999.ps tmp/3l2xv1282245999.png",intern=TRUE)) character(0) > try(system("convert tmp/4wteg1282245999.ps tmp/4wteg1282245999.png",intern=TRUE)) character(0) > try(system("convert tmp/5wteg1282245999.ps tmp/5wteg1282245999.png",intern=TRUE)) character(0) > try(system("convert tmp/66kd11282245999.ps tmp/66kd11282245999.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.031 0.800 1.490