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(6.19,6.31,6.35,6.38,6.38,6.36,6.34,6.49,6.5,6.5,6.55,6.57,6.65,6.61,6.66,6.73,6.73,6.75,6.75,6.71,6.77,6.83,6.9,6.89,7.14,7.35,7.43,7.42,7.41,7.46,7.47,7.45,7.47,7.44,7.43,7.43,7.44,7.49,7.48,7.43,7.33,7.42,7.98,7.41,7.25,7.04,6.98,6.94,6.9,6.92,6.86,6.86,6.89,6.91,6.9,6.88,6.78,6.79,6.81,6.78) > 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,] 6.19 6.65 7.14 7.44 6.90 NA [2,] 6.31 6.61 7.35 7.49 6.92 NA [3,] 6.35 6.66 7.43 7.48 6.86 NA [4,] 6.38 6.73 7.42 7.43 6.86 NA [5,] 6.38 6.73 7.41 7.33 6.89 NA [6,] 6.36 6.75 7.46 7.42 6.91 NA [7,] 6.34 6.75 7.47 7.98 6.90 NA [8,] 6.49 6.71 7.45 7.41 6.88 NA [9,] 6.50 6.77 7.47 7.25 6.78 NA [10,] 6.50 6.83 7.44 7.04 6.79 NA [11,] 6.55 6.90 7.43 6.98 6.81 NA [12,] 6.57 6.89 7.43 6.94 6.78 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/1d7jo1322921019.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/2ocof1322921019.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/3r2en1322921019.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/44h2h1322921019.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] [,10] [,11] [,12] [1,] 6.19 6.31 6.35 6.38 6.38 6.36 6.34 6.49 6.50 6.50 6.81 6.57 [2,] 6.65 6.61 6.66 6.73 6.73 6.75 6.75 6.71 6.77 6.79 6.81 6.78 [3,] 6.90 6.92 6.86 6.86 6.89 6.91 6.90 6.88 6.78 6.83 6.90 6.89 [4,] 7.14 7.35 7.43 7.42 7.33 7.42 7.47 7.41 7.25 7.04 6.98 6.94 [5,] 7.44 7.49 7.48 7.43 7.41 7.46 7.98 7.45 7.47 7.04 6.98 6.94 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.553767 6.397118 6.31592 6.372448 6.466042 6.43658 6.39125 6.385382 [2,] 7.246233 7.442882 7.40408 7.347552 7.313958 7.38342 7.40875 7.374618 [,9] [,10] [,11] [,12] [1,] 6.440833 6.653351 6.779878 6.776944 [2,] 7.119167 7.006649 7.020122 7.003056 $out [1] 7.44 6.55 7.43 7.43 $group [1] 10 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6.19, 6.65, 6.9, 7.14, 7.44, 6.31, 6.61, 6.92, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5jim01322921019.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] [1,] 6.190 6.610 7.410 6.940 6.78 NA [2,] 6.345 6.685 7.415 7.145 6.80 NA [3,] 6.380 6.740 7.430 7.415 6.87 NA [4,] 6.500 6.800 7.455 7.460 6.90 NA [5,] 6.570 6.900 7.470 7.490 6.92 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 6.309303 6.687548 7.411756 7.271326 6.824389 NA [2,] 6.450697 6.792452 7.448244 7.558674 6.915611 NA $out [1] 7.14 7.35 7.98 $group [1] 3 3 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(6.19, 6.345, 6.38, 6.5, 6.57, 6.61, 6.685, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/67ooz1322921019.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,] 0.3176004 0.860 0.160 [2,] 0.3718233 0.950 0.365 [3,] 0.4420177 1.040 0.635 [4,] 0.4837678 1.155 0.710 [5,] 0.6423940 1.250 0.770 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3909591 0.9464981 0.4776432 [2,] 0.4930764 1.1335019 0.7923568 $out [1] 1.64 $group [1] 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.317600377833528, 0.371823272379213, 0.442017737506944, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d7jo1322921019.ps tmp/1d7jo1322921019.png",intern=TRUE)) character(0) > try(system("convert tmp/2ocof1322921019.ps tmp/2ocof1322921019.png",intern=TRUE)) character(0) > try(system("convert tmp/3r2en1322921019.ps tmp/3r2en1322921019.png",intern=TRUE)) character(0) > try(system("convert tmp/44h2h1322921019.ps tmp/44h2h1322921019.png",intern=TRUE)) character(0) > try(system("convert tmp/5jim01322921019.ps tmp/5jim01322921019.png",intern=TRUE)) character(0) > try(system("convert tmp/67ooz1322921019.ps tmp/67ooz1322921019.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.417 0.332 1.959