R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.7,0.7,0.68,0.68,0.69,0.69,0.7,0.7,0.7,0.7,0.7,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.76,0.77,0.78,0.85,0.89,0.9,0.91,0.91,0.91,0.9,0.89,0.88,0.87,0.86,0.87,0.87,0.87,0.85,0.84,0.84,0.84,0.84,0.84,0.82,0.87,0.92,0.92,0.92,0.93,0.94,0.87,0.84,0.83,0.81,0.81,0.81,0.8,0.8,0.8,0.8,0.8,0.8) > 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,] 0.71 0.68 0.71 0.91 0.84 0.87 NA [2,] 0.71 0.68 0.71 0.91 0.84 0.84 NA [3,] 0.71 0.69 0.71 0.91 0.84 0.83 NA [4,] 0.71 0.69 0.71 0.90 0.84 0.81 NA [5,] 0.71 0.70 0.71 0.89 0.84 0.81 NA [6,] 0.71 0.70 0.71 0.88 0.82 0.81 NA [7,] 0.71 0.70 0.76 0.87 0.87 0.80 NA [8,] 0.71 0.70 0.77 0.86 0.92 0.80 NA [9,] 0.71 0.70 0.78 0.87 0.92 0.80 NA [10,] 0.71 0.71 0.85 0.87 0.92 0.80 NA [11,] 0.70 0.71 0.89 0.87 0.93 0.80 NA [12,] 0.70 0.71 0.90 0.85 0.94 0.80 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/rcomp/tmp/1gwj11324984398.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/rcomp/tmp/2i1d11324984398.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/rcomp/tmp/3u2kn1324984398.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/rcomp/tmp/4xvxo1324984398.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.680 0.680 0.69 0.69 0.70 0.70 0.70 0.700 0.70 0.710 0.700 0.700 [2,] 0.710 0.710 0.71 0.71 0.71 0.71 0.71 0.710 0.71 0.710 0.710 0.710 [3,] 0.775 0.775 0.77 0.76 0.76 0.76 0.78 0.785 0.79 0.825 0.835 0.825 [4,] 0.870 0.840 0.84 0.84 0.84 0.82 0.87 0.860 0.87 0.870 0.890 0.900 [5,] 0.910 0.910 0.91 0.90 0.89 0.88 0.87 0.920 0.92 0.920 0.930 0.940 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6717948 0.6911458 0.6861458 0.6761458 0.6761458 0.6890464 0.6767948 [2,] 0.8782052 0.8588542 0.8538542 0.8438542 0.8438542 0.8309536 0.8832052 [,8] [,9] [,10] [,11] [,12] [1,] 0.6882452 0.6867948 0.7217948 0.7188942 0.7024439 [2,] 0.8817548 0.8932052 0.9282052 0.9511058 0.9475561 $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(0.68, 0.71, 0.775, 0.87, 0.91, 0.68, 0.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5pplu1324984398.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] [1,] 0.71 0.680 0.710 0.850 0.820 0.800 NA [2,] 0.71 0.690 0.710 0.870 0.840 0.800 NA [3,] 0.71 0.700 0.735 0.875 0.855 0.805 NA [4,] 0.71 0.705 0.815 0.905 0.920 0.820 NA [5,] 0.71 0.710 0.900 0.910 0.940 0.840 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.71 0.6931584 0.6871088 0.8590363 0.8185115 0.7958779 NA [2,] 0.71 0.7068416 0.7828912 0.8909637 0.8914885 0.8141221 NA $out [1] 0.70 0.70 0.87 $group [1] 1 1 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.71, 0.71, 0.71, 0.71, 0.71, 0.68, 0.69, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6sb2i1324984398.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.07503333 0.17 0.10750 [2,] 0.08331209 0.20 0.12250 [3,] 0.08667927 0.22 0.12875 [4,] 0.09497370 0.23 0.14250 [5,] 0.09852242 0.24 0.15500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.08136033 0.2063168 0.1196279 [2,] 0.09199821 0.2336832 0.1378721 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0750333259292163, 0.0833120863281972, 0.0866792729655778, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1gwj11324984398.ps tmp/1gwj11324984398.png",intern=TRUE)) character(0) > try(system("convert tmp/2i1d11324984398.ps tmp/2i1d11324984398.png",intern=TRUE)) character(0) > try(system("convert tmp/3u2kn1324984398.ps tmp/3u2kn1324984398.png",intern=TRUE)) character(0) > try(system("convert tmp/4xvxo1324984398.ps tmp/4xvxo1324984398.png",intern=TRUE)) character(0) > try(system("convert tmp/5pplu1324984398.ps tmp/5pplu1324984398.png",intern=TRUE)) character(0) > try(system("convert tmp/6sb2i1324984398.ps tmp/6sb2i1324984398.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.050 0.310 2.325