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(150.85,147.79,141.96,148.39,147.71,150.6,151.18,152.24,157.19,154.62,157.22,159.7,160.55,149.66,151.69,154.13,151.48,153.34,155.8,158.87,156.09,156.3,156.4,154.09,161.32,160.12,155.17,154.51,151.38,152.59,153.98,154.91,153.01,155.09,155.53,161.86,166.03,164.54,164.33,163.21,159.95,164.18,167.13,166.8,166.29,168.07,167.1,163.53,168.28,169.07,165.84,163.88,157.33,161,163.54,161.21,158.92,160.18,159.9,164.46) > 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,] 150.85 160.55 161.32 166.03 168.28 NA [2,] 147.79 149.66 160.12 164.54 169.07 NA [3,] 141.96 151.69 155.17 164.33 165.84 NA [4,] 148.39 154.13 154.51 163.21 163.88 NA [5,] 147.71 151.48 151.38 159.95 157.33 NA [6,] 150.60 153.34 152.59 164.18 161.00 NA [7,] 151.18 155.80 153.98 167.13 163.54 NA [8,] 152.24 158.87 154.91 166.80 161.21 NA [9,] 157.19 156.09 153.01 166.29 158.92 NA [10,] 154.62 156.30 155.09 168.07 160.18 NA [11,] 157.22 156.40 155.53 167.10 159.90 NA [12,] 159.70 154.09 161.86 163.53 164.46 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/1azbf1258141911.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/2k9pg1258141911.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/37e4y1258141911.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/414e71258141911.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,] 160.55 147.79 141.96 148.39 147.71 150.60 151.18 152.24 153.01 154.62 [2,] 160.55 149.66 151.69 154.13 151.38 152.59 153.98 154.91 156.09 155.09 [3,] 161.32 160.12 155.17 154.51 151.48 153.34 155.80 158.87 157.19 156.30 [4,] 166.03 164.54 164.33 163.21 157.33 161.00 163.54 161.21 158.92 160.18 [5,] 168.28 169.07 165.84 163.88 159.95 164.18 167.13 166.80 158.92 160.18 [,11] [,12] [1,] 155.53 154.09 [2,] 156.40 159.70 [3,] 157.22 161.86 [4,] 159.90 163.53 [5,] 159.90 164.46 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 157.4478 149.6058 146.2386 148.0941 147.2757 147.3975 149.0449 154.4184 [2,] 165.1922 170.6342 164.1014 160.9259 155.6843 159.2825 162.5551 163.3216 [,9] [,10] [,11] [,12] [1,] 155.1903 152.7034 154.7469 159.1537 [2,] 159.1897 159.8966 159.6931 164.5663 $out [1] 150.85 166.29 168.07 167.10 $group [1] 1 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(160.55, 160.55, 161.32, 166.03, 168.28, 147.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tjuo1258141911.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,] 141.960 149.660 151.380 159.950 157.330 NA [2,] 148.090 152.515 153.495 163.855 160.040 NA [3,] 151.015 154.965 155.000 165.285 162.375 NA [4,] 155.905 156.350 157.825 166.950 165.150 NA [5,] 159.700 160.550 161.860 168.070 169.070 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 147.4505 153.2158 153.0251 163.8733 160.0443 NA [2,] 154.5795 156.7142 156.9749 166.6967 164.7057 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(141.96, 148.09, 151.015, 155.905, 159.7, 149.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6msge1258141911.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,] 4.128568 10.37 2.830 [2,] 4.958208 12.76 4.460 [3,] 5.777674 14.07 6.125 [4,] 6.725255 16.69 9.320 [5,] 9.264612 21.28 14.880 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.971712 12.2775 3.908321 [2,] 6.583636 15.8625 8.341679 $out [1] 9.777488 23.880000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.12856754819393, 4.95820783448286, 5.77767364522675, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1azbf1258141911.ps tmp/1azbf1258141911.png") > system("convert tmp/2k9pg1258141911.ps tmp/2k9pg1258141911.png") > system("convert tmp/37e4y1258141911.ps tmp/37e4y1258141911.png") > system("convert tmp/414e71258141911.ps tmp/414e71258141911.png") > system("convert tmp/5tjuo1258141911.ps tmp/5tjuo1258141911.png") > system("convert tmp/6msge1258141911.ps tmp/6msge1258141911.png") > > > proc.time() user system elapsed 1.103 0.842 1.350