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(51772,48439,45716,43851,41622,45180,72550,77681,71177,63390,57386,56765,55772,53605,50338,47314,44596,47029,72490,78086,71058,63276,56918,55170,52980,50466,48553,46307,43796,45642,70765,75685,69220,62898,56011,54148,46626,46018,42408,42483,40113,41381,62348,63611,58389,46175,40555,37909,37866,34418,31736,29533,27604,30575,51345,52455,43367,37077,33016,33117,32279,30369,28983,27864,24591,29528,46549,47932,41584,37295,34666,36773,39591,39833) > 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] 74 > (np <- floor(n / par1)) [1] 6 > 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] 7 7 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 51772 55772 52980 46626 37866 32279 39591 [2,] 48439 53605 50466 46018 34418 30369 39833 [3,] 45716 50338 48553 42408 31736 28983 NA [4,] 43851 47314 46307 42483 29533 27864 NA [5,] 41622 44596 43796 40113 27604 24591 NA [6,] 45180 47029 45642 41381 30575 29528 NA [7,] 72550 72490 70765 62348 51345 46549 NA [8,] 77681 78086 75685 63611 52455 47932 NA [9,] 71177 71058 69220 58389 43367 41584 NA [10,] 63390 63276 62898 46175 37077 37295 NA [11,] 57386 56918 56011 40555 33016 34666 NA [12,] 56765 55170 54148 37909 33117 36773 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/1hpax1244136948.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/2sxw41244136948.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/37r5q1244136948.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/42lts1244136948.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] [1,] 32279.0 30369.0 28983 27864 24591.0 29528.0 46549.0 47932 41584.0 37077.0 [2,] 38728.5 37125.5 31736 29533 27604.0 30575.0 51345.0 52455 43367.0 37295.0 [3,] 46626.0 46018.0 44062 43167 40867.5 43280.5 66556.5 69648 63804.5 54536.5 [4,] 52376.0 49452.5 48553 46307 43796.0 45642.0 72490.0 77681 71058.0 63276.0 [5,] 55772.0 53605.0 50338 47314 44596.0 47029.0 72550.0 78086 71177.0 63390.0 [,11] [,12] [1,] 33016 33117.0 [2,] 34666 36773.0 [3,] 48283 46028.5 [4,] 56918 55170.0 [5,] 57386 56765.0 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 38475.93 38656.51 33214.49 32347.23 30423.14 33561.8 52917.29 53376.42 [2,] 54776.07 53379.49 54909.51 53986.77 51311.86 52999.2 80195.71 85919.58 [,9] [,10] [,11] [,12] [1,] 45942.91 37777.92 33929.74 34161.84 [2,] 81666.09 71295.08 62636.26 57895.16 $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(32279, 38728.5, 46626, 52376, 55772, 30369, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59nm41244136948.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] [1,] 41622.0 44596 43796 37909.0 27604.0 24591.0 39591 [2,] 45448.0 48826 47430 40968.0 31155.5 29255.5 39591 [3,] 54268.5 55471 53564 44250.5 33767.5 33472.5 39712 [4,] 67283.5 67167 66059 52507.5 40616.5 39439.5 39833 [5,] 77681.0 78086 75685 63611.0 52455.0 47932.0 39833 $n [1] 12 12 12 12 12 12 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 44309.18 47105.55 45067.19 38987.26 29452.27 28827.51 39441.63 [2,] 64227.82 63836.45 62060.81 49513.74 38082.73 38117.49 39982.37 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(41622, 45448, 54268.5, 67283.5, 77681, 44596, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63xsk1244136948.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,] 7853.640 17501.0 12250.00 [2,] 8670.286 20680.0 12721.88 [3,] 9857.373 23570.5 15752.50 [4,] 12319.260 26157.0 21245.50 [5,] 13755.718 30154.0 23666.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8193.051 21072.40 11864.82 [2,] 11521.694 26068.60 19640.18 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7853.63954906683, 8670.28573068104, 9857.37274116877, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1hpax1244136948.ps tmp/1hpax1244136948.png") > system("convert tmp/2sxw41244136948.ps tmp/2sxw41244136948.png") > system("convert tmp/37r5q1244136948.ps tmp/37r5q1244136948.png") > system("convert tmp/42lts1244136948.ps tmp/42lts1244136948.png") > system("convert tmp/59nm41244136948.ps tmp/59nm41244136948.png") > system("convert tmp/63xsk1244136948.ps tmp/63xsk1244136948.png") > > > proc.time() user system elapsed 1.046 0.828 1.389