R version 2.7.1 (2008-06-23) 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(12.11,11.42,11.71,12.04,12.21,12,12.36,12.32,12.96,12.79,13.19,12.34,13.25,12.54,12.77,12.96,13,13.61,13.8,14.16,14.27,14.69,15.01,15.09,15.14,14.2,13.83,14.31,14.04,14.9,14.92,15.36,15.5,15.65,16.18,15.44,15.58,15.24,15.33,16.07,15.82,15.87,15.72,17.07,16.83,17.52,17.76,17.36,17.95,16.71,17.14,16.72,17.26,17.24,17.69,18.13,18.08,18.18,18.18,17.64,17.89,16.82,16.61,16.66,17.02,16.91,17.18,18.06,17.58,17.48,17.54,17.44,17.79,16.79,16.19,16.62,16.39,16.54,17.26,18,17.29,18.16,17.82,17.48,18.31,17.04,17.03,16.97,17.11,17.12,17.69,18.5,18.27,18.45,18.35,18.03) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 12.11 13.25 15.14 15.58 17.95 17.89 17.79 18.31 NA [2,] 11.42 12.54 14.20 15.24 16.71 16.82 16.79 17.04 NA [3,] 11.71 12.77 13.83 15.33 17.14 16.61 16.19 17.03 NA [4,] 12.04 12.96 14.31 16.07 16.72 16.66 16.62 16.97 NA [5,] 12.21 13.00 14.04 15.82 17.26 17.02 16.39 17.11 NA [6,] 12.00 13.61 14.90 15.87 17.24 16.91 16.54 17.12 NA [7,] 12.36 13.80 14.92 15.72 17.69 17.18 17.26 17.69 NA [8,] 12.32 14.16 15.36 17.07 18.13 18.06 18.00 18.50 NA [9,] 12.96 14.27 15.50 16.83 18.08 17.58 17.29 18.27 NA [10,] 12.79 14.69 15.65 17.52 18.18 17.48 18.16 18.45 NA [11,] 13.19 15.01 16.18 17.76 18.18 17.54 17.82 18.35 NA [12,] 12.34 15.09 15.44 17.36 17.64 17.44 17.48 18.03 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/1x8g81219052591.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/29ps31219052591.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/38wq01219052591.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/4r58o1219052591.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] [1,] 12.110 11.420 11.71 12.040 12.210 12.000 12.360 12.320 12.960 12.79 13.190 [2,] 14.195 13.370 13.30 13.635 13.520 14.255 14.360 14.760 14.885 15.17 15.595 [3,] 16.685 15.975 15.76 16.345 16.105 16.205 16.450 17.535 17.060 17.50 17.650 [4,] 17.920 16.805 16.82 16.690 17.065 17.015 17.475 18.095 17.830 18.17 18.000 [5,] 18.310 17.040 17.14 16.970 17.260 17.240 17.690 18.500 18.270 18.45 18.350 [,12] [1,] 12.340 [2,] 15.265 [3,] 17.400 [4,] 17.560 [5,] 18.030 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.60416 14.05616 13.79368 14.63843 14.12471 14.66322 14.70992 15.67202 [2,] 18.76584 17.89384 17.72632 18.05157 18.08529 17.74678 18.19008 19.39798 [,9] [,10] [,11] [,12] [1,] 15.41488 15.82416 16.30653 16.11798 [2,] 18.70512 19.17584 18.99347 18.68202 $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(12.11, 14.195, 16.685, 17.92, 18.31, 11.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53rjl1219052591.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] [,9] [1,] 11.420 12.540 13.830 15.240 16.710 16.610 16.190 16.970 NA [2,] 12.020 12.980 14.255 15.650 17.190 16.865 16.580 17.075 NA [3,] 12.265 13.705 15.030 15.970 17.665 17.310 17.275 17.860 NA [4,] 12.575 14.480 15.470 17.215 18.105 17.560 17.805 18.330 NA [5,] 13.190 15.090 16.180 17.760 18.180 18.060 18.160 18.500 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12.01186 13.02084 14.47583 15.25619 17.24766 16.99301 16.71627 17.28759 [2,] 12.51814 14.38916 15.58417 16.68381 18.08234 17.62699 17.83373 18.43241 [,9] [1,] NA [2,] NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(11.42, 12.02, 12.265, 12.575, 13.19, 12.54, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63tvr1219052591.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.829129 4.930 2.02250 [2,] 1.925767 5.200 2.44875 [3,] 1.995055 5.380 2.74125 [4,] 2.121202 5.675 3.08375 [5,] 2.376232 6.200 3.26250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.905916 5.163349 2.451622 [2,] 2.084195 5.596651 3.030878 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.82912889102983, 1.9257668506478, 1.99505533924314, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1x8g81219052591.ps tmp/1x8g81219052591.png") > system("convert tmp/29ps31219052591.ps tmp/29ps31219052591.png") > system("convert tmp/38wq01219052591.ps tmp/38wq01219052591.png") > system("convert tmp/4r58o1219052591.ps tmp/4r58o1219052591.png") > system("convert tmp/53rjl1219052591.ps tmp/53rjl1219052591.png") > system("convert tmp/63tvr1219052591.ps tmp/63tvr1219052591.png") > > > proc.time() user system elapsed 1.268 0.836 1.676