R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(278.1,283.3,287,287.9,279.7,273.2,272.6,274.8,277.2,277.5,278.7,279,280.1,280.8,280.1,270.5,260,258.2,260.1,262.2,263.4,264.7,267.4,266.8,265.2,262.5,255,252.8,249.6,254.2,259.4,260.8,261.6,257.2,249.8,235.2,227.4,223.1,221.6,218.5,220.1,222.1,222.9,222.8,222.1,209,201.7,204.5,208.7,213,218.6,221.9,224.6,226.8,229.6,231.4,229.1,232.7,236.6,242.2,251.5,261.5,266.4,280.9,294.4,308.8,328.8,348.2,365.9,387.5,395.9,395.8) > 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,] 278.1 280.1 265.2 227.4 208.7 251.5 NA [2,] 283.3 280.8 262.5 223.1 213.0 261.5 NA [3,] 287.0 280.1 255.0 221.6 218.6 266.4 NA [4,] 287.9 270.5 252.8 218.5 221.9 280.9 NA [5,] 279.7 260.0 249.6 220.1 224.6 294.4 NA [6,] 273.2 258.2 254.2 222.1 226.8 308.8 NA [7,] 272.6 260.1 259.4 222.9 229.6 328.8 NA [8,] 274.8 262.2 260.8 222.8 231.4 348.2 NA [9,] 277.2 263.4 261.6 222.1 229.1 365.9 NA [10,] 277.5 264.7 257.2 209.0 232.7 387.5 NA [11,] 278.7 267.4 249.8 201.7 236.6 395.9 NA [12,] 279.0 266.8 235.2 204.5 242.2 395.8 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/freestat/rcomp/tmp/1x99j1275824766.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/freestat/rcomp/tmp/2q0841275824766.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/freestat/rcomp/tmp/3q0841275824766.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/freestat/rcomp/tmp/4js7p1275824766.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] [1,] 208.70 213.0 218.6 218.50 220.1 222.1 222.90 222.8 222.1 209.00 201.7 [2,] 227.40 223.1 221.6 221.90 224.6 226.8 229.60 231.4 229.1 232.70 236.6 [3,] 258.35 262.0 260.7 261.65 254.8 256.2 259.75 261.5 262.5 260.95 258.6 [4,] 278.10 280.8 280.1 280.90 279.7 273.2 272.60 274.8 277.2 277.50 278.7 [5,] 280.10 283.3 287.0 287.90 294.4 308.8 328.80 274.8 277.2 277.50 278.7 [,12] [1,] 204.5 [2,] 235.2 [3,] 254.5 [4,] 279.0 [5,] 279.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 225.6469 224.7816 222.9656 223.5931 219.2587 226.2705 232.0136 233.5056 [2,] 291.0531 299.2184 298.4344 299.7069 290.3413 286.1295 287.4864 289.4944 [,9] [,10] [,11] [,12] [1,] 231.4739 232.0526 231.4441 226.2476 [2,] 293.5261 289.8474 285.7559 282.7524 $out [1] 348.2 365.9 387.5 395.9 395.8 $group [1] 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(208.7, 227.4, 258.35, 278.1, 280.1, 213, 223.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5js7p1275824766.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,] 272.6 258.20 249.6 201.70 208.70 251.50 NA [2,] 276.0 261.15 251.3 213.75 220.25 273.65 NA [3,] 278.4 265.75 256.1 221.85 227.95 318.80 NA [4,] 281.5 275.30 261.2 222.85 232.05 376.70 NA [5,] 287.9 280.80 265.2 227.40 242.20 395.90 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 275.8914 259.2961 251.5845 217.6994 222.5679 271.7982 NA [2,] 280.9086 272.2039 260.6155 226.0006 233.3321 365.8018 NA $out [1] 235.2 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(272.6, 276, 278.4, 281.5, 287.9, 258.2, 261.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6js7p1275824766.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,] 28.72349 68.40 32.4250 [2,] 29.49471 70.85 35.6375 [3,] 34.86993 96.30 37.7625 [4,] 56.76362 161.15 43.7250 [5,] 66.61677 194.20 48.6750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 22.43239 55.11356 34.07374 [2,] 47.30746 137.48644 41.45126 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(28.7234863250732, 29.4947080776645, 34.8699259766728, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1x99j1275824766.ps tmp/1x99j1275824766.png",intern=TRUE)) character(0) > try(system("convert tmp/2q0841275824766.ps tmp/2q0841275824766.png",intern=TRUE)) character(0) > try(system("convert tmp/3q0841275824766.ps tmp/3q0841275824766.png",intern=TRUE)) character(0) > try(system("convert tmp/4js7p1275824766.ps tmp/4js7p1275824766.png",intern=TRUE)) character(0) > try(system("convert tmp/5js7p1275824766.ps tmp/5js7p1275824766.png",intern=TRUE)) character(0) > try(system("convert tmp/6js7p1275824766.ps tmp/6js7p1275824766.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.599 1.234 1.779