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(80.9,113.8,71.2,55.8,61,60.8,74.3,66.5,71,61.6,66.4,74.7,72.4,76.4,86.4,73.9,133.1,83.3,85.8,76.8,92.7,68.8,69.4,97,84.6,84.2,201.8,83.1,69.4,78.8,77.1,90.7,107.5,81.4,83.3,105.7,85.8,87.2,87.5,77.5,78.5,89.7,94.3,104.4,115.9,90,91.1,119.8,101.9,99.2,115.7,94.9,99.8,109.6,109,119.6,119.2,94.6,102.5,105.4) > 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,] 80.9 72.4 84.6 85.8 101.9 NA [2,] 113.8 76.4 84.2 87.2 99.2 NA [3,] 71.2 86.4 201.8 87.5 115.7 NA [4,] 55.8 73.9 83.1 77.5 94.9 NA [5,] 61.0 133.1 69.4 78.5 99.8 NA [6,] 60.8 83.3 78.8 89.7 109.6 NA [7,] 74.3 85.8 77.1 94.3 109.0 NA [8,] 66.5 76.8 90.7 104.4 119.6 NA [9,] 71.0 92.7 107.5 115.9 119.2 NA [10,] 61.6 68.8 81.4 90.0 94.6 NA [11,] 66.4 69.4 83.3 91.1 102.5 NA [12,] 74.7 97.0 105.7 119.8 105.4 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/11kl91257970484.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/2j4b31257970484.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/3te0b1257970484.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/4u8gm1257970484.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,] 80.9 76.4 71.2 73.9 61.0 78.8 74.3 66.5 71.0 61.6 66.4 97.0 [2,] 80.9 84.2 86.4 73.9 69.4 78.8 77.1 76.8 92.7 68.8 69.4 97.0 [3,] 84.6 87.2 87.5 77.5 78.5 83.3 85.8 90.7 107.5 81.4 83.3 105.4 [4,] 85.8 99.2 115.7 83.1 99.8 89.7 94.3 104.4 115.9 90.0 91.1 105.7 [5,] 85.8 113.8 115.7 94.9 133.1 89.7 109.0 119.6 119.2 94.6 102.5 105.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 81.13767 76.60104 66.7967 70.9993 57.01944 75.59809 73.64652 71.19791 [2,] 88.06233 97.79896 108.2033 84.0007 99.98056 91.00191 97.95348 110.20209 [,9] [,10] [,11] [,12] [1,] 91.10694 66.42013 67.96683 99.2526 [2,] 123.89306 96.37987 98.63317 111.5474 $out [1] 72.4 101.9 201.8 55.8 60.8 109.6 74.7 119.8 $group [1] 1 1 3 4 6 6 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(80.9, 80.9, 84.6, 85.8, 85.8, 76.4, 84.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5v2xy1257970484.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,] 55.80 68.80 69.40 77.50 94.60 NA [2,] 61.30 73.15 80.10 86.50 99.50 NA [3,] 68.75 80.05 83.75 89.85 103.95 NA [4,] 74.50 89.55 98.20 99.35 112.65 NA [5,] 80.90 97.00 107.50 115.90 119.60 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 62.72939 72.56985 75.49447 83.98903 97.9522 NA [2,] 74.77061 87.53015 92.00553 95.71097 109.9478 NA $out [1] 113.8 133.1 201.8 119.8 $group [1] 1 2 3 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(55.8, 61.3, 68.75, 74.5, 80.9, 68.8, 73.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67obf1257970484.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,] 10.74602 29.50 4.90 [2,] 14.18095 35.40 10.05 [3,] 15.81946 42.10 19.20 [4,] 20.48685 50.95 25.40 [5,] 28.88690 72.10 30.40 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 12.94330 35.00754 12.19876 [2,] 18.69562 49.19246 26.20124 $out [1] 52.4324 130.6000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(10.7460225199838, 14.1809529178716, 15.8194584092041, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/11kl91257970484.ps tmp/11kl91257970484.png") > system("convert tmp/2j4b31257970484.ps tmp/2j4b31257970484.png") > system("convert tmp/3te0b1257970484.ps tmp/3te0b1257970484.png") > system("convert tmp/4u8gm1257970484.ps tmp/4u8gm1257970484.png") > system("convert tmp/5v2xy1257970484.ps tmp/5v2xy1257970484.png") > system("convert tmp/67obf1257970484.ps tmp/67obf1257970484.png") > > > proc.time() user system elapsed 1.094 0.841 1.855