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(166.7,159.7,191,239.4,321.9,362.7,413.6,407.1,383.2,347.7,333.8,312.3,295.4,283.3,287.6,265.7,250.2,234.7,244,231.2,223.8,223.5,210.5,201.6,190.7,207.5,198.8,196.6,204.2,227.4,229.7,217.9,221.4,216.3,197,193.8,196.8,180.5,174.8,181.6,190,190.6,179,174.1,161.1,168.6,169.4,152.2,148.3,137.7,145,153.4,141.7,142.7,135.9,131.8,134.6,127.5,126.5,118.7,117.1,110.7,107.1,105.4,99,104,101.1,99.3,95.8,94.1,104.8,110.9) > 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,] 166.7 295.4 190.7 196.8 148.3 117.1 NA [2,] 159.7 283.3 207.5 180.5 137.7 110.7 NA [3,] 191.0 287.6 198.8 174.8 145.0 107.1 NA [4,] 239.4 265.7 196.6 181.6 153.4 105.4 NA [5,] 321.9 250.2 204.2 190.0 141.7 99.0 NA [6,] 362.7 234.7 227.4 190.6 142.7 104.0 NA [7,] 413.6 244.0 229.7 179.0 135.9 101.1 NA [8,] 407.1 231.2 217.9 174.1 131.8 99.3 NA [9,] 383.2 223.8 221.4 161.1 134.6 95.8 NA [10,] 347.7 223.5 216.3 168.6 127.5 94.1 NA [11,] 333.8 210.5 197.0 169.4 126.5 104.8 NA [12,] 312.3 201.6 193.8 152.2 118.7 110.9 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/10frs1244386684.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/20xqz1244386684.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/3wtih1244386684.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/44cfm1244386684.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,] 117.1 110.7 107.1 105.4 99.0 104.0 101.10 99.3 95.80 94.10 104.8 110.9 [2,] 148.3 137.7 145.0 153.4 141.7 142.7 135.90 131.8 134.60 127.50 126.5 118.7 [3,] 178.7 170.1 182.9 189.1 197.1 209.0 204.35 196.0 191.25 192.45 183.2 173.0 [4,] 196.8 207.5 198.8 239.4 250.2 234.7 244.00 231.2 223.80 223.50 210.5 201.6 [5,] 196.8 283.3 198.8 265.7 321.9 362.7 244.00 231.2 223.80 347.70 333.8 312.3 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 147.4159 125.0767 148.1973 133.6272 127.114 149.6570 134.622 131.8838 [2,] 209.9841 215.1233 217.6027 244.5728 267.086 268.3430 274.078 260.1162 [,9] [,10] [,11] [,12] [1,] 133.7131 130.5269 129.0173 119.5268 [2,] 248.7869 254.3731 237.3827 226.4732 $out [1] 295.4 287.6 413.6 407.1 383.2 $group [1] 1 3 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(117.1, 148.3, 178.7, 196.8, 196.8, 110.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ryl21244386684.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,] 159.70 201.60 190.70 152.2 118.70 94.10 NA [2,] 215.20 223.65 196.80 169.0 129.65 99.15 NA [3,] 327.85 239.35 205.85 176.9 136.80 104.40 NA [4,] 372.95 274.50 219.65 185.8 143.85 108.90 NA [5,] 413.60 295.40 229.70 196.8 153.40 117.10 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 255.8992 216.1570 195.4280 169.2374 130.3233 99.95296 NA [2,] 399.8008 262.5430 216.2720 184.5626 143.2767 108.84704 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(159.7, 215.2, 327.85, 372.95, 413.6, 201.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wm5p1244386684.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,] 57.93264 160.30 42.3750 [2,] 60.96560 179.40 62.9000 [3,] 79.96211 225.95 75.3875 [4,] 95.50926 273.05 84.4250 [5,] 110.44962 312.50 93.7500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 64.20651 183.2356 65.5698 [2,] 95.71770 268.6644 85.2052 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(57.9326419214591, 60.9655957768875, 79.9621075656595, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10frs1244386684.ps tmp/10frs1244386684.png") > system("convert tmp/20xqz1244386684.ps tmp/20xqz1244386684.png") > system("convert tmp/3wtih1244386684.ps tmp/3wtih1244386684.png") > system("convert tmp/44cfm1244386684.ps tmp/44cfm1244386684.png") > system("convert tmp/5ryl21244386684.ps tmp/5ryl21244386684.png") > system("convert tmp/6wm5p1244386684.ps tmp/6wm5p1244386684.png") > > > proc.time() user system elapsed 1.043 0.799 1.331