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(10.846,10.413,10.709,10.662,10.570,10.297,10.635,10.872,10.296,10.383,10.431,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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.846 10.653 11.964 15.137 16.438 18.483 NA [2,] 10.413 10.805 12.574 14.954 17.032 19.644 NA [3,] 10.709 10.872 13.031 15.648 17.696 19.195 NA [4,] 10.662 10.625 13.812 15.305 17.745 19.650 NA [5,] 10.570 10.407 14.544 15.579 19.394 20.830 NA [6,] 10.297 10.463 14.931 16.348 20.148 23.595 NA [7,] 10.635 10.556 14.886 15.928 20.108 22.937 NA [8,] 10.872 10.646 16.005 16.171 18.584 21.814 NA [9,] 10.296 10.702 17.064 15.937 18.441 21.928 NA [10,] 10.383 11.353 15.168 15.713 18.391 21.777 NA [11,] 10.431 11.346 16.050 15.594 19.178 21.383 NA [12,] 10.574 11.451 15.839 15.683 18.079 21.467 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.433 0.152 0.610 -0.183 0.594 1.161 NA [2,] 0.296 0.067 0.457 0.694 0.664 -0.449 NA [3,] -0.047 -0.247 0.781 -0.343 0.049 0.455 NA [4,] -0.092 -0.218 0.732 0.274 1.649 1.180 NA [5,] -0.273 0.056 0.387 0.769 0.754 2.765 NA [6,] 0.338 0.093 -0.045 -0.420 -0.040 -0.658 NA [7,] 0.237 0.090 1.119 0.243 -1.524 -1.123 NA [8,] -0.576 0.056 1.059 -0.234 -0.143 0.114 NA [9,] 0.087 0.651 -1.896 -0.224 -0.050 -0.151 NA [10,] 0.048 -0.007 0.882 -0.119 0.787 -0.394 NA [11,] 0.143 0.105 -0.211 0.089 -1.099 0.084 NA [12,] 0.079 0.513 -0.702 0.755 0.404 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/114vs1259761063.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/2m7do1259761063.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/37d6e1259761064.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/4r8fd1259761064.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,] 10.6530 10.413 10.7090 10.6250 10.4070 10.2970 10.556 10.646 10.2960 [2,] 10.8460 10.805 10.8720 10.6620 10.5700 10.4630 10.635 10.872 10.7020 [3,] 13.5505 13.764 14.3395 14.5585 15.0615 15.6395 15.407 16.088 16.5005 [4,] 16.4380 17.032 17.6960 17.7450 19.3940 20.1480 20.108 18.584 18.4410 [5,] 18.4830 19.644 19.1950 19.6500 20.8300 23.5950 22.937 21.814 21.9280 [,10] [,11] [,12] [1,] 10.3830 10.431 10.574 [2,] 11.3530 11.346 11.451 [3,] 15.4405 15.822 15.761 [4,] 18.3910 19.178 18.079 [5,] 21.7770 21.383 21.467 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.94348 9.747384 9.9378 9.989736 9.369735 9.392362 9.296609 [2,] 17.15752 17.780616 18.7412 19.127264 20.753265 21.886638 21.517391 [,8] [,9] [,10] [,11] [,12] [1,] 11.11351 11.50860 10.90076 10.77011 11.48573 [2,] 21.06249 21.49240 19.98024 20.87389 20.03627 $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(10.653, 10.846, 13.5505, 16.438, 18.483, 10.413, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54gfg1259761064.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] [1,] -0.433 -0.4490 -0.343 -0.218 -0.2730 -0.6580 -1.5240 -0.5760 -0.2240 [2,] -0.183 0.0670 -0.247 -0.092 0.0560 -0.4200 -1.1230 -0.2340 -0.2240 [3,] 0.373 0.3765 0.001 0.503 0.5705 -0.0425 0.1635 -0.0435 -0.1005 [4,] 0.610 0.6640 0.455 1.180 0.7690 0.0930 0.2430 0.1140 0.0870 [5,] 1.161 0.6940 0.781 1.649 0.7690 0.3380 1.1190 0.1140 0.0870 [,10] [,11] [,12] [1,] -0.3940 -0.2110 0.079 [2,] -0.1190 -0.2110 0.079 [3,] 0.0205 0.0865 0.404 [4,] 0.7870 0.1050 0.513 [5,] 0.8820 0.1430 0.755 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1385106 -0.008584282 -0.4518127 -0.3174811 0.1105920 -0.3734016 [2,] 0.8845106 0.761584282 0.4538127 1.3234811 1.0304080 0.2884016 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.7176141 -0.2679712 -0.3011050 -0.5638993 -0.1173302 0.0973367 [2,] 1.0446141 0.1809712 0.1001050 0.6048993 0.2903302 0.7106633 $out [1] 2.765 1.059 0.651 -1.896 -1.099 -0.702 $group [1] 5 8 9 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.433, -0.183, 0.373, 0.61, 1.16100000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mn3e1259761064.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,] 10.2960 10.4070 11.9640 14.9540 16.4380 18.483 NA [2,] 10.3980 10.5905 13.4215 15.4420 17.7205 19.647 NA [3,] 10.5720 10.6775 14.9085 15.6655 18.4160 21.425 NA [4,] 10.6855 11.1090 15.9220 15.9325 19.2860 21.871 NA [5,] 10.8720 11.4510 17.0640 16.3480 20.1480 23.595 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.44087 10.44101 13.76801 15.44178 17.70196 20.41062 NA [2,] 10.70313 10.91399 16.04899 15.88922 19.13004 22.43938 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10.296, 10.398, 10.572, 10.6855, 10.872, 10.407, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7gluh1259761064.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,] 13.92017 13.55050 13.61912 [2,] 14.57917 14.44900 14.29506 [3,] 15.48983 15.42375 15.01406 [4,] 15.70500 15.79150 15.22419 [5,] 15.96367 16.50050 15.40200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 14.97633 14.81143 14.59028 [2,] 16.00333 16.03607 15.43784 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(13.9201666666667, 14.5791666666667, 15.4898333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/114vs1259761063.ps tmp/114vs1259761063.png") > system("convert tmp/2m7do1259761063.ps tmp/2m7do1259761063.png") > system("convert tmp/37d6e1259761064.ps tmp/37d6e1259761064.png") > system("convert tmp/4r8fd1259761064.ps tmp/4r8fd1259761064.png") > system("convert tmp/54gfg1259761064.ps tmp/54gfg1259761064.png") > system("convert tmp/6mn3e1259761064.ps tmp/6mn3e1259761064.png") > system("convert tmp/7gluh1259761064.ps tmp/7gluh1259761064.png") > > > proc.time() user system elapsed 1.183 0.939 2.122