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(0.65,0.65,0.65,0.65,0.65,0.65,0.66,0.66,0.66,0.65,0.65,0.65,0.65,0.65,0.65,0.65,0.66,0.67,0.66,0.67,0.66,0.66,0.66,0.66,0.71,0.74,0.75,0.75,0.75,0.75,0.7,0.69,0.69,0.68,0.68,0.68,0.67,0.66,0.66,0.67,0.67,0.67,0.67,0.68,0.68,0.67,0.67,0.67,0.67,0.67,0.69,0.69,0.69,0.69,0.69,0.69,0.7,0.69,0.68,0.7,0.7,0.71,0.69,0.7,0.7,0.71,0.71,0.71,0.71,0.7,0.7,0.71,0.71,0.71,0.71,0.7,0.69,0.7,0.7,0.7,0.71,0.7,0.7,0.69) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.65 0.65 0.71 0.67 0.67 0.70 0.71 NA [2,] 0.65 0.65 0.74 0.66 0.67 0.71 0.71 NA [3,] 0.65 0.65 0.75 0.66 0.69 0.69 0.71 NA [4,] 0.65 0.65 0.75 0.67 0.69 0.70 0.70 NA [5,] 0.65 0.66 0.75 0.67 0.69 0.70 0.69 NA [6,] 0.65 0.67 0.75 0.67 0.69 0.71 0.70 NA [7,] 0.66 0.66 0.70 0.67 0.69 0.71 0.70 NA [8,] 0.66 0.67 0.69 0.68 0.69 0.71 0.70 NA [9,] 0.66 0.66 0.69 0.68 0.70 0.71 0.71 NA [10,] 0.65 0.66 0.68 0.67 0.69 0.70 0.70 NA [11,] 0.65 0.66 0.68 0.67 0.68 0.70 0.70 NA [12,] 0.65 0.66 0.68 0.67 0.70 0.71 0.69 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/1bnhv1291483893.ps",horizontal=F,onefile=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/2bnhv1291483893.ps",horizontal=F,onefile=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/3bnhv1291483893.ps",horizontal=F,onefile=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/4mezg1291483893.ps",horizontal=F,onefile=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,] 0.650 0.650 0.650 0.65 0.650 0.650 0.660 0.660 0.660 0.650 0.650 0.650 [2,] 0.660 0.655 0.655 0.66 0.665 0.670 0.665 0.675 0.670 0.665 0.665 0.665 [3,] 0.670 0.670 0.690 0.69 0.690 0.690 0.690 0.690 0.690 0.680 0.680 0.680 [4,] 0.705 0.710 0.700 0.70 0.695 0.705 0.700 0.695 0.705 0.695 0.690 0.695 [5,] 0.710 0.740 0.750 0.75 0.700 0.750 0.710 0.710 0.710 0.700 0.700 0.710 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6431267 0.6371549 0.6631267 0.6661126 0.6720845 0.6690986 0.6690986 [2,] 0.6968733 0.7028451 0.7168733 0.7138874 0.7079155 0.7109014 0.7109014 [,8] [,9] [,10] [,11] [,12] [1,] 0.6780563 0.6690986 0.6620845 0.6650704 0.6620845 [2,] 0.7019437 0.7109014 0.6979155 0.6949296 0.6979155 $out [1] 0.75 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.65, 0.66, 0.67, 0.705, 0.71, 0.65, 0.655, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mezg1291483893.ps",horizontal=F,onefile=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] [,8] [1,] 0.650 0.65 0.680 0.67 0.680 0.690 0.69 NA [2,] 0.650 0.65 0.685 0.67 0.685 0.700 0.70 NA [3,] 0.650 0.66 0.705 0.67 0.690 0.705 0.70 NA [4,] 0.655 0.66 0.750 0.67 0.690 0.710 0.71 NA [5,] 0.660 0.67 0.750 0.67 0.690 0.710 0.71 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.6477195 0.6554389 0.675353 0.67 0.6877195 0.700439 0.695439 NA [2,] 0.6522805 0.6645611 0.734647 0.67 0.6922805 0.709561 0.704561 NA $out [1] 0.66 0.66 0.68 0.68 0.67 0.67 0.70 0.70 $group [1] 4 4 4 4 5 5 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(0.65, 0.65, 0.65, 0.655, 0.66, 0.65, 0.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fny11291483893.ps",horizontal=F,onefile=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.01718249 0.05 0.0200 [2,] 0.02010998 0.05 0.0300 [3,] 0.02402999 0.06 0.0350 [4,] 0.03400267 0.10 0.0425 [5,] 0.03644957 0.10 0.0550 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.01769344 0.03719466 0.02929867 [2,] 0.03036654 0.08280534 0.04070133 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0171824938596845, 0.0201099841196206, 0.0240299910526694, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1bnhv1291483893.ps tmp/1bnhv1291483893.png",intern=TRUE)) character(0) > try(system("convert tmp/2bnhv1291483893.ps tmp/2bnhv1291483893.png",intern=TRUE)) character(0) > try(system("convert tmp/3bnhv1291483893.ps tmp/3bnhv1291483893.png",intern=TRUE)) character(0) > try(system("convert tmp/4mezg1291483893.ps tmp/4mezg1291483893.png",intern=TRUE)) character(0) > try(system("convert tmp/5mezg1291483893.ps tmp/5mezg1291483893.png",intern=TRUE)) character(0) > try(system("convert tmp/6fny11291483893.ps tmp/6fny11291483893.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.065 0.857 2.912