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(100.32,100.33,100.35,100.38,100.44,100.47,100.47,100.48,100.48,100.49,100.52,100.53,100.62,100.89,100.92,100.93,100.97,100.98,101.01,101.02,101.07,101.1,101.11,101.19,101.31,101.52,101.56,101.61,101.65,101.66,101.75,101.83,101.98,102.06,102.07,102.1,102.42,102.91,102.91,103.11,103.14,103.14,103.23,103.23,103.26,103.3,103.32,103.44,103.54,103.86,103.88,103.88,103.89,103.98,103.98,103.98,104.24,104.29,104.29,104.31,104.41,104.54,104.67,104.8) > 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] 64 > (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] 6 6 6 6 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.32 100.62 101.31 102.42 103.54 104.41 [2,] 100.33 100.89 101.52 102.91 103.86 104.54 [3,] 100.35 100.92 101.56 102.91 103.88 104.67 [4,] 100.38 100.93 101.61 103.11 103.88 104.80 [5,] 100.44 100.97 101.65 103.14 103.89 NA [6,] 100.47 100.98 101.66 103.14 103.98 NA [7,] 100.47 101.01 101.75 103.23 103.98 NA [8,] 100.48 101.02 101.83 103.23 103.98 NA [9,] 100.48 101.07 101.98 103.26 104.24 NA [10,] 100.49 101.10 102.06 103.30 104.29 NA [11,] 100.52 101.11 102.07 103.32 104.29 NA [12,] 100.53 101.19 102.10 103.44 104.31 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/11u8b1322500999.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/2j4ve1322500999.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/32zzf1322500999.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/4fjmd1322500999.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] [1,] 100.320 100.330 100.350 100.38 100.44 100.47 100.47 100.48 100.48 100.49 [2,] 100.620 100.890 100.920 100.93 100.97 100.98 101.01 101.02 101.07 101.10 [3,] 101.865 102.215 102.235 102.36 101.65 101.66 101.75 101.83 101.98 102.06 [4,] 103.540 103.860 103.880 103.88 103.14 103.14 103.23 103.23 103.26 103.30 [5,] 104.410 104.540 104.670 104.80 103.89 103.98 103.98 103.98 104.24 104.29 [,11] [,12] [1,] 100.52 100.53 [2,] 101.11 101.19 [3,] 102.07 102.10 [4,] 103.32 103.44 [5,] 104.29 104.31 $n [1] 6 6 6 6 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 99.98151 100.2993 100.3257 100.4572 100.1167 100.1337 100.1814 100.2684 [2,] 103.74849 104.1307 104.1443 104.2628 103.1833 103.1863 103.3186 103.3916 [,9] [,10] [,11] [,12] [1,] 100.4326 100.5055 100.5084 100.5102 [2,] 103.5274 103.6145 103.6316 103.6898 $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(100.32, 100.62, 101.865, 103.54, 104.41, 100.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/55uj91322500999.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,] 100.320 100.890 101.310 102.910 103.540 104.410 [2,] 100.365 100.925 101.585 103.010 103.880 104.475 [3,] 100.470 100.995 101.705 103.185 103.980 104.605 [4,] 100.485 101.085 102.020 103.280 104.265 104.735 [5,] 100.530 101.190 102.100 103.440 104.310 104.800 $n [1] 12 12 12 12 12 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.4153 100.922 101.5066 103.0619 103.8044 104.3996 [2,] 100.5247 101.068 101.9034 103.3081 104.1556 104.8104 $out [1] 100.62 102.42 $group [1] 2 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.32, 100.365, 100.47, 100.485, 100.53, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/60h5m1322500999.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,] 1.456630 3.450 2.1600 [2,] 1.478357 3.510 2.1950 [3,] 1.555268 3.775 2.2150 [4,] 1.666719 4.150 2.5125 [5,] 1.749508 4.420 2.5875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.469355 3.483092 2.070186 [2,] 1.641180 4.066908 2.359814 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.45662967153632, 1.478357465644, 1.5552675124232, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/11u8b1322500999.ps tmp/11u8b1322500999.png",intern=TRUE)) character(0) > try(system("convert tmp/2j4ve1322500999.ps tmp/2j4ve1322500999.png",intern=TRUE)) character(0) > try(system("convert tmp/32zzf1322500999.ps tmp/32zzf1322500999.png",intern=TRUE)) character(0) > try(system("convert tmp/4fjmd1322500999.ps tmp/4fjmd1322500999.png",intern=TRUE)) character(0) > try(system("convert tmp/55uj91322500999.ps tmp/55uj91322500999.png",intern=TRUE)) character(0) > try(system("convert tmp/60h5m1322500999.ps tmp/60h5m1322500999.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.387 0.322 1.721