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(106.8,114.3,105.7,90.1,91.6,97.7,100.8,104.6,95.9,102.7,104,107.9,113.8,113.8,123.1,125.1,137.6,134,140.3,152.1,150.6,167.3,153.2,142,154.4,158.5,180.9,181.3,172.4,192,199.3,215.4,214.3,201.5,190.5,196,215.7,209.4,214.1,237.8,239,237.8,251.5,248.8,215.4,201.2,203.1,214.2,188.9,203,213.3,228.5,228.2,240.9,258.8,248.5,269.2,289.6,323.4,317.2,322.8,340.9,368.2,388.5,441.2,474.3,483.9,417.9,365.9,263,199.4,157.2) > 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,] 106.8 113.8 154.4 215.7 188.9 322.8 NA [2,] 114.3 113.8 158.5 209.4 203.0 340.9 NA [3,] 105.7 123.1 180.9 214.1 213.3 368.2 NA [4,] 90.1 125.1 181.3 237.8 228.5 388.5 NA [5,] 91.6 137.6 172.4 239.0 228.2 441.2 NA [6,] 97.7 134.0 192.0 237.8 240.9 474.3 NA [7,] 100.8 140.3 199.3 251.5 258.8 483.9 NA [8,] 104.6 152.1 215.4 248.8 248.5 417.9 NA [9,] 95.9 150.6 214.3 215.4 269.2 365.9 NA [10,] 102.7 167.3 201.5 201.2 289.6 263.0 NA [11,] 104.0 153.2 190.5 203.1 323.4 199.4 NA [12,] 107.9 142.0 196.0 214.2 317.2 157.2 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/1qpjb1244029814.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/20olt1244029814.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/3wq201244029814.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/4v8sv1244029814.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,] 106.80 113.80 105.7 90.1 91.6 97.7 100.8 104.60 95.90 102.70 104.00 [2,] 113.80 114.30 123.1 125.1 137.6 134.0 140.3 152.10 150.60 167.30 153.20 [3,] 171.65 180.75 197.1 204.9 200.3 214.9 225.4 231.95 214.85 201.35 194.95 [4,] 215.70 209.40 214.1 237.8 239.0 240.9 258.8 248.80 269.20 263.00 203.10 [5,] 322.80 340.90 214.1 388.5 239.0 240.9 258.8 248.80 365.90 289.60 203.10 [,12] [1,] 107.9 [2,] 142.0 [3,] 176.6 [4,] 214.2 [5,] 317.2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.9212 119.4074 138.4021 132.2049 134.8937 145.9460 148.9637 169.5754 [2,] 237.3788 242.0926 255.7979 277.5951 265.7063 283.8540 301.8363 294.3246 [,9] [,10] [,11] [,12] [1,] 138.3492 139.6204 162.7629 130.0287 [2,] 291.3508 263.0796 227.1371 223.1713 $out [1] 368.2 441.2 474.3 483.9 417.9 323.4 $group [1] 3 5 6 7 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(106.8, 113.8, 171.65, 215.7, 322.8, 113.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50p701244029814.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,] 90.10 113.80 154.40 201.20 188.90 157.20 NA [2,] 96.80 124.10 176.65 211.75 220.75 292.90 NA [3,] 103.35 138.95 191.25 215.55 244.70 367.05 NA [4,] 106.25 151.35 200.40 238.40 279.40 429.55 NA [5,] 114.30 167.30 215.40 251.50 323.40 483.90 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 99.0398 126.5211 180.4175 203.3948 217.9493 304.723 NA [2,] 107.6602 151.3789 202.0825 227.7052 271.4507 429.377 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(90.1, 96.8, 103.35, 106.25, 114.3, 113.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61al51244029814.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,] 66.97873 186.90 63.8500 [2,] 76.72182 217.70 74.1000 [3,] 93.70100 266.25 83.7500 [4,] 115.04112 331.45 90.8125 [5,] 134.86383 383.10 101.9250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 76.22331 214.3679 76.12732 [2,] 111.17869 318.1321 91.37268 $out [1] 39.65 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(66.97872547807, 76.7218203856652, 93.7009996496158, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qpjb1244029814.ps tmp/1qpjb1244029814.png") > system("convert tmp/20olt1244029814.ps tmp/20olt1244029814.png") > system("convert tmp/3wq201244029814.ps tmp/3wq201244029814.png") > system("convert tmp/4v8sv1244029814.ps tmp/4v8sv1244029814.png") > system("convert tmp/50p701244029814.ps tmp/50p701244029814.png") > system("convert tmp/61al51244029814.ps tmp/61al51244029814.png") > > > proc.time() user system elapsed 1.097 0.871 1.846