R version 2.10.1 (2009-12-14) 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(5.7,5.6,5.8,5.6,5.6,5.6,5.5,5.4,5.4,5.5,5.4,5.4,5.3,5.4,5.2,5.2,5.1,5,5,4.9,5,5,5,4.9,4.7,4.8,4.7,4.7,4.6,4.6,4.7,4.7,4.5,4.4,4.5,4.4,4.6,4.5,4.4,4.5,4.4,4.6,4.7,4.6,4.7,4.7,4.7,5,5,4.8,5.1,4.9,5.4,5.6,5.8,6.1,6.2,6.6,6.8,7.3,7.8,8.2,8.6,8.9,9.4,9.5,9.5,9.7,9.8,10.1,9.9,9.9,9.7,9.7,9.7,9.8,9.6,9.6,9.5,9.6,9.6,9.7,9.8,9.4,9) > 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,] 5.7 5.3 4.7 4.6 5.0 7.8 9.7 9 [2,] 5.6 5.4 4.8 4.5 4.8 8.2 9.7 NA [3,] 5.8 5.2 4.7 4.4 5.1 8.6 9.7 NA [4,] 5.6 5.2 4.7 4.5 4.9 8.9 9.8 NA [5,] 5.6 5.1 4.6 4.4 5.4 9.4 9.6 NA [6,] 5.6 5.0 4.6 4.6 5.6 9.5 9.6 NA [7,] 5.5 5.0 4.7 4.7 5.8 9.5 9.5 NA [8,] 5.4 4.9 4.7 4.6 6.1 9.7 9.6 NA [9,] 5.4 5.0 4.5 4.7 6.2 9.8 9.6 NA [10,] 5.5 5.0 4.4 4.7 6.6 10.1 9.7 NA [11,] 5.4 5.0 4.5 4.7 6.8 9.9 9.8 NA [12,] 5.4 4.9 4.4 5.0 7.3 9.9 9.4 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/yougetitorg/rcomp/tmp/1lsvp1305570166.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/yougetitorg/rcomp/tmp/2jqln1305570166.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/yougetitorg/rcomp/tmp/3qks61305570166.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/yougetitorg/rcomp/tmp/49kwg1305570166.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,] 4.60 4.5 4.4 4.50 4.40 4.60 4.70 4.60 4.50 4.40 4.50 4.40 [2,] 4.85 4.8 4.9 4.80 4.85 4.80 4.85 4.80 4.85 4.85 4.85 4.95 [3,] 5.50 5.4 5.2 5.20 5.40 5.60 5.50 5.40 5.40 5.50 5.40 5.40 [4,] 8.40 6.9 7.2 7.25 7.50 7.55 7.65 7.85 7.90 8.15 8.30 8.35 [5,] 9.70 9.7 9.7 9.80 9.60 9.60 9.50 9.70 9.80 10.10 9.90 9.90 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.516919 4.145914 3.826477 3.736900 3.817463 3.957744 3.827885 3.578589 [2,] 7.483081 6.654086 6.573523 6.663100 6.982537 7.242256 7.172115 7.221411 [,9] [,10] [,11] [,12] [1,] 3.578589 3.529293 3.339716 3.369575 [2,] 7.221411 7.470707 7.460284 7.430425 $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.6, 4.85, 5.5, 8.4, 9.7, 4.5, 4.8, 5.4, 6.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5freo1305570166.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,] 5.40 4.9 4.40 4.4 4.80 7.80 9.50 9 [2,] 5.40 5.0 4.50 4.5 5.05 8.75 9.60 9 [3,] 5.55 5.0 4.65 4.6 5.70 9.50 9.65 9 [4,] 5.60 5.2 4.70 4.7 6.40 9.85 9.70 9 [5,] 5.80 5.4 4.80 5.0 7.30 10.10 9.80 9 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.458779 4.908779 4.558779 4.508779 5.084256 8.998283 9.60439 9 [2,] 5.641221 5.091221 4.741221 4.691221 6.315744 10.001717 9.69561 9 $out [1] 9.4 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(5.4, 5.4, 5.55, 5.6, 5.8, 4.9, 5, 5, 5.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/6h6oj1305570166.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,] 2.001547 4.80 2.1000 [2,] 2.120799 5.10 2.5500 [3,] 2.222930 5.25 2.9250 [4,] 2.277156 5.35 3.2375 [5,] 2.383075 5.70 3.4500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.151614 5.135973 2.611427 [2,] 2.294245 5.364027 3.238573 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.00154702072933, 2.12079947473331, 2.22292978382329, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1lsvp1305570166.ps tmp/1lsvp1305570166.png",intern=TRUE)) character(0) > try(system("convert tmp/2jqln1305570166.ps tmp/2jqln1305570166.png",intern=TRUE)) character(0) > try(system("convert tmp/3qks61305570166.ps tmp/3qks61305570166.png",intern=TRUE)) character(0) > try(system("convert tmp/49kwg1305570166.ps tmp/49kwg1305570166.png",intern=TRUE)) character(0) > try(system("convert tmp/5freo1305570166.ps tmp/5freo1305570166.png",intern=TRUE)) character(0) > try(system("convert tmp/6h6oj1305570166.ps tmp/6h6oj1305570166.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.370 1.030 1.814