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(89.3,90.3,91.1,90.1,86.7,85.1,83.4,82,80.4,81.9,93.8,94.8,92.3,87.5,83.2,82,80.3,81.8,85.1,84.2,84.4,84.5,93.3,93.2,100.3,111.4,114.9,109.5,109.9,105.8,110.8,108.8,116.1,109.8,113.8,113.8,117.4,119.5,122.6,120.7,119,126.1,133.9,138.1,140.4,148.2,148.2,155.9,171.1,171.9,188.8,214.9,228.5,220,225.4,220.7,219.7,232.1,223.5,218.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] 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,] 89.3 92.3 100.3 117.4 171.1 NA [2,] 90.3 87.5 111.4 119.5 171.9 NA [3,] 91.1 83.2 114.9 122.6 188.8 NA [4,] 90.1 82.0 109.5 120.7 214.9 NA [5,] 86.7 80.3 109.9 119.0 228.5 NA [6,] 85.1 81.8 105.8 126.1 220.0 NA [7,] 83.4 85.1 110.8 133.9 225.4 NA [8,] 82.0 84.2 108.8 138.1 220.7 NA [9,] 80.4 84.4 116.1 140.4 219.7 NA [10,] 81.9 84.5 109.8 148.2 232.1 NA [11,] 93.8 93.3 113.8 148.2 223.5 NA [12,] 94.8 93.2 113.8 155.9 218.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/freestat/rcomp/tmp/1o7hf1257429410.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/26h7x1257429410.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/3qcdn1257429410.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/4cjci1257429410.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,] 89.3 87.5 83.2 82.0 80.3 81.8 83.4 82.0 80.4 81.9 93.3 93.2 [2,] 92.3 90.3 91.1 90.1 86.7 85.1 85.1 84.2 84.4 84.5 93.8 94.8 [3,] 100.3 111.4 114.9 109.5 109.9 105.8 110.8 108.8 116.1 109.8 113.8 113.8 [4,] 117.4 119.5 122.6 120.7 119.0 126.1 133.9 138.1 140.4 148.2 148.2 155.9 [5,] 117.4 119.5 122.6 120.7 119.0 126.1 133.9 138.1 219.7 232.1 223.5 218.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 82.5644 90.76735 92.64218 87.87812 87.0769 76.8295 76.31804 [2,] 118.0356 132.03265 137.15782 131.12188 132.7231 134.7705 145.28196 [,8] [,9] [,10] [,11] [,12] [1,] 70.7144 76.53054 64.78974 75.3611 70.6269 [2,] 146.8856 155.66946 154.81026 152.2389 156.9731 $out [1] 171.1 171.9 188.8 214.9 228.5 220.0 225.4 220.7 $group [1] 1 2 3 4 5 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89.3, 92.3, 100.3, 117.4, 117.4, 87.5, 90.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/56hjb1257429410.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,] 80.4 80.30 105.80 117.4 171.10 NA [2,] 82.7 82.60 109.15 120.1 201.85 NA [3,] 88.0 84.45 110.35 130.0 219.85 NA [4,] 90.7 89.90 113.80 144.3 224.45 NA [5,] 94.8 93.30 116.10 155.9 232.10 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 84.35115 81.12042 108.2291 118.9622 209.542 NA [2,] 91.64885 87.77958 112.4709 141.0378 230.158 NA $out [1] 100.3 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(80.4, 82.7, 88, 90.7, 94.8, 80.3, 82.6, 84.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6v1w91257429410.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,] 33.69202 81.80 25.10 [2,] 47.41156 115.65 31.05 [3,] 55.59599 135.55 44.90 [4,] 57.80829 140.65 55.20 [5,] 62.32796 150.20 63.70 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 50.85397 124.1473 33.88502 [2,] 60.33801 146.9527 55.91498 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(33.6920168585972, 47.4115601835348, 55.5959897487902, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1o7hf1257429410.ps tmp/1o7hf1257429410.png") > system("convert tmp/26h7x1257429410.ps tmp/26h7x1257429410.png") > system("convert tmp/3qcdn1257429410.ps tmp/3qcdn1257429410.png") > system("convert tmp/4cjci1257429410.ps tmp/4cjci1257429410.png") > system("convert tmp/56hjb1257429410.ps tmp/56hjb1257429410.png") > system("convert tmp/6v1w91257429410.ps tmp/6v1w91257429410.png") > > > proc.time() user system elapsed 1.600 1.222 1.783