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(41086,39690,43129,37863,35953,29133,24693,22205,21725,27192,21790,13253,37702,30364,32609,30212,29965,28352,25814,22414,20506,28806,22228,13971,36845,35338,35022,34777,26887,23970,22780,17351,21382,24561,17409,11514,31514,27071,29462,26105,22397,23843,21705,18089,20764,25316,17704,15548,28029,29383,36438,32034,22679,24319,18004,17537,20366,22782,19169,13807,29743,25591,29096,26482,22405,27044,17970,18730,19684,19785,18479,10698) > par1 = '36' > #'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] 2 > 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] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 > arr [,1] [,2] [,3] [1,] 41086 31514 NA [2,] 39690 27071 NA [3,] 43129 29462 NA [4,] 37863 26105 NA [5,] 35953 22397 NA [6,] 29133 23843 NA [7,] 24693 21705 NA [8,] 22205 18089 NA [9,] 21725 20764 NA [10,] 27192 25316 NA [11,] 21790 17704 NA [12,] 13253 15548 NA [13,] 37702 28029 NA [14,] 30364 29383 NA [15,] 32609 36438 NA [16,] 30212 32034 NA [17,] 29965 22679 NA [18,] 28352 24319 NA [19,] 25814 18004 NA [20,] 22414 17537 NA [21,] 20506 20366 NA [22,] 28806 22782 NA [23,] 22228 19169 NA [24,] 13971 13807 NA [25,] 36845 29743 NA [26,] 35338 25591 NA [27,] 35022 29096 NA [28,] 34777 26482 NA [29,] 26887 22405 NA [30,] 23970 27044 NA [31,] 22780 17970 NA [32,] 17351 18730 NA [33,] 21382 19684 NA [34,] 24561 19785 NA [35,] 17409 18479 NA [36,] 11514 10698 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/1m3dd1243869672.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/25rk91243869672.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/3n7t21243869672.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/4smws1243869672.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,] 31514 27071.0 29462.0 26105 22397 23843 21705 18089 20764.0 25316 17704 [2,] 31514 27071.0 29462.0 26105 22397 23843 21705 18089 20764.0 25316 17704 [3,] 36300 33380.5 36295.5 31984 29175 26488 23199 20147 21244.5 26254 19747 [4,] 41086 39690.0 43129.0 37863 35953 29133 24693 22205 21725.0 27192 21790 [5,] 41086 39690.0 43129.0 37863 35953 29133 24693 22205 21725.0 27192 21790 [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] 13253.0 28029.0 29383.0 32609.0 30212 22679 24319.0 18004 17537.0 20366 [2,] 13253.0 28029.0 29383.0 32609.0 30212 22679 24319.0 18004 17537.0 20366 [3,] 14400.5 32865.5 29873.5 34523.5 31123 26322 26335.5 21909 19975.5 20436 [4,] 15548.0 37702.0 30364.0 36438.0 32034 29965 28352.0 25814 22414.0 20506 [5,] 15548.0 37702.0 30364.0 36438.0 32034 29965 28352.0 25814 22414.0 20506 [,22] [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [1,] 22782 19169.0 13807 29743 25591.0 29096 26482.0 22405 23970 17970 17351.0 [2,] 22782 19169.0 13807 29743 25591.0 29096 26482.0 22405 23970 17970 17351.0 [3,] 25794 20698.5 13889 33294 30464.5 32059 30629.5 24646 25507 20375 18040.5 [4,] 28806 22228.0 13971 36845 35338.0 35022 34777.0 26887 27044 22780 18730.0 [5,] 28806 22228.0 13971 36845 35338.0 35022 34777.0 26887 27044 22780 18730.0 [,33] [,34] [,35] [,36] [1,] 19684 19785 17409 10698 [2,] 19684 19785 17409 10698 [3,] 20533 22173 17944 11106 [4,] 21382 24561 18479 11514 [5,] 21382 24561 18479 11514 $n [1] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 25605.89 19282.19 21026.34 18847.62 14029.85 20577.86 19860.72 15548.49 [2,] 46994.11 47478.81 51564.66 45120.38 44320.15 32398.14 26537.28 24745.51 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 20170.84 24158.08 15182.00 11836.46 22058.55 28777.5 30245.63 29087.41 [2,] 22318.16 28349.92 24312.00 16964.54 43672.45 30969.5 38801.37 33158.59 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 18181.87 21829.72 13183.44 14526.78 20279.59 19063.81 17280.90 13705.77 [2,] 34462.13 30841.28 30634.56 25424.22 20592.41 32524.19 24116.10 14072.23 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [1,] 25359.44 19574.87 25438.30 21362.09 19638.58 22072.64 15001.13 16499.84 [2,] 41228.56 41354.13 38679.70 39896.91 29653.42 28941.36 25748.87 19581.16 [,33] [,34] [,35] [,36] [1,] 18635.95 16837.12 16748.57 10194.34 [2,] 22430.05 27508.88 19139.43 12017.66 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" Warning message: In bxp(list(stats = c(31514, 31514, 36300, 41086, 41086, 27071, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51gyy1243869672.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] [1,] 11514.0 10698.0 NA [2,] 21997.5 18604.5 NA [3,] 27039.5 22542.0 NA [4,] 34899.5 27057.5 NA [5,] 43129.0 36438.0 NA $n [1] 36 36 0 $conf [,1] [,2] [,3] [1,] 23641.97 20316.04 NA [2,] 30437.03 24767.96 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64fsx1243869672.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,] 98.99495 140 70.0 [2,] 1307.44044 1849 924.5 [3,] 3039.85205 4299 2149.5 [4,] 5337.24198 7548 3774.0 [5,] 9664.02838 13667 6833.5 $n [1] 36 36 36 $conf [,1] [,2] [,3] [1,] 1978.671 2798.263 1399.132 [2,] 4101.033 5799.737 2899.868 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" > dev.off() null device 1 > > system("convert tmp/1m3dd1243869672.ps tmp/1m3dd1243869672.png") > system("convert tmp/25rk91243869672.ps tmp/25rk91243869672.png") > system("convert tmp/3n7t21243869672.ps tmp/3n7t21243869672.png") > system("convert tmp/4smws1243869672.ps tmp/4smws1243869672.png") > system("convert tmp/51gyy1243869672.ps tmp/51gyy1243869672.png") > system("convert tmp/64fsx1243869672.ps tmp/64fsx1243869672.png") > > > proc.time() user system elapsed 1.151 0.849 1.836