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(9026,9787,9536,9490,9736,9694,9647,9753,10070,10137,9984,9732,9103,9155,9308,9394,9948,10177,10002,9728,10002,10063,10018,9960,10236,10893,10756,10940,10997,10827,10166,10186,10457,10368,10244,10511,10812,10738,10171,9721,9897,9828,9924,10371,10846,10413,10709,10662,10570,10297,10635,10872,10296,10383,10431,10574,10653,10805,10872,10625,10407,10463,10556,10646,10702,11353,11346,11451,11964,12574,13031,13812,14544,14931,14886,16005,17064,15168,16050,15839,15137,14954,15648,15305,15579,16348,15928,16171,15937,15713,15594,15683,16438,17032,17696,17745,19394) > 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] 97 > (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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 9026 9103 10236 10812 10570 10407 14544 15579 19394 [2,] 9787 9155 10893 10738 10297 10463 14931 16348 NA [3,] 9536 9308 10756 10171 10635 10556 14886 15928 NA [4,] 9490 9394 10940 9721 10872 10646 16005 16171 NA [5,] 9736 9948 10997 9897 10296 10702 17064 15937 NA [6,] 9694 10177 10827 9828 10383 11353 15168 15713 NA [7,] 9647 10002 10166 9924 10431 11346 16050 15594 NA [8,] 9753 9728 10186 10371 10574 11451 15839 15683 NA [9,] 10070 10002 10457 10846 10653 11964 15137 16438 NA [10,] 10137 10063 10368 10413 10805 12574 14954 17032 NA [11,] 9984 10018 10244 10709 10872 13031 15648 17696 NA [12,] 9732 9960 10511 10662 10625 13812 15305 17745 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/181371210579662.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/2ewwm1210579662.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/3i8qg1210579662.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/4qjut1210579662.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] [1,] 9026 9155.0 9308.0 9394.0 9736.0 9694.0 9647.0 9728.0 10002.0 [2,] 10236 10042.0 9853.5 9605.5 9922.5 10002.5 9963.0 9969.5 10263.5 [3,] 10570 10600.5 10595.5 10759.0 10499.0 10605.0 10298.5 10472.5 10749.5 [4,] 14544 12912.0 12821.0 13472.5 13467.0 13260.5 13470.0 13567.0 13550.5 [5,] 19394 16348.0 15928.0 16171.0 17064.0 15713.0 16050.0 15839.0 16438.0 [,10] [,11] [,12] [1,] 10063.0 9984.0 9732.0 [2,] 10252.5 10131.0 10235.5 [3,] 10609.0 10790.5 10643.5 [4,] 13764.0 14339.5 14558.5 [5,] 17032.0 17696.0 17745.0 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8301.12 8997.277 8937.812 8598.838 8518.991 8785.034 8339.44 [2,] 12838.88 12203.723 12253.188 12919.162 12479.009 12424.966 12257.56 [,8] [,9] [,10] [,11] [,12] [1,] 8462.885 8913.335 8647.426 8439.571 8228.61 [2,] 12482.115 12585.665 12570.574 13141.429 13058.39 $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(9026, 10236, 10570, 14544, 19394, 9155, 10042, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50xhc1210579662.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,] 9490.0 9103 10166 9721.0 10296.0 10407.0 14544.0 15579 19394 [2,] 9591.5 9351 10240 9910.5 10407.0 10601.0 14942.5 15698 19394 [3,] 9734.0 9954 10484 10392.0 10599.5 11349.5 15236.5 16054 19394 [4,] 9885.5 10010 10860 10723.5 10729.0 12269.0 15922.0 16735 19394 [5,] 10137.0 10177 10997 10846.0 10872.0 13812.0 17064.0 17745 19394 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9599.905 9653.426 10201.21 10021.19 10452.63 10588.71 14789.74 15581.02 [2,] 9868.095 10254.574 10766.79 10762.81 10746.37 12110.29 15683.26 16526.98 [,9] [1,] 19394 [2,] 19394 $out [1] 9026 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(9490, 9591.5, 9734, 9885.5, 10137, 9103, 9351, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ezdg1210579662.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,] 2407.431 6019.0 1733.000 [2,] 2531.727 6419.5 2256.875 [3,] 2626.742 6873.0 2428.375 [4,] 2933.413 7520.0 3178.250 [5,] 3535.269 8013.0 4308.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2443.531 6371.055 2008.130 [2,] 2809.954 7374.945 2848.620 $out [1] 10368 $group [1] 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2407.43084383688, 2531.72672884104, 2626.74232472993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/181371210579662.ps tmp/181371210579662.png") > system("convert tmp/2ewwm1210579662.ps tmp/2ewwm1210579662.png") > system("convert tmp/3i8qg1210579662.ps tmp/3i8qg1210579662.png") > system("convert tmp/4qjut1210579662.ps tmp/4qjut1210579662.png") > system("convert tmp/50xhc1210579662.ps tmp/50xhc1210579662.png") > system("convert tmp/6ezdg1210579662.ps tmp/6ezdg1210579662.png") > > > proc.time() user system elapsed 1.269 0.809 1.629