R version 2.6.2 (2008-02-08) 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(16.100,15.800,16.900,17.800,17.600,18.300,18.000,15.700,14.500,14.000,15.500,15.800,15.800,15.900,18.000,19.900,20.600,20.600,20.800,20.000,18.500,17.700,17.000,16.600,16.700,17.300,19.100,20.200,20.700,21.500,21.000,16.800,16.800,16.500,17.200,17.300,17.600,18.400,19.900,20.500,21.200,21.300,20.800,18.800,18.100,18.100,18.800,18.700,18.700,19.000,20.100,20.500,21.600,21.800,21.500,21.200,20.400,20.400,20.600,19.300,18.600,19.400,23.500,24.600,25.900,26.600,24.100,21.800,21.300,21.100,21.200,21.600) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 16.1 15.8 16.7 17.6 18.7 18.6 NA [2,] 15.8 15.9 17.3 18.4 19.0 19.4 NA [3,] 16.9 18.0 19.1 19.9 20.1 23.5 NA [4,] 17.8 19.9 20.2 20.5 20.5 24.6 NA [5,] 17.6 20.6 20.7 21.2 21.6 25.9 NA [6,] 18.3 20.6 21.5 21.3 21.8 26.6 NA [7,] 18.0 20.8 21.0 20.8 21.5 24.1 NA [8,] 15.7 20.0 16.8 18.8 21.2 21.8 NA [9,] 14.5 18.5 16.8 18.1 20.4 21.3 NA [10,] 14.0 17.7 16.5 18.1 20.4 21.1 NA [11,] 15.5 17.0 17.2 18.8 20.6 21.2 NA [12,] 15.8 16.6 17.3 18.7 19.3 21.6 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/rcomp/tmp/1cf8l1210697240.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/rcomp/tmp/2glix1210697240.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/rcomp/tmp/32jwv1210697240.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/rcomp/tmp/4rmq61210697240.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,] 15.80 15.80 16.9 19.90 20.60 20.6 20.8 15.7 14.5 14.0 15.5 15.8 [2,] 16.10 15.90 18.0 19.90 20.60 20.6 20.8 16.8 16.8 16.5 17.0 16.6 [3,] 17.15 17.85 19.5 20.35 20.95 21.4 20.9 19.4 18.3 17.9 18.0 18.0 [4,] 18.60 19.00 20.1 20.50 21.60 21.8 21.5 21.2 20.4 20.4 20.6 19.3 [5,] 18.70 19.40 20.1 20.50 21.60 21.8 21.5 21.8 21.3 21.1 21.2 21.6 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.53742 15.8504 18.14543 19.96298 20.30497 20.62596 20.44848 16.56186 [2,] 18.76258 19.8496 20.85457 20.73702 21.59503 22.17404 21.35152 22.23814 [,9] [,10] [,11] [,12] [1,] 15.97788 15.38437 15.67788 16.25841 [2,] 20.62212 20.41563 20.32212 19.74159 $out [1] 23.5 17.8 24.6 17.6 25.9 18.3 26.6 18.0 24.1 $group [1] 3 4 4 5 5 6 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15.8, 16.1, 17.15, 18.6, 18.7, 15.8, 15.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5d13d1210697240.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] [,7] [1,] 14.00 15.80 16.50 17.60 18.70 18.60 NA [2,] 15.60 16.80 16.80 18.25 19.70 21.15 NA [3,] 15.95 18.25 17.30 18.80 20.45 21.70 NA [4,] 17.70 20.30 20.45 20.65 21.35 24.35 NA [5,] 18.30 20.80 21.50 21.30 21.80 26.60 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.99218 16.65363 15.63521 17.70534 19.69742 20.24046 NA [2,] 16.90782 19.84637 18.96479 19.89466 21.20258 23.15954 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(14, 15.6, 15.95, 17.7, 18.3, 15.8, 16.8, 18.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/688hr1210697240.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,] 1.552632 5.70 0.5250 [2,] 2.025307 5.75 0.9125 [3,] 2.242581 6.35 2.2375 [4,] 2.526610 6.95 2.9125 [5,] 2.719865 8.30 3.6000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.013933 5.802672 1.325287 [2,] 2.471229 6.897328 3.149713 $out [1] 1.246996 2.900000 3.600000 $group [1] 1 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.55263217365436, 2.02530663334123, 2.24258100560599, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1cf8l1210697240.ps tmp/1cf8l1210697240.png") > system("convert tmp/2glix1210697240.ps tmp/2glix1210697240.png") > system("convert tmp/32jwv1210697240.ps tmp/32jwv1210697240.png") > system("convert tmp/4rmq61210697240.ps tmp/4rmq61210697240.png") > system("convert tmp/5d13d1210697240.ps tmp/5d13d1210697240.png") > system("convert tmp/688hr1210697240.ps tmp/688hr1210697240.png") > > > proc.time() user system elapsed 1.284 0.828 1.598