R version 2.8.1 (2008-12-22) 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(10.574,10.653,10.805,10.872,10.625,10.407,10.463,10.556,10.646,10.702,11.353,11.346,11.451,11.964,12.574,13.031,13.812,14.544,14.931,14.886,16.005,17.064,15.168,16.050,15.839,15.137,14.954,15.648,15.305,15.579,16.348,15.928,16.171,15.937,15.713,15.594,15.683,16.438,17.032,17.696,17.745,19.394,20.148,20.108,18.584,18.441,18.391,19.178,18.079,18.483,19.644,19.195,19.650,20.830,23.595,22.937,21.814,21.928,21.777,21.383,21.467) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10.574 11.451 15.839 15.683 18.079 21.467 [2,] 10.653 11.964 15.137 16.438 18.483 NA [3,] 10.805 12.574 14.954 17.032 19.644 NA [4,] 10.872 13.031 15.648 17.696 19.195 NA [5,] 10.625 13.812 15.305 17.745 19.650 NA [6,] 10.407 14.544 15.579 19.394 20.830 NA [7,] 10.463 14.931 16.348 20.148 23.595 NA [8,] 10.556 14.886 15.928 20.108 22.937 NA [9,] 10.646 16.005 16.171 18.584 21.814 NA [10,] 10.702 17.064 15.937 18.441 21.928 NA [11,] 11.353 15.168 15.713 18.391 21.777 NA [12,] 11.346 16.050 15.594 19.178 21.383 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.079 0.513 -0.702 0.755 0.404 NA [2,] 0.152 0.610 -0.183 0.594 1.161 NA [3,] 0.067 0.457 0.694 0.664 -0.449 NA [4,] -0.247 0.781 -0.343 0.049 0.455 NA [5,] -0.218 0.732 0.274 1.649 1.180 NA [6,] 0.056 0.387 0.769 0.754 2.765 NA [7,] 0.093 -0.045 -0.420 -0.040 -0.658 NA [8,] 0.090 1.119 0.243 -1.524 -1.123 NA [9,] 0.056 1.059 -0.234 -0.143 0.114 NA [10,] 0.651 -1.896 -0.224 -0.050 -0.151 NA [11,] -0.007 0.882 -0.119 0.787 -0.394 NA [12,] 0.105 -0.211 0.089 -1.099 0.084 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/rcomp/tmp/19hnp1257953359.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/rcomp/tmp/2xeb71257953359.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/rcomp/tmp/3kyfy1257953359.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/rcomp/tmp/4diuz1257953359.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,] 10.574 10.653 10.805 10.872 10.625 10.407 10.463 10.556 16.005 15.937 [2,] 11.451 11.964 12.574 13.031 13.812 14.544 14.931 14.886 16.005 15.937 [3,] 15.761 15.137 14.954 15.648 15.305 15.579 16.348 15.928 16.171 17.064 [4,] 18.079 16.438 17.032 17.696 17.745 19.394 20.148 20.108 18.584 18.441 [5,] 21.467 18.483 19.644 19.195 19.650 20.830 23.595 22.937 21.814 21.928 [,11] [,12] [1,] 11.353 11.346 [2,] 15.168 15.594 [3,] 15.713 16.050 [4,] 18.391 19.178 [5,] 21.777 21.383 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.48573 11.97568 11.80399 12.35172 12.52595 12.15200 12.66168 12.23815 [2,] 20.03627 18.29832 18.10401 18.94428 18.08405 19.00600 20.03432 19.61785 [,9] [,10] [,11] [,12] [1,] 14.34869 15.29468 13.43564 13.51755 [2,] 17.99331 18.83332 17.99036 18.58245 $out [1] 10.646 10.702 $group [1] 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(10.574, 11.451, 15.761, 18.079, 21.467, 10.653, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5cep31257953359.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] [1,] 0.079 -0.183 -0.449 -0.343 -0.218 0.056 -0.658 -1.524 -0.234 -0.224 -0.394 [2,] 0.079 0.152 0.067 -0.247 0.274 0.387 -0.420 -1.123 -0.143 -0.224 -0.119 [3,] 0.404 0.594 0.457 0.049 0.732 0.754 -0.045 0.090 0.056 -0.151 -0.007 [4,] 0.513 0.610 0.664 0.455 1.180 0.769 -0.040 0.243 0.114 -0.050 0.787 [5,] 0.755 1.161 0.694 0.781 1.649 0.769 0.093 1.119 0.114 -0.050 0.882 [,12] [1,] -0.211 [2,] -0.211 [3,] 0.084 [4,] 0.089 [5,] 0.105 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.0973367 0.2703784 0.03516130 -0.4470314 0.09182268 0.4840798 -0.3135070 [2,] 0.7106633 0.9176216 0.87883870 0.5450314 1.37217732 1.0239202 0.2235070 [,8] [,9] [,10] [,11] [,12] [1,] -0.8752122 -0.1255956 -0.27394796 -0.6471773 -0.1279792 [2,] 1.0552122 0.2375956 -0.02805204 0.6331773 0.2959792 $out [1] -0.702 2.765 1.059 0.651 -1.896 -1.099 $group [1] 1 6 9 10 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0790000000000006, 0.0790000000000006, 0.404, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6yec91257953359.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,] 10.4070 11.4510 14.9540 15.683 18.0790 21.467 [2,] 10.5650 12.8025 15.4420 17.364 19.4195 21.467 [3,] 10.6495 14.7150 15.6805 18.416 21.1065 21.467 [4,] 10.8385 15.5865 15.9325 19.286 21.8710 21.467 [5,] 10.8720 17.0640 16.3480 20.148 23.5950 21.467 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10.52475 13.4452 15.45678 17.53936 19.98835 21.467 [2,] 10.77425 15.9848 15.90422 19.29264 22.22465 21.467 $out [1] 11.353 11.346 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(10.407, 10.565, 10.6495, 10.8385, 10.872, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7wmh91257953359.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,] 14.5350 14.9540 14.20100 [2,] 15.3579 15.4420 15.18875 [3,] 16.3156 15.7370 16.87425 [4,] 16.7623 16.1105 17.34025 [5,] 17.0970 17.0640 17.53950 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.67504 15.43209 15.89294 [2,] 16.95616 16.04191 17.85556 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(14.535, 15.3579, 16.3156, 16.7623, 17.097, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/19hnp1257953359.ps tmp/19hnp1257953359.png") > system("convert tmp/2xeb71257953359.ps tmp/2xeb71257953359.png") > system("convert tmp/3kyfy1257953359.ps tmp/3kyfy1257953359.png") > system("convert tmp/4diuz1257953359.ps tmp/4diuz1257953359.png") > system("convert tmp/5cep31257953359.ps tmp/5cep31257953359.png") > system("convert tmp/6yec91257953359.ps tmp/6yec91257953359.png") > system("convert tmp/7wmh91257953359.ps tmp/7wmh91257953359.png") > > > proc.time() user system elapsed 1.490 1.370 2.798