R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(236.77,239.23,240.23,240.33,240.33,240.34,240.34,240.27,240.29,240.29,240.29,240.29,240.31,239.95,242.33,242.11,241.53,241.53,241.53,241.41,241.41,241.66,241.8,241.99,246.24,247.57,247.84,248.27,248.3,248.31,248.31,248.38,248.37,248.41,248.68,248.75,248.75,247.95,248.13,247.86,246.23,245.98,245.98,246.27,246.31,246.3,246.67,246.78,246.78,247.91,247.99,248.6,248.68,248.75,248.75,249.03,249.05,249.57,249.35,249.46,249.46,250.82,254.19,255.18,256.68,256.73,256.73,257.39,257.78,258.67,258.71,258.91,258.91,261.38,262.42,262.77,263.24,262.83,262.83,263.09,263.6,265.68,266.08,266.28) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 236.77 240.31 246.24 248.75 246.78 249.46 258.91 NA [2,] 239.23 239.95 247.57 247.95 247.91 250.82 261.38 NA [3,] 240.23 242.33 247.84 248.13 247.99 254.19 262.42 NA [4,] 240.33 242.11 248.27 247.86 248.60 255.18 262.77 NA [5,] 240.33 241.53 248.30 246.23 248.68 256.68 263.24 NA [6,] 240.34 241.53 248.31 245.98 248.75 256.73 262.83 NA [7,] 240.34 241.53 248.31 245.98 248.75 256.73 262.83 NA [8,] 240.27 241.41 248.38 246.27 249.03 257.39 263.09 NA [9,] 240.29 241.41 248.37 246.31 249.05 257.78 263.60 NA [10,] 240.29 241.66 248.41 246.30 249.57 258.67 265.68 NA [11,] 240.29 241.80 248.68 246.67 249.35 258.71 266.08 NA [12,] 240.29 241.99 248.75 246.78 249.46 258.91 266.28 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/wessaorg/rcomp/tmp/17ylb1323185874.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2o7aj1323185874.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/37t061323185874.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4pfv71323185874.ps",horizontal=F,onefile=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] [1,] 236.770 239.230 240.230 240.330 240.33 240.340 240.340 240.27 240.290 [2,] 243.275 243.760 245.085 244.985 243.88 243.755 243.755 243.84 243.860 [3,] 246.780 247.910 247.990 248.270 248.30 248.310 248.310 248.38 248.370 [4,] 249.105 249.385 251.160 251.890 252.68 252.740 252.740 253.21 253.415 [5,] 249.460 250.820 254.190 255.180 263.24 262.830 262.830 263.09 263.600 [,10] [,11] [,12] [1,] 240.29 240.290 240.290 [2,] 243.98 244.235 244.385 [3,] 248.41 248.680 248.750 [4,] 254.12 254.030 254.185 [5,] 265.68 266.080 266.280 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 243.2984 244.5508 244.3621 244.1464 243.0448 242.9443 242.9443 242.7844 [2,] 250.2616 251.2692 251.6179 252.3936 253.5552 253.6757 253.6757 253.9756 [,9] [,10] [,11] [,12] [1,] 242.6639 242.3546 242.8306 242.8976 [2,] 254.0761 254.4654 254.5294 254.6024 $out [1] 258.91 261.38 262.42 262.77 $group [1] 1 2 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(236.77, 243.275, 246.78, 249.105, 249.46, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5d9191323185874.ps",horizontal=F,onefile=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,] 240.23 241.410 247.570 245.980 247.910 249.460 261.380 NA [2,] 240.25 241.410 248.055 246.250 248.295 254.685 262.595 NA [3,] 240.29 241.530 248.310 246.490 248.750 256.730 262.960 NA [4,] 240.33 241.895 248.395 247.905 249.200 258.225 264.640 NA [5,] 240.34 242.330 248.750 248.750 249.570 258.910 266.280 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 240.2535 241.3088 248.1549 245.7351 248.3372 255.1154 262.0273 NA [2,] 240.3265 241.7512 248.4651 247.2449 249.1628 258.3446 263.8927 NA $out [1] 236.77 239.23 240.31 239.95 246.24 246.78 258.91 $group [1] 1 1 2 2 3 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(240.23, 240.25, 240.29, 240.33, 240.34, 241.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6oj6i1323185874.ps",horizontal=F,onefile=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,] 7.077483 22.140 5.625 [2,] 7.545425 22.315 6.490 [3,] 8.121837 22.655 8.985 [4,] 8.799222 24.350 9.675 [5,] 9.257688 25.990 10.140 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.549972 21.72682 7.5323 [2,] 8.693702 23.58318 10.4377 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7.07748273786393, 7.54542516715406, 8.12183725853858, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/17ylb1323185874.ps tmp/17ylb1323185874.png",intern=TRUE)) character(0) > try(system("convert tmp/2o7aj1323185874.ps tmp/2o7aj1323185874.png",intern=TRUE)) character(0) > try(system("convert tmp/37t061323185874.ps tmp/37t061323185874.png",intern=TRUE)) character(0) > try(system("convert tmp/4pfv71323185874.ps tmp/4pfv71323185874.png",intern=TRUE)) character(0) > try(system("convert tmp/5d9191323185874.ps tmp/5d9191323185874.png",intern=TRUE)) character(0) > try(system("convert tmp/6oj6i1323185874.ps tmp/6oj6i1323185874.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.399 0.302 1.723