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(153.24,184.48,191.81,168.19,163.81,190.57,163.81,129.62,173.90,198.76,135.52,179.81,137.05,142.57,187.52,220.48,208.76,210.19,232.57,173.81,218.86,226.76,196.67,237.43,173.14,207.62,234.67,204.10,230.76,210.19,194.76,172.10,221.90,225.24,228.00,198.76,199.05,235.43,270.76,234.10,237.24,239.43,239.24,197.33,217.43,242.19,207.52,232.76,222.10,202.48,228.10,319.52,236.95,252.00,262.29,172.10,243.90,235.62,216.95,236.29) > 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,] 153.24 137.05 173.14 199.05 222.10 NA [2,] 184.48 142.57 207.62 235.43 202.48 NA [3,] 191.81 187.52 234.67 270.76 228.10 NA [4,] 168.19 220.48 204.10 234.10 319.52 NA [5,] 163.81 208.76 230.76 237.24 236.95 NA [6,] 190.57 210.19 210.19 239.43 252.00 NA [7,] 163.81 232.57 194.76 239.24 262.29 NA [8,] 129.62 173.81 172.10 197.33 172.10 NA [9,] 173.90 218.86 221.90 217.43 243.90 NA [10,] 198.76 226.76 225.24 242.19 235.62 NA [11,] 135.52 196.67 228.00 207.52 216.95 NA [12,] 179.81 237.43 198.76 232.76 236.29 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/1y5691258141352.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/2uc6r1258141352.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/3t9pi1258141352.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/4zfcf1258141352.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] [1,] 137.05 184.48 187.52 168.19 208.76 190.57 163.81 172.10 217.43 225.24 [2,] 153.24 184.48 191.81 204.10 208.76 210.19 194.76 172.10 217.43 225.24 [3,] 173.14 202.48 228.10 220.48 230.76 210.19 232.57 172.10 218.86 226.76 [4,] 199.05 207.62 234.67 234.10 236.95 239.43 239.24 173.81 221.90 235.62 [5,] 222.10 235.43 270.76 234.10 237.24 252.00 262.29 173.81 221.90 242.19 [,11] [,12] [1,] 196.67 179.81 [2,] 196.67 198.76 [3,] 207.52 232.76 [4,] 216.95 236.29 [5,] 228.00 237.43 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 140.7708 186.1293 197.8152 199.2821 210.841 189.5291 201.1405 170.8917 [2,] 205.5092 218.8307 258.3848 241.6779 250.679 230.8509 263.9995 173.3083 [,9] [,10] [,11] [,12] [1,] 215.7015 219.4255 193.1902 206.2414 [2,] 222.0185 234.0945 221.8498 259.2786 $out [1] 142.57 319.52 163.81 129.62 197.33 173.90 243.90 198.76 135.52 $group [1] 2 4 5 8 8 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(137.05, 153.24, 173.14, 199.05, 222.1, 184.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/584m91258141352.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,] 129.620 137.050 172.100 197.330 202.480 NA [2,] 158.525 180.665 196.760 212.475 219.525 NA [3,] 171.045 209.475 208.905 234.765 235.955 NA [4,] 187.525 223.620 226.620 239.335 247.950 NA [5,] 198.760 237.430 234.670 270.760 262.290 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 157.8179 189.8829 195.2857 222.5140 222.9902 NA [2,] 184.2721 229.0671 222.5243 247.0160 248.9198 NA $out [1] 319.52 172.10 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(129.62, 158.525, 171.045, 187.525, 198.76, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uygy1258141352.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,] 16.56370 43.430 1.710 [2,] 25.12654 64.570 15.330 [3,] 32.66976 78.335 28.715 [4,] 35.26753 92.670 40.195 [5,] 39.05206 98.480 45.810 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 28.04439 65.5184 17.37391 [2,] 37.29514 91.1516 40.05609 $out [1] 56.14702 151.33000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(16.5636976548113, 25.1265384236490, 32.6697604071165, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1y5691258141352.ps tmp/1y5691258141352.png") > system("convert tmp/2uc6r1258141352.ps tmp/2uc6r1258141352.png") > system("convert tmp/3t9pi1258141352.ps tmp/3t9pi1258141352.png") > system("convert tmp/4zfcf1258141352.ps tmp/4zfcf1258141352.png") > system("convert tmp/584m91258141352.ps tmp/584m91258141352.png") > system("convert tmp/6uygy1258141352.ps tmp/6uygy1258141352.png") > > > proc.time() user system elapsed 1.091 0.832 1.453