R version 2.7.1 (2008-06-23) 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.6200,0.6200,0.6100,0.6100,0.6100,0.6000,0.5900,0.5900,0.5900,0.5900,0.5900,0.5700,0.5800,0.5700,0.5900,0.6200,0.6200,0.6100,0.6400,0.6500,0.6700,0.6700,0.6900,0.7400,0.7300,0.7400,0.7500,0.7400,0.7600,0.7600,0.7800,0.7900,0.8900,0.8800,0.8800,0.8400,0.7600,0.7700,0.7600,0.7700,0.7800,0.7900,0.7800,0.7600,0.7800,0.7600,0.7400,0.7300,0.7200,0.7100,0.7300,0.7500,0.7500,0.7200,0.7200,0.7200,0.7400,0.7800,0.7400,0.7400,0.7500,0.7800,0.8100,0.7500,0.7000,0.7100,0.7100,0.7300,0.7400,0.7400,0.7500,0.7400,0.7400,0.7300,0.7600,0.8000,0.8300,0.8100,0.8300,0.8800,0.8900,0.9300,0.9100,0.9000,0.8600,0.8800,0.9300,0.9800,0.9700,1.0300,1.0600,1.0600,1.0800,1.0900,1.0400,1.0000) > 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.62 0.58 0.73 0.76 0.72 0.75 0.74 0.86 NA [2,] 0.62 0.57 0.74 0.77 0.71 0.78 0.73 0.88 NA [3,] 0.61 0.59 0.75 0.76 0.73 0.81 0.76 0.93 NA [4,] 0.61 0.62 0.74 0.77 0.75 0.75 0.80 0.98 NA [5,] 0.61 0.62 0.76 0.78 0.75 0.70 0.83 0.97 NA [6,] 0.60 0.61 0.76 0.79 0.72 0.71 0.81 1.03 NA [7,] 0.59 0.64 0.78 0.78 0.72 0.71 0.83 1.06 NA [8,] 0.59 0.65 0.79 0.76 0.72 0.73 0.88 1.06 NA [9,] 0.59 0.67 0.89 0.78 0.74 0.74 0.89 1.08 NA [10,] 0.59 0.67 0.88 0.76 0.78 0.74 0.93 1.09 NA [11,] 0.59 0.69 0.88 0.74 0.74 0.75 0.91 1.04 NA [12,] 0.57 0.74 0.84 0.73 0.74 0.74 0.90 1.00 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/1oi0f1218997131.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/2pi2u1218997131.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/30j1c1218997131.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/4tane1218997131.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.580 0.570 0.590 0.610 0.610 0.60 0.590 0.590 0.590 0.590 0.590 0.570 [2,] 0.670 0.665 0.670 0.680 0.660 0.66 0.675 0.685 0.705 0.705 0.715 0.735 [3,] 0.735 0.735 0.755 0.750 0.755 0.74 0.750 0.745 0.760 0.770 0.745 0.740 [4,] 0.755 0.775 0.785 0.785 0.805 0.80 0.805 0.835 0.890 0.905 0.895 0.870 [5,] 0.860 0.880 0.930 0.800 0.970 0.81 0.830 0.880 1.080 1.090 1.040 1.000 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6875178 0.6735524 0.6907593 0.6913455 0.6740009 0.661794 0.6773801 [2,] 0.7824822 0.7964476 0.8192407 0.8086545 0.8359991 0.818206 0.8226199 [,8] [,9] [,10] [,11] [,12] [1,] 0.6612078 0.6566563 0.6582771 0.6444494 0.664587 [2,] 0.8287922 0.8633437 0.8817229 0.8455506 0.815413 $out [1] 0.98 1.03 1.06 1.06 $group [1] 4 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.58, 0.67, 0.735, 0.755, 0.86, 0.57, 0.665, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5lcy61218997131.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.570 0.57 0.730 0.730 0.710 0.70 0.730 0.860 NA [2,] 0.590 0.60 0.745 0.760 0.720 0.72 0.780 0.950 NA [3,] 0.595 0.63 0.770 0.765 0.735 0.74 0.830 1.015 NA [4,] 0.610 0.67 0.860 0.780 0.745 0.75 0.895 1.060 NA [5,] 0.620 0.74 0.890 0.790 0.780 0.78 0.930 1.090 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.5858779 0.5980725 0.7175477 0.7558779 0.7235973 0.7263168 0.7775477 [2,] 0.6041221 0.6619275 0.8224523 0.7741221 0.7464027 0.7536832 0.8824523 [,8] [,9] [1,] 0.9648283 NA [2,] 1.0651717 NA $out [1] 0.81 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.57, 0.59, 0.595, 0.61, 0.62, 0.57, 0.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/62thj1218997131.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.08635475 0.28 0.05750 [2,] 0.11133145 0.35 0.07875 [3,] 0.13251057 0.43 0.11000 [4,] 0.14405346 0.47 0.13875 [5,] 0.15757085 0.50 0.17000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1175858 0.3752672 0.0826336 [2,] 0.1474353 0.4847328 0.1373664 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.086354750055471, 0.111331446658613, 0.132510568080944, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1oi0f1218997131.ps tmp/1oi0f1218997131.png") > system("convert tmp/2pi2u1218997131.ps tmp/2pi2u1218997131.png") > system("convert tmp/30j1c1218997131.ps tmp/30j1c1218997131.png") > system("convert tmp/4tane1218997131.ps tmp/4tane1218997131.png") > system("convert tmp/5lcy61218997131.ps tmp/5lcy61218997131.png") > system("convert tmp/62thj1218997131.ps tmp/62thj1218997131.png") > > > proc.time() user system elapsed 1.961 1.311 2.150