R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(101,101,98.7,96.4,95.6,95.4,98.7,98.7,98.7,99.3,99.5,99.6,100.8,100.8,100.8,101,101.6,102.3,102.3,102.3,102.3,102.4,102.4,102.4,102.4,102.4,102.4,102.4,101.6,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.2,102.1,102.1,102.1,102.1,100.7,100.7,100.7,100.7,100.7,100.7,100.7,100.7) > 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,] 101.0 100.8 102.4 102.2 102.1 NA [2,] 101.0 100.8 102.4 102.2 102.1 NA [3,] 98.7 100.8 102.4 102.2 102.1 NA [4,] 96.4 101.0 102.4 102.2 102.1 NA [5,] 95.6 101.6 101.6 102.2 100.7 NA [6,] 95.4 102.3 102.2 102.2 100.7 NA [7,] 98.7 102.3 102.2 102.2 100.7 NA [8,] 98.7 102.3 102.2 102.2 100.7 NA [9,] 98.7 102.3 102.2 102.2 100.7 NA [10,] 99.3 102.4 102.2 102.2 100.7 NA [11,] 99.5 102.4 102.2 102.2 100.7 NA [12,] 99.6 102.4 102.2 102.2 100.7 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/freestat/rcomp/tmp/16z2l1257939760.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/freestat/rcomp/tmp/2kg9t1257939760.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/freestat/rcomp/tmp/3w25s1257939760.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/freestat/rcomp/tmp/465m61257939760.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] [,9] [,10] [,11] [,12] [1,] 100.8 100.8 98.7 101.0 100.7 100.7 98.7 98.7 98.7 99.3 99.5 99.6 [2,] 101.0 101.0 100.8 101.0 100.7 100.7 100.7 100.7 100.7 100.7 100.7 100.7 [3,] 102.1 102.1 102.1 102.1 101.6 102.2 102.2 102.2 102.2 102.2 102.2 102.2 [4,] 102.2 102.2 102.2 102.2 101.6 102.2 102.2 102.2 102.2 102.2 102.2 102.2 [5,] 102.4 102.4 102.4 102.4 102.2 102.3 102.3 102.3 102.3 102.4 102.4 102.4 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.2521 101.2521 101.1108 101.2521 100.9641 101.1401 101.1401 101.1401 [2,] 102.9479 102.9479 103.0892 102.9479 102.2359 103.2599 103.2599 103.2599 [,9] [,10] [,11] [,12] [1,] 101.1401 101.1401 101.1401 101.1401 [2,] 103.2599 103.2599 103.2599 103.2599 $out [1] 96.4 95.6 95.4 $group [1] 4 5 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(100.8, 101, 102.1, 102.2, 102.4, 100.8, 101, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5an8t1257939760.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,] 95.40 100.80 102.2 102.2 100.7 NA [2,] 97.55 100.90 102.2 102.2 100.7 NA [3,] 98.70 102.30 102.2 102.2 100.7 NA [4,] 99.55 102.35 102.4 102.2 102.1 NA [5,] 101.00 102.40 102.4 102.2 102.1 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.78779 101.6386 102.1088 102.2 100.0615 NA [2,] 99.61221 102.9614 102.2912 102.2 101.3385 NA $out [1] 101.6 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(95.4, 97.55, 98.7, 99.55, 101, 100.8, 100.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/65jjb1257939760.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,] 0.7416198 1.60 0.9 [2,] 1.2442471 2.85 1.2 [3,] 1.5556333 3.60 1.5 [4,] 2.0440503 4.85 1.5 [5,] 2.9602365 6.90 1.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.190838 2.687787 1.363168 [2,] 1.920429 4.512213 1.636832 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.741619848709568, 1.24424709500990, 1.55563329162304, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16z2l1257939760.ps tmp/16z2l1257939760.png") > system("convert tmp/2kg9t1257939760.ps tmp/2kg9t1257939760.png") > system("convert tmp/3w25s1257939760.ps tmp/3w25s1257939760.png") > system("convert tmp/465m61257939760.ps tmp/465m61257939760.png") > system("convert tmp/5an8t1257939760.ps tmp/5an8t1257939760.png") > system("convert tmp/65jjb1257939760.ps tmp/65jjb1257939760.png") > > > proc.time() user system elapsed 1.610 1.247 2.060