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(112,304,794,901,1232,1240,1032,1145,1588,2264,2209,2917,243,558,1238,1502,2000,2146,2066,2046,1952,2771,3278,4000,410,1107,1622,1986,2036,2400,2736,2901,2883,3747,4075,4996,575,999,1411,1493,1846,2899,2372,2856,3468,4193,4440,4186,655,1453,1989,2209,2667,3005,2195,2236,2489,2651,2636,2819) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 112 243 410 575 655 NA [2,] 304 558 1107 999 1453 NA [3,] 794 1238 1622 1411 1989 NA [4,] 901 1502 1986 1493 2209 NA [5,] 1232 2000 2036 1846 2667 NA [6,] 1240 2146 2400 2899 3005 NA [7,] 1032 2066 2736 2372 2195 NA [8,] 1145 2046 2901 2856 2236 NA [9,] 1588 1952 2883 3468 2489 NA [10,] 2264 2771 3747 4193 2651 NA [11,] 2209 3278 4075 4440 2636 NA [12,] 2917 4000 4996 4186 2819 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/1606s1258135974.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/2mjwq1258135974.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/3zj5s1258135974.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/40m3i1258135974.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,] 112 304 794 901 1846 1240 2066 1145 1588 2264 2209 2819 [2,] 243 558 1238 1493 1846 2146 2066 2046 1952 2651 2636 2917 [3,] 410 999 1411 1502 2000 2400 2195 2236 2489 2771 3278 4000 [4,] 575 1107 1622 1986 2036 2899 2372 2856 2883 3747 4075 4186 [5,] 655 1453 1989 2209 2036 3005 2736 2901 3468 4193 4440 4996 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 175.4096 611.078 1139.667 1153.647 1865.746 1867.932 1978.781 1663.656 [2,] 644.5904 1386.922 1682.333 1850.353 2134.254 2932.068 2411.219 2808.344 [,9] [,10] [,11] [,12] [1,] 1831.158 1996.569 2261.206 3103.328 [2,] 3146.842 3545.431 4294.794 4896.672 $out [1] 1232 2667 1032 $group [1] 5 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(112, 243, 410, 575, 655, 304, 558, 999, 1107, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59s5z1258135974.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] [1,] 112.0 243.0 410 575 1453.0 NA [2,] 847.5 1370.0 1804 1452 2092.0 NA [3,] 1188.5 2023.0 2568 2614 2362.5 NA [4,] 1898.5 2458.5 3324 3827 2659.0 NA [5,] 2917.0 4000.0 4996 4440 3005.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 709.1318 1526.528 1874.718 1530.747 2103.887 NA [2,] 1667.8682 2519.472 3261.282 3697.253 2621.113 NA $out [1] 655 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(112, 847.5, 1188.5, 1898.5, 2917, 243, 1370, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6v04w1258135974.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,] 225.4651 543.0 190.0 [2,] 481.1376 1251.5 358.0 [3,] 672.9930 1730.0 651.0 [4,] 776.4733 1904.5 1013.5 [5,] 939.1588 2231.0 1439.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 538.2885 1432.162 352.0220 [2,] 807.6976 2027.838 949.9780 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(225.465074900748, 481.137639897989, 672.993043006146, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1606s1258135974.ps tmp/1606s1258135974.png") > system("convert tmp/2mjwq1258135974.ps tmp/2mjwq1258135974.png") > system("convert tmp/3zj5s1258135974.ps tmp/3zj5s1258135974.png") > system("convert tmp/40m3i1258135974.ps tmp/40m3i1258135974.png") > system("convert tmp/59s5z1258135974.ps tmp/59s5z1258135974.png") > system("convert tmp/6v04w1258135974.ps tmp/6v04w1258135974.png") > > > proc.time() user system elapsed 1.059 0.811 1.300