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.58,0.58,0.59,0.6,0.6,0.61,0.62,0.61,0.62,0.62,0.62,0.63,0.63,0.63,0.63,0.63,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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.58 0.63 0.63 0.66 0.70 0.72 0.76 0.80 NA [2,] 0.58 0.63 0.64 0.68 0.70 0.73 0.77 0.81 NA [3,] 0.59 0.63 0.65 0.69 0.69 0.74 0.77 0.81 NA [4,] 0.60 0.63 0.65 0.70 0.70 0.74 0.78 0.81 NA [5,] 0.60 0.63 0.65 0.71 0.69 0.74 0.78 0.80 NA [6,] 0.61 0.63 0.65 0.71 0.69 0.74 0.78 0.81 NA [7,] 0.62 0.63 0.65 0.70 0.69 0.75 0.78 0.81 NA [8,] 0.61 0.64 0.66 0.70 0.70 0.75 0.78 0.81 NA [9,] 0.62 0.63 0.65 0.70 0.70 0.76 0.78 0.80 NA [10,] 0.62 0.63 0.66 0.70 0.71 0.76 0.78 0.82 NA [11,] 0.62 0.63 0.66 0.71 0.71 0.76 0.80 0.83 NA [12,] 0.63 0.63 0.66 0.70 0.71 0.76 0.80 0.83 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/1s9ve1244229027.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/2kbaw1244229027.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/3j0vk1244229027.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/4gsu41244229027.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.58 0.580 0.590 0.60 0.60 0.61 0.620 0.610 0.62 0.620 0.620 0.630 [2,] 0.63 0.635 0.640 0.64 0.64 0.64 0.640 0.650 0.64 0.645 0.645 0.645 [3,] 0.68 0.690 0.690 0.70 0.70 0.70 0.695 0.700 0.70 0.705 0.710 0.705 [4,] 0.74 0.750 0.755 0.76 0.76 0.76 0.765 0.765 0.77 0.770 0.780 0.780 [5,] 0.80 0.810 0.810 0.81 0.80 0.81 0.810 0.810 0.80 0.820 0.830 0.830 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6185524 0.6257593 0.6257593 0.6329663 0.6329663 0.6329663 0.6251732 [2,] 0.7414476 0.7542407 0.7542407 0.7670337 0.7670337 0.7670337 0.7648268 [,8] [,9] [,10] [,11] [,12] [1,] 0.6357593 0.6273801 0.6351732 0.634587 0.629587 [2,] 0.7642407 0.7726199 0.7748268 0.785413 0.780413 $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.58, 0.63, 0.68, 0.74, 0.8, 0.58, 0.635, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5q37g1244229027.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] [,8] [,9] [1,] 0.580 0.63 0.64 0.680 0.690 0.720 0.770 0.800 NA [2,] 0.595 0.63 0.65 0.695 0.690 0.740 0.775 0.805 NA [3,] 0.610 0.63 0.65 0.700 0.700 0.745 0.780 0.810 NA [4,] 0.620 0.63 0.66 0.705 0.705 0.760 0.780 0.815 NA [5,] 0.630 0.63 0.66 0.710 0.710 0.760 0.780 0.820 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.5985973 0.63 0.6454389 0.695439 0.6931584 0.7358779 0.7777195 0.805439 [2,] 0.6214027 0.63 0.6545611 0.704561 0.7068416 0.7541221 0.7822805 0.814561 [,9] [1,] NA [2,] NA $out [1] 0.64 0.63 0.66 0.76 0.80 0.80 0.83 0.83 $group [1] 2 3 4 7 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.58, 0.595, 0.61, 0.62, 0.63, 0.63, 0.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ksfu1244229027.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.06928203 0.180 0.1000 [2,] 0.07090494 0.200 0.1025 [3,] 0.07274458 0.200 0.1050 [4,] 0.07482102 0.215 0.1150 [5,] 0.07727502 0.230 0.1200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.07095844 0.1931584 0.09929867 [2,] 0.07453073 0.2068416 0.11070133 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0692820323027551, 0.0709049440149588, 0.0727445835227302, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1s9ve1244229027.ps tmp/1s9ve1244229027.png") > system("convert tmp/2kbaw1244229027.ps tmp/2kbaw1244229027.png") > system("convert tmp/3j0vk1244229027.ps tmp/3j0vk1244229027.png") > system("convert tmp/4gsu41244229027.ps tmp/4gsu41244229027.png") > system("convert tmp/5q37g1244229027.ps tmp/5q37g1244229027.png") > system("convert tmp/6ksfu1244229027.ps tmp/6ksfu1244229027.png") > > > proc.time() user system elapsed 1.071 0.843 2.113