R version 2.6.2 (2008-02-08) 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(4.07,4.07,4.08,4.09,4.08,4.09,4.12,4.14,4.14,4.14,4.14,4.14,4.23,4.29,4.32,4.33,4.35,4.35,4.35,4.35,4.36,4.36,4.38,4.4,4.4,4.4,4.43,4.44,4.46,4.47,4.49,4.49,4.57,4.62,4.64,4.66,4.67,4.68,4.72,4.74,4.75,4.76,4.77,4.76,4.77,4.77,4.78,4.81,4.81,4.85,4.92,4.96,4.95,4.96,4.97,5,5,5.01,5.01,5.02,5.04,5.04,5.19,5.22,5.22,5.22,5.24,5.28,5.34,5.36,5.38,5.39,5.41,5.44,5.51,5.55,5.56,5.57,5.58,5.58,5.59,5.61,5.63,5.64,5.64) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.07 4.23 4.40 4.67 4.81 5.04 5.41 5.64 [2,] 4.07 4.29 4.40 4.68 4.85 5.04 5.44 NA [3,] 4.08 4.32 4.43 4.72 4.92 5.19 5.51 NA [4,] 4.09 4.33 4.44 4.74 4.96 5.22 5.55 NA [5,] 4.08 4.35 4.46 4.75 4.95 5.22 5.56 NA [6,] 4.09 4.35 4.47 4.76 4.96 5.22 5.57 NA [7,] 4.12 4.35 4.49 4.77 4.97 5.24 5.58 NA [8,] 4.14 4.35 4.49 4.76 5.00 5.28 5.58 NA [9,] 4.14 4.36 4.57 4.77 5.00 5.34 5.59 NA [10,] 4.14 4.36 4.62 4.77 5.01 5.36 5.61 NA [11,] 4.14 4.38 4.64 4.78 5.01 5.38 5.63 NA [12,] 4.14 4.40 4.66 4.81 5.02 5.39 5.64 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/1zt4e1210357885.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/207p21210357885.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/3habb1210357885.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/4drax1210357885.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,] 4.070 4.070 4.080 4.090 4.080 4.09 4.120 4.14 4.140 4.140 4.140 4.140 [2,] 4.315 4.345 4.375 4.385 4.405 4.41 4.420 4.42 4.465 4.490 4.510 4.530 [3,] 4.740 4.680 4.720 4.740 4.750 4.76 4.770 4.76 4.770 4.770 4.780 4.810 [4,] 5.225 4.945 5.055 5.090 5.085 5.09 5.105 5.14 5.170 5.185 5.195 5.205 [5,] 5.640 5.440 5.510 5.550 5.560 5.57 5.580 5.58 5.590 5.610 5.630 5.640 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.231661 4.32169 4.313915 4.318985 4.343915 4.353915 4.360929 4.330028 [2,] 5.248339 5.03831 5.126085 5.161015 5.156085 5.166085 5.179071 5.189972 [,9] [,10] [,11] [,12] [1,] 4.348985 4.354957 4.370929 4.406901 [2,] 5.191015 5.185043 5.189071 5.213099 $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(4.07, 4.315, 4.74, 5.225, 5.64, 4.07, 4.345, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kwvn1210357885.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] [1,] 4.070 4.290 4.400 4.68 4.850 5.040 5.440 5.64 [2,] 4.080 4.325 4.435 4.73 4.935 5.205 5.530 5.64 [3,] 4.105 4.350 4.480 4.76 4.965 5.230 5.575 5.64 [4,] 4.140 4.360 4.595 4.77 5.005 5.350 5.600 5.64 [5,] 4.140 4.400 4.660 4.81 5.020 5.390 5.640 5.64 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.077634 4.334036 4.407023 4.741756 4.933073 5.163865 5.543073 5.64 [2,] 4.132366 4.365964 4.552977 4.778244 4.996927 5.296135 5.606927 5.64 $out [1] 4.23 4.67 4.81 5.41 $group [1] 2 4 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(4.07, 4.08, 4.105, 4.14, 4.14, 4.29, 4.325, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sj1p1210357885.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.5060115 1.430 0.675 [2,] 0.5163363 1.445 0.680 [3,] 0.5185625 1.465 0.685 [4,] 0.5286006 1.485 0.705 [5,] 0.5305478 1.500 0.720 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5129687 1.446756 0.6735973 [2,] 0.5241564 1.483244 0.6964027 $out [1] 0.5565182 0.4723497 1.5700000 1.3700000 0.7750000 0.6000000 $group [1] 1 1 2 2 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.506011481142097, 0.516336324780032, 0.518562540373291, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zt4e1210357885.ps tmp/1zt4e1210357885.png") > system("convert tmp/207p21210357885.ps tmp/207p21210357885.png") > system("convert tmp/3habb1210357885.ps tmp/3habb1210357885.png") > system("convert tmp/4drax1210357885.ps tmp/4drax1210357885.png") > system("convert tmp/5kwvn1210357885.ps tmp/5kwvn1210357885.png") > system("convert tmp/6sj1p1210357885.ps tmp/6sj1p1210357885.png") > > > proc.time() user system elapsed 1.284 0.807 1.505