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(513.13,513.13,513.13,513.13,513.13,513.13,513.13,513.13,513.13,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,576.3,576.29,576.29,576.29,576.29,576.29,576.29,576.29,576.3,576.29,576.3,576.29,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,599.12,599.12,599.12) > 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] 96 > (np <- floor(n / par1)) [1] 8 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [2,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [3,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [4,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [5,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [6,] 513.13 527.96 536.61 545.06 564.24 573.68 576.30 589.85 NA [7,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [8,] 513.13 527.96 536.61 545.06 564.24 573.68 576.30 589.85 NA [9,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [10,] 527.96 536.61 545.06 564.24 573.68 576.30 589.85 599.12 NA [11,] 527.96 536.61 545.06 564.24 573.68 576.29 589.85 599.12 NA [12,] 527.96 536.61 545.06 564.24 573.68 576.29 589.85 599.12 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [3,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [4,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [5,] 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.00 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.00 -0.01 0.00 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.00 NA [8,] 0.00 0.00 0.00 0.00 0.00 0.00 -0.01 0.00 NA [9,] 14.83 8.65 8.45 19.18 9.44 2.62 13.56 9.27 NA [10,] 0.00 0.00 0.00 0.00 0.00 -0.01 0.00 0.00 NA [11,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [12,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/1mmi71208869922.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2zepi1208869922.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3wwnn1208869922.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/48krh1208869922.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,] 513.130 513.130 513.130 513.130 513.130 513.130 513.130 513.130 513.130 [2,] 532.285 532.285 532.285 532.285 532.285 532.285 532.285 532.285 532.285 [3,] 554.650 554.650 554.650 554.650 554.650 554.650 554.650 554.650 554.650 [4,] 574.985 574.985 574.985 574.985 574.985 574.990 574.985 574.990 574.985 [5,] 589.850 589.850 589.850 589.850 589.850 589.850 589.850 589.850 589.850 [,10] [,11] [,12] [1,] 527.960 527.960 527.960 [2,] 540.835 540.835 540.835 [3,] 568.960 568.960 568.960 [4,] 583.075 583.070 583.070 [5,] 599.120 599.120 599.120 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 530.7972 530.7972 530.7972 530.7972 530.7972 530.7944 530.7972 530.7944 [2,] 578.5028 578.5028 578.5028 578.5028 578.5028 578.5056 578.5028 578.5056 [,9] [,10] [,11] [,12] [1,] 530.7972 545.3641 545.3669 545.3669 [2,] 578.5028 592.5559 592.5531 592.5531 $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(513.13, 532.285, 554.65, 574.985, 589.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rnl51208869922.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0 0 0 0 0 0 0 0 2.620 0 0 0 [2,] 0 0 0 0 0 0 0 0 8.550 0 0 0 [3,] 0 0 0 0 0 0 0 0 9.355 0 0 0 [4,] 0 0 0 0 0 0 0 0 14.195 0 0 0 [5,] 0 0 0 0 0 0 0 0 19.180 0 0 0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0 0 0 0 0 0 0 0 6.201622 0 0 0 [2,] 0 0 0 0 0 0 0 0 12.508378 0 0 0 $out [1] 0.01 -0.01 0.01 -0.01 -0.01 $group [1] 5 6 7 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6lw7o1208869922.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,] 513.130 527.960 536.610 545.06 564.24 573.680 576.290 589.850 NA [2,] 513.130 527.960 536.610 545.06 564.24 573.680 576.290 589.850 NA [3,] 513.130 527.960 536.610 545.06 564.24 573.680 576.290 589.850 NA [4,] 520.545 532.285 540.835 554.65 568.96 574.985 583.075 594.485 NA [5,] 527.960 536.610 545.060 564.24 573.68 576.300 589.850 599.120 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 509.748 525.9873 534.683 540.6859 562.0872 573.0848 573.1953 587.736 NA [2,] 516.512 529.9327 538.537 549.4341 566.3928 574.2752 579.3847 591.964 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(513.13, 513.13, 513.13, 520.545, 527.96, 527.96, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/76lw11208869922.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 553.3525 554.650 554.3900 [2,] 553.3525 554.650 554.3900 [3,] 553.3525 554.650 554.3900 [4,] 558.7275 561.805 557.8525 [5,] 564.1025 568.960 561.3175 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 550.9009 551.3866 552.8107 [2,] 555.8041 557.9134 555.9693 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(553.3525, 553.3525, 553.3525, 558.7275, 564.1025, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1mmi71208869922.ps tmp/1mmi71208869922.png") > system("convert tmp/2zepi1208869922.ps tmp/2zepi1208869922.png") > system("convert tmp/3wwnn1208869922.ps tmp/3wwnn1208869922.png") > system("convert tmp/48krh1208869922.ps tmp/48krh1208869922.png") > system("convert tmp/5rnl51208869922.ps tmp/5rnl51208869922.png") > system("convert tmp/6lw7o1208869922.ps tmp/6lw7o1208869922.png") > system("convert tmp/76lw11208869922.ps tmp/76lw11208869922.png") > > > proc.time() user system elapsed 2.562 1.584 2.813