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(10001.60,10411.75,10673.38,10539.51,10723.78,10682.06,10283.19,10377.18,10486.64,10545.38,10554.27,10532.54,10324.31,10695.25,10827.81,10872.48,10971.19,11145.65,11234.68,11333.88,10997.97,11036.89,11257.35,11533.59,11963.12,12185.15,12377.62,12512.89,12631.48,12268.53,12754.80,13407.75,13480.21,13673.28,13239.71,13557.69,13901.28,13200.58,13406.97,12538.12,12419.57,12193.88,12656.63,12812.48,12056.67,11322.38,11530.75,11114.08,9181.73,8614.55,8595.56,8396.20,7690.50,7235.47,7992.12,8398.37,8593.01,8679.75,9374.63,9634.97) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10001.60 10324.31 11963.12 13901.28 9181.73 NA [2,] 10411.75 10695.25 12185.15 13200.58 8614.55 NA [3,] 10673.38 10827.81 12377.62 13406.97 8595.56 NA [4,] 10539.51 10872.48 12512.89 12538.12 8396.20 NA [5,] 10723.78 10971.19 12631.48 12419.57 7690.50 NA [6,] 10682.06 11145.65 12268.53 12193.88 7235.47 NA [7,] 10283.19 11234.68 12754.80 12656.63 7992.12 NA [8,] 10377.18 11333.88 13407.75 12812.48 8398.37 NA [9,] 10486.64 10997.97 13480.21 12056.67 8593.01 NA [10,] 10545.38 11036.89 13673.28 11322.38 8679.75 NA [11,] 10554.27 11257.35 13239.71 11530.75 9374.63 NA [12,] 10532.54 11533.59 13557.69 11114.08 9634.97 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/1v4bc1258291397.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/2r4ke1258291397.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/3r8kj1258291397.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/4pk3b1258291397.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] [1,] 9181.73 8614.55 8595.56 8396.20 10723.78 10682.06 7992.12 8398.37 [2,] 10001.60 10411.75 10673.38 10539.51 10723.78 10682.06 10283.19 10377.18 [3,] 10324.31 10695.25 10827.81 10872.48 10971.19 11145.65 11234.68 11333.88 [4,] 11963.12 12185.15 12377.62 12512.89 12419.57 12193.88 12656.63 12812.48 [5,] 13901.28 13200.58 13406.97 12538.12 12631.48 12268.53 12754.80 13407.75 [,9] [,10] [,11] [,12] [1,] 8593.01 10545.38 9374.63 9634.97 [2,] 10486.64 10545.38 10554.27 10532.54 [3,] 10997.97 11036.89 11257.35 11114.08 [4,] 12056.67 11322.38 11530.75 11533.59 [5,] 13480.21 11322.38 11530.75 11533.59 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8938.305 9442.17 9623.598 9478.095 9772.95 10077.40 9557.613 [2,] 11710.315 11948.33 12032.022 12266.865 12169.43 12213.90 12911.747 [,8] [,9] [,10] [,11] [,12] [1,] 9613.103 9888.59 10487.86 10567.37 10406.74 [2,] 13054.657 12107.35 11585.92 11947.33 11821.42 $out [1] 7690.50 7235.47 13673.28 8679.75 13239.71 13557.69 $group [1] 5 6 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(9181.73, 10001.6, 10324.31, 11963.12, 13901.28, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5e6l01258291397.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] [1,] 10283.19 10324.31 11963.12 11114.08 7235.470 NA [2,] 10394.47 10850.15 12323.08 11793.71 8194.160 NA [3,] 10536.03 11017.43 12693.14 12478.85 8594.285 NA [4,] 10613.83 11246.01 13443.98 13006.53 8930.740 NA [5,] 10723.78 11533.59 13673.28 13901.28 9634.970 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10435.97 10836.87 12181.89 11925.67 8258.326 NA [2,] 10636.08 11197.99 13204.39 13032.02 8930.244 NA $out [1] 10001.6 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(10283.19, 10394.465, 10536.025, 10613.825, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6xqod1258291397.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,] 1416.128 3865.080 777.000 [2,] 1733.045 4363.975 1256.435 [3,] 1826.981 4787.045 1700.015 [4,] 1971.095 4967.255 1967.450 [5,] 2055.099 5033.060 2435.300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1718.405 4511.885 1375.716 [2,] 1935.557 5062.205 2024.314 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1416.12760142580, 1733.04502000253, 1826.98097736262, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1v4bc1258291397.ps tmp/1v4bc1258291397.png") > system("convert tmp/2r4ke1258291397.ps tmp/2r4ke1258291397.png") > system("convert tmp/3r8kj1258291397.ps tmp/3r8kj1258291397.png") > system("convert tmp/4pk3b1258291397.ps tmp/4pk3b1258291397.png") > system("convert tmp/5e6l01258291397.ps tmp/5e6l01258291397.png") > system("convert tmp/6xqod1258291397.ps tmp/6xqod1258291397.png") > > > proc.time() user system elapsed 1.049 0.800 1.432