R version 2.7.2 (2008-08-25) 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(109.20,88.60,94.30,98.30,86.40,80.60,104.10,108.20,93.40,71.90,94.10,94.90,96.40,91.10,84.40,86.40,88.00,75.10,109.70,103.00,82.10,68.00,96.40,94.30,90.00,88.00,76.10,82.50,81.40,66.50,97.20,94.10,80.70,70.50,87.80,89.50,99.60,84.20,75.10,92.00,80.80,73.10,99.80,90.00,83.10,72.40,78.80,87.30,91.00,80.10,73.60,86.40,74.50,71.20,92.40,81.50,85.30,69.90,84.20,90.70,100.30) > par1 = '12' > x <- x[x>quantile(x,0.05)] > par1 <- as.numeric(par1) > (n <- length(x)) [1] 57 > (np <- floor(n / par1)) [1] 4 > 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] 5 5 5 5 5 5 5 5 5 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 109.2 96.4 88.0 92.0 86.4 [2,] 88.6 91.1 76.1 80.8 74.5 [3,] 94.3 84.4 82.5 73.1 71.2 [4,] 98.3 86.4 81.4 99.8 92.4 [5,] 86.4 88.0 97.2 90.0 81.5 [6,] 80.6 75.1 94.1 83.1 85.3 [7,] 104.1 109.7 80.7 72.4 84.2 [8,] 108.2 103.0 87.8 78.8 90.7 [9,] 93.4 82.1 89.5 87.3 100.3 [10,] 71.9 96.4 99.6 91.0 NA [11,] 94.1 94.3 84.2 80.1 NA [12,] 94.9 90.0 75.1 73.6 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -20.6 -5.3 -11.9 -11.2 -11.9 [2,] 5.7 -6.7 6.4 -7.7 -3.3 [3,] 4.0 2.0 -1.1 26.7 21.2 [4,] -11.9 1.6 15.8 -9.8 -10.9 [5,] -5.8 -12.9 -3.1 -6.9 3.8 [6,] 23.5 34.6 -13.4 -10.7 -1.1 [7,] 4.1 -6.7 7.1 6.4 6.5 [8,] -14.8 -20.9 1.7 8.5 9.6 [9,] -21.5 14.3 10.1 3.7 NA [10,] 22.2 -2.1 -15.4 -10.9 NA [11,] 0.8 -4.3 -9.1 -6.5 NA [12,] 1.5 -2.0 16.9 12.8 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/10k8n1225909065.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/2603i1225909065.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/33qdl1225909065.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/4z5ue1225909065.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,] 86.4 74.5 71.2 81.4 81.5 75.1 72.4 78.8 82.1 71.90 80.10 73.60 [2,] 88.0 76.1 73.1 86.4 86.4 80.6 80.7 87.8 87.3 81.45 82.15 74.35 [3,] 92.0 80.8 82.5 92.4 88.0 83.1 84.2 90.7 89.5 93.70 89.15 82.55 [4,] 96.4 88.6 84.4 98.3 90.0 85.3 104.1 103.0 93.4 98.00 94.20 92.45 [5,] 96.4 91.1 94.3 99.8 90.0 85.3 109.7 108.2 100.3 99.60 94.30 94.90 $n [1] 5 5 5 5 5 5 5 5 5 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 86.06458 71.96753 74.51545 83.99149 85.45625 79.77899 67.66562 79.95972 [2,] 97.93542 89.63247 90.48455 100.80851 90.54375 86.42101 100.73438 101.44028 [,9] [,10] [,11] [,12] [1,] 85.18976 80.6255 79.6305 68.251 [2,] 93.81024 106.7745 98.6695 96.849 $out [1] 109.2 97.2 94.1 $group [1] 1 5 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(86.4, 88, 92, 96.4, 96.4, 74.5, 76.1, 80.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kgid1225909065.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,] -11.9 -7.7 -1.1 -11.9 -6.9 -13.4 4.1 -20.9 -21.5 -15.40 -9.10 -2.00 [2,] -11.9 -6.7 2.0 -10.9 -6.9 -10.7 4.1 -14.8 -8.9 -13.15 -7.80 -0.25 [3,] -11.9 -3.3 4.0 -9.8 -5.8 -1.1 6.4 1.7 6.9 -6.50 -5.40 7.15 [4,] -11.2 5.7 21.2 1.6 -3.1 23.5 6.5 8.5 12.2 10.05 -1.75 14.85 [5,] -11.2 6.4 26.7 15.8 -3.1 34.6 7.1 9.6 14.3 22.20 0.80 16.90 $n [1] 5 5 5 5 5 5 5 5 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -12.39462 -12.061809 -9.566672 -18.6324685 -8.485070 -25.26563 4.704166 [2,] -11.40538 5.461809 17.566672 -0.9675315 -3.114930 23.06563 8.095834 [,8] [,9] [,10] [,11] [,12] [1,] -14.76372 -9.769 -24.828 -10.1795 -4.779 [2,] 18.16372 23.569 11.828 -0.6205 19.079 $out [1] -20.6 -5.3 -12.9 3.8 -6.7 $group [1] 1 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(-11.9, -11.9, -11.9, -11.2, -11.2, -7.7, -6.69999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/68t091225909065.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] [1,] 71.9 75.10 75.10 72.40 71.2 [2,] 87.5 85.40 81.05 76.20 81.5 [3,] 94.2 90.55 86.00 81.95 85.3 [4,] 101.2 96.40 91.80 90.50 90.7 [5,] 109.2 109.70 99.60 99.80 100.3 $n [1] 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [1,] 87.95134 85.53283 81.09685 75.42767 80.45467 [2,] 100.44866 95.56717 90.90315 88.47233 90.14533 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(71.9, 87.5, 94.2, 101.2, 109.2, 75.1, 85.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7pbwz1225909065.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,] 81.1000 80.800 78.75000 [2,] 83.5200 82.825 82.96250 [3,] 89.1725 88.575 89.50625 [4,] 91.0900 91.350 92.27500 [5,] 94.4000 93.700 95.40000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 85.71977 84.68669 85.25876 [2,] 92.62523 92.46331 93.75374 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(81.1, 83.52, 89.1725, 91.09, 94.4, 80.8, 82.825, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10k8n1225909065.ps tmp/10k8n1225909065.png") > system("convert tmp/2603i1225909065.ps tmp/2603i1225909065.png") > system("convert tmp/33qdl1225909065.ps tmp/33qdl1225909065.png") > system("convert tmp/4z5ue1225909065.ps tmp/4z5ue1225909065.png") > system("convert tmp/5kgid1225909065.ps tmp/5kgid1225909065.png") > system("convert tmp/68t091225909065.ps tmp/68t091225909065.png") > system("convert tmp/7pbwz1225909065.ps tmp/7pbwz1225909065.png") > > > proc.time() user system elapsed 1.454 0.974 1.747