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(3595,3914,4159,3676,3794,3446,3504,3958,3353,3480,3098,2944,3389,3497,4404,3849,3734,3060,3507,3287,3215,3764,2734,2837,2766,3851,3289,3848,3348,3682,4058,3655,3811,3341,3032,3475,3353,3186,3902,4164,3499,4145,3796,3711,3949,3740,3243,4407,4814,3908,5250,3937,4004,5560,3922,3759,4138,4634,3996,4308,4143,4429,5219,4929,5755,5592,4163,4962,5208,4755,4491,5732,5731,5040,6102,4904,5369,5578,4619,4731,5011,5299,4146,4625,4736) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3595 3389 2766 3353 4814 4143 5731 4736 [2,] 3914 3497 3851 3186 3908 4429 5040 NA [3,] 4159 4404 3289 3902 5250 5219 6102 NA [4,] 3676 3849 3848 4164 3937 4929 4904 NA [5,] 3794 3734 3348 3499 4004 5755 5369 NA [6,] 3446 3060 3682 4145 5560 5592 5578 NA [7,] 3504 3507 4058 3796 3922 4163 4619 NA [8,] 3958 3287 3655 3711 3759 4962 4731 NA [9,] 3353 3215 3811 3949 4138 5208 5011 NA [10,] 3480 3764 3341 3740 4634 4755 5299 NA [11,] 3098 2734 3032 3243 3996 4491 4146 NA [12,] 2944 2837 3475 4407 4308 5732 4625 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/1o6ns1257960721.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/2vf6v1257960721.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/3at781257960721.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/4vyag1257960721.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,] 2766 3186.0 3289.0 3676.0 3348.0 3060 3504.0 3287.0 3215.0 3341.0 2734 [2,] 3371 3674.0 4030.5 3848.5 3616.5 3564 3651.5 3683.0 3582.0 3610.0 3065 [3,] 3869 3908.0 4404.0 3937.0 3794.0 4145 3922.0 3759.0 3949.0 3764.0 3243 [4,] 4775 4171.5 5234.5 4534.0 4686.5 5569 4110.5 4344.5 4574.5 4694.5 4071 [5,] 5731 4429.0 6102.0 4929.0 5755.0 5592 4619.0 4962.0 5208.0 5299.0 4491 [,12] [1,] 2837.0 [2,] 3209.5 [3,] 4308.0 [4,] 4516.0 [5,] 5732.0 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3084.705 3610.901 3684.991 3527.630 3155.013 2947.646 3647.893 3363.963 [2,] 4653.295 4205.099 5123.009 4346.370 4432.987 5342.354 4196.107 4154.037 [,9] [,10] [,11] [,12] [1,] 3356.295 3116.354 2642.233 3527.779 [2,] 4541.705 4411.646 3843.767 5088.221 $out [1] 5040 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2766, 3371, 3869, 4775, 5731, 3186, 3674, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5114w1257960721.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,] 2944.0 2734.0 2766.0 3186 3759.0 4143.0 4146.0 4736 [2,] 3399.5 3137.5 3315.0 3426 3929.5 4460.0 4678.0 4736 [3,] 3549.5 3443.0 3565.0 3768 4071.0 4945.5 5025.5 4736 [4,] 3854.0 3749.0 3829.5 4047 4724.0 5405.5 5473.5 4736 [5,] 4159.0 4404.0 4058.0 4407 5560.0 5755.0 6102.0 4736 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3342.199 3164.091 3330.333 3484.758 3708.623 4514.251 4662.667 4736 [2,] 3756.801 3721.909 3799.667 4051.242 4433.377 5376.749 5388.333 4736 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(2944, 3399.5, 3549.5, 3854, 4159, 2734, 3137.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6b0jg1257960721.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,] 392.2843 1115.0 459.00 [2,] 608.6130 1716.0 673.50 [3,] 755.3317 1975.5 1038.00 [4,] 966.5302 2672.5 1255.25 [5,] 1112.8441 2965.0 2005.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 592.0833 1539.234 772.6599 [2,] 918.5802 2411.766 1303.3401 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(392.284274960076, 608.612988242395, 755.33174840736, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1o6ns1257960721.ps tmp/1o6ns1257960721.png") > system("convert tmp/2vf6v1257960721.ps tmp/2vf6v1257960721.png") > system("convert tmp/3at781257960721.ps tmp/3at781257960721.png") > system("convert tmp/4vyag1257960721.ps tmp/4vyag1257960721.png") > system("convert tmp/5114w1257960721.ps tmp/5114w1257960721.png") > system("convert tmp/6b0jg1257960721.ps tmp/6b0jg1257960721.png") > > > proc.time() user system elapsed 1.051 0.840 1.444