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(0.63,0.63,0.63,0.64,0.63,0.63,0.63,0.63,0.63,0.64,0.65,0.65,0.65,0.65,0.65,0.66,0.65,0.66,0.66,0.66,0.66,0.68,0.69,0.7,0.71,0.71,0.7,0.7,0.7,0.7,0.71,0.7,0.7,0.7,0.69,0.7,0.69,0.69,0.69,0.7,0.7,0.71,0.71,0.71,0.72,0.73,0.74,0.74,0.74,0.74,0.75,0.75,0.76,0.76,0.76,0.76,0.76,0.77,0.77,0.78,0.78,0.78,0.78,0.78,0.78,0.78,0.8,0.8,0.8,0.81,0.81,0.81,0.8,0.81,0.81,0.81,0.8,0.82,0.83,0.83) > 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] 80 > (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] 7 7 7 7 7 7 7 7 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.63 0.65 0.71 0.69 0.74 0.78 0.80 [2,] 0.63 0.65 0.71 0.69 0.74 0.78 0.81 [3,] 0.63 0.65 0.70 0.69 0.75 0.78 0.81 [4,] 0.64 0.66 0.70 0.70 0.75 0.78 0.81 [5,] 0.63 0.65 0.70 0.70 0.76 0.78 0.80 [6,] 0.63 0.66 0.70 0.71 0.76 0.78 0.82 [7,] 0.63 0.66 0.71 0.71 0.76 0.80 0.83 [8,] 0.63 0.66 0.70 0.71 0.76 0.80 0.83 [9,] 0.63 0.66 0.70 0.72 0.76 0.80 NA [10,] 0.64 0.68 0.70 0.73 0.77 0.81 NA [11,] 0.65 0.69 0.69 0.74 0.77 0.81 NA [12,] 0.65 0.70 0.70 0.74 0.78 0.81 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/1u7rz1243882914.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/2aw6l1243882914.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/35oao1243882914.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/4j00u1243882914.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,] 0.63 0.63 0.630 0.640 0.630 0.63 0.630 0.63 0.63 0.640 0.650 0.65 [2,] 0.67 0.67 0.670 0.680 0.675 0.68 0.685 0.68 0.66 0.680 0.690 0.70 [3,] 0.71 0.71 0.700 0.700 0.700 0.71 0.710 0.71 0.71 0.715 0.715 0.72 [4,] 0.76 0.76 0.765 0.765 0.770 0.77 0.780 0.78 0.76 0.770 0.770 0.78 [5,] 0.80 0.81 0.810 0.810 0.800 0.82 0.830 0.83 0.80 0.810 0.810 0.81 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6562535 0.6562535 0.6432675 0.6492394 0.6432675 0.6562535 0.6532675 [2,] 0.7637465 0.7637465 0.7567325 0.7507606 0.7567325 0.7637465 0.7667325 [,8] [,9] [,10] [,11] [,12] [1,] 0.6502816 0.6454968 0.6569471 0.6633974 0.6683974 [2,] 0.7697184 0.7745032 0.7730529 0.7666026 0.7716026 $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.63, 0.67, 0.71, 0.76, 0.8, 0.63, 0.67, 0.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5fx471243882914.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,] 0.63 0.65 0.700 0.690 0.740 0.780 0.800 [2,] 0.63 0.65 0.700 0.695 0.750 0.780 0.805 [3,] 0.63 0.66 0.700 0.710 0.760 0.790 0.810 [4,] 0.64 0.67 0.705 0.725 0.765 0.805 0.825 [5,] 0.65 0.70 0.710 0.740 0.780 0.810 0.830 $n [1] 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6254389 0.6508779 0.6977195 0.6963168 0.7531584 0.7785973 0.7988277 [2,] 0.6345611 0.6691221 0.7022805 0.7236832 0.7668416 0.8014027 0.8211723 $out [1] 0.69 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.63, 0.63, 0.63, 0.64, 0.65, 0.65, 0.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6tjs71243882914.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.05865151 0.160 0.0700 [2,] 0.06211458 0.170 0.0775 [3,] 0.06423094 0.170 0.0900 [4,] 0.06715205 0.185 0.0950 [5,] 0.07296444 0.200 0.1000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.06193331 0.1631584 0.08201813 [2,] 0.06652856 0.1768416 0.09798187 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0586515131944607, 0.0621145783134097, 0.0642309350535847, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1u7rz1243882914.ps tmp/1u7rz1243882914.png") > system("convert tmp/2aw6l1243882914.ps tmp/2aw6l1243882914.png") > system("convert tmp/35oao1243882914.ps tmp/35oao1243882914.png") > system("convert tmp/4j00u1243882914.ps tmp/4j00u1243882914.png") > system("convert tmp/5fx471243882914.ps tmp/5fx471243882914.png") > system("convert tmp/6tjs71243882914.ps tmp/6tjs71243882914.png") > > > proc.time() user system elapsed 1.625 1.250 1.980