R version 2.9.0 (2009-04-17) 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(1.73,1.75,1.75,1.75,1.73,1.74,1.75,1.75,1.34,1.24,1.24,1.26,1.25,1.26,1.26,1.22,1.01,1.03,1.01,1.01,1,0.98,1,1.01,1,1,1,1.03,1.26,1.43,1.61,1.76,1.93,2.16,2.28,2.5,2.63,2.79,3,3.04,3.26,3.5,3.62,3.78,4,4.16,4.29,4.49,4.59,4.79,4.94,4.99,5.24,5.25,5.25,5.25,5.25,5.24,5.25,5.26,5.26,5.25,5.25,5.25,5.26,5.02,4.94,4.76,4.49,4.24,3.94,2.98,2.61,2.28,1.98,2,2.01,2,1.81,0.97,0.39,0.16,0.15,0.22) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.73 1.25 1.00 2.63 4.59 5.26 2.61 NA [2,] 1.75 1.26 1.00 2.79 4.79 5.25 2.28 NA [3,] 1.75 1.26 1.00 3.00 4.94 5.25 1.98 NA [4,] 1.75 1.22 1.03 3.04 4.99 5.25 2.00 NA [5,] 1.73 1.01 1.26 3.26 5.24 5.26 2.01 NA [6,] 1.74 1.03 1.43 3.50 5.25 5.02 2.00 NA [7,] 1.75 1.01 1.61 3.62 5.25 4.94 1.81 NA [8,] 1.75 1.01 1.76 3.78 5.25 4.76 0.97 NA [9,] 1.34 1.00 1.93 4.00 5.25 4.49 0.39 NA [10,] 1.24 0.98 2.16 4.16 5.24 4.24 0.16 NA [11,] 1.24 1.00 2.28 4.29 5.25 3.94 0.15 NA [12,] 1.26 1.01 2.50 4.49 5.26 2.98 0.22 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/1rtmv1244127172.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/2086x1244127172.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/3702d1244127172.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/4ejro1244127172.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,] 1.00 1.000 1.000 1.030 1.010 1.030 1.01 0.97 0.390 0.16 0.150 0.220 [2,] 1.49 1.505 1.505 1.485 1.495 1.585 1.68 1.38 1.170 1.11 1.120 1.135 [3,] 2.61 2.280 1.980 2.000 2.010 2.000 1.81 1.76 1.930 2.16 2.280 2.500 [4,] 3.61 3.790 3.970 4.015 4.250 4.260 4.28 4.27 4.245 4.20 4.115 3.735 [5,] 5.26 5.250 5.250 5.250 5.260 5.250 5.25 5.25 5.250 5.24 5.250 5.260 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.343970 0.9154349 0.5079418 0.4891248 0.3647584 0.4025332 0.2573219 [2,] 3.876030 3.6445651 3.4520582 3.5108752 3.6552416 3.5974668 3.3626781 [,8] [,9] [,10] [,11] [,12] [1,] 0.03413862 0.0936596 0.3147018 0.4914343 0.947322 [2,] 3.48586138 3.7663404 4.0052982 4.0685657 4.052678 $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(1, 1.49, 2.61, 3.61, 5.26, 1, 1.505, 2.28, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/544ve1244127172.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] [,8] [1,] 1.240 0.980 1.000 2.63 4.590 3.940 0.150 NA [2,] 1.300 1.005 1.015 3.02 4.965 4.365 0.305 NA [3,] 1.735 1.010 1.520 3.56 5.245 4.980 1.895 NA [4,] 1.750 1.235 2.045 4.08 5.250 5.250 2.005 NA [5,] 1.750 1.260 2.500 4.49 5.260 5.260 2.610 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.529752 0.9050955 1.05021 3.076527 5.11501 4.576346 1.119619 NA [2,] 1.940248 1.1149045 1.98979 4.043473 5.37499 5.383654 2.670381 NA $out [1] 2.98 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.24, 1.3, 1.735, 1.75, 1.75, 0.98, 1.005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yiw31244127172.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.636458 4.220 2.1200 [2,] 1.730100 4.245 2.4975 [3,] 1.773154 4.255 2.6375 [4,] 1.888061 4.950 2.9425 [5,] 1.945677 5.100 3.0900 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.701107 3.933445 2.434533 [2,] 1.845201 4.576555 2.840467 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.63645813820435, 1.73010008156584, 1.77315418155929, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rtmv1244127172.ps tmp/1rtmv1244127172.png") > system("convert tmp/2086x1244127172.ps tmp/2086x1244127172.png") > system("convert tmp/3702d1244127172.ps tmp/3702d1244127172.png") > system("convert tmp/4ejro1244127172.ps tmp/4ejro1244127172.png") > system("convert tmp/544ve1244127172.ps tmp/544ve1244127172.png") > system("convert tmp/6yiw31244127172.ps tmp/6yiw31244127172.png") > > > proc.time() user system elapsed 1.047 0.803 1.292