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(3.42,3.42,3.43,3.47,3.51,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.58,3.6,3.61,3.61,3.61,3.63,3.68,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.78,3.79,3.79,3.8,3.8,3.8,3.8,3.81,3.95,3.99,4,4.06,4.16,4.19,4.2,4.2,4.2,4.2,4.2,4.23,4.38,4.43,4.44,4.44,4.44,4.44,4.44,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.46,4.46,4.46,4.48,4.58,4.67,4.68,4.68) > 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,] 3.42 3.52 3.69 3.81 4.23 4.45 NA [2,] 3.42 3.52 3.69 3.95 4.38 4.45 NA [3,] 3.43 3.58 3.69 3.99 4.43 4.45 NA [4,] 3.47 3.60 3.69 4.00 4.44 4.45 NA [5,] 3.51 3.61 3.69 4.06 4.44 4.46 NA [6,] 3.52 3.61 3.78 4.16 4.44 4.46 NA [7,] 3.52 3.61 3.79 4.19 4.44 4.46 NA [8,] 3.52 3.63 3.79 4.20 4.44 4.48 NA [9,] 3.52 3.68 3.80 4.20 4.45 4.58 NA [10,] 3.52 3.69 3.80 4.20 4.45 4.67 NA [11,] 3.52 3.69 3.80 4.20 4.45 4.68 NA [12,] 3.52 3.69 3.80 4.20 4.45 4.68 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/1ygcn1243616758.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/2xf301243616758.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/3drp21243616758.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/4umbl1243616758.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,] 3.42 3.42 3.43 3.470 3.510 3.52 3.52 3.520 3.52 3.52 3.52 3.52 [2,] 3.52 3.52 3.58 3.600 3.610 3.61 3.61 3.630 3.68 3.69 3.69 3.69 [3,] 3.75 3.82 3.84 3.845 3.875 3.97 3.99 3.995 4.00 4.00 4.00 4.00 [4,] 4.23 4.38 4.43 4.440 4.440 4.44 4.44 4.440 4.45 4.45 4.45 4.45 [5,] 4.45 4.45 4.45 4.450 4.460 4.46 4.46 4.480 4.58 4.67 4.68 4.68 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.292027 3.265272 3.291723 3.303173 3.339623 3.434623 3.454623 3.472524 [2,] 4.207973 4.374728 4.388277 4.386827 4.410377 4.505377 4.525377 4.517476 [,9] [,10] [,11] [,12] [1,] 3.503325 3.509775 3.509775 3.509775 [2,] 4.496675 4.490225 4.490225 4.490225 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3.42, 3.52, 3.75, 4.23, 4.45, 3.42, 3.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5tjtc1243616758.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,] 3.42 3.520 3.690 3.810 4.430 4.450 NA [2,] 3.45 3.590 3.690 3.995 4.435 4.450 NA [3,] 3.52 3.610 3.785 4.175 4.440 4.460 NA [4,] 3.52 3.685 3.800 4.200 4.450 4.625 NA [5,] 3.52 3.690 3.800 4.200 4.450 4.680 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.488073 3.56667 3.734828 4.081498 4.433158 4.380181 NA [2,] 3.551927 3.65333 3.835172 4.268502 4.446842 4.539819 NA $out [1] 4.23 4.38 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(3.42, 3.45, 3.52, 3.52, 3.52, 3.52, 3.59, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6fb1e1243616758.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,] 0.4062840 0.940 0.67000 [2,] 0.4174538 0.955 0.67000 [3,] 0.4307486 1.025 0.70875 [4,] 0.4464434 1.105 0.71375 [5,] 0.4587229 1.160 0.72250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.4175263 0.956584 0.6887953 [2,] 0.4439710 1.093416 0.7287047 $out [1] 0.5625 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.406283972938469, 0.417453766336699, 0.430748625026641, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ygcn1243616758.ps tmp/1ygcn1243616758.png") > system("convert tmp/2xf301243616758.ps tmp/2xf301243616758.png") > system("convert tmp/3drp21243616758.ps tmp/3drp21243616758.png") > system("convert tmp/4umbl1243616758.ps tmp/4umbl1243616758.png") > system("convert tmp/5tjtc1243616758.ps tmp/5tjtc1243616758.png") > system("convert tmp/6fb1e1243616758.ps tmp/6fb1e1243616758.png") > > > proc.time() user system elapsed 1.616 1.252 2.274