R version 2.8.0 (2008-10-20) 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.812,10.738,10.171,9.721,9.897,9.828,9.924,10.371,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) > 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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.812 10.570 10.407 14.544 15.579 19.394 20.83 [2,] 10.738 10.297 10.463 14.931 16.348 20.148 NA [3,] 10.171 10.635 10.556 14.886 15.928 20.108 NA [4,] 9.721 10.872 10.646 16.005 16.171 18.584 NA [5,] 9.897 10.296 10.702 17.064 15.937 18.441 NA [6,] 9.828 10.383 11.353 15.168 15.713 18.391 NA [7,] 9.924 10.431 11.346 16.050 15.594 19.178 NA [8,] 10.371 10.574 11.451 15.839 15.683 18.079 NA [9,] 10.846 10.653 11.964 15.137 16.438 18.483 NA [10,] 10.413 10.805 12.574 14.954 17.032 19.644 NA [11,] 10.709 10.872 13.031 15.648 17.696 19.195 NA [12,] 10.662 10.625 13.812 15.305 17.745 19.650 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.074 -0.273 0.056 0.387 0.769 0.754 NA [2,] -0.567 0.338 0.093 -0.045 -0.420 -0.040 NA [3,] -0.450 0.237 0.090 1.119 0.243 -1.524 NA [4,] 0.176 -0.576 0.056 1.059 -0.234 -0.143 NA [5,] -0.069 0.087 0.651 -1.896 -0.224 -0.050 NA [6,] 0.096 0.048 -0.007 0.882 -0.119 0.787 NA [7,] 0.447 0.143 0.105 -0.211 0.089 -1.099 NA [8,] 0.475 0.079 0.513 -0.702 0.755 0.404 NA [9,] -0.433 0.152 0.610 -0.183 0.594 1.161 NA [10,] 0.296 0.067 0.457 0.694 0.664 -0.449 NA [11,] -0.047 -0.247 0.781 -0.343 0.049 0.455 NA [12,] -0.092 -0.218 0.732 0.274 1.649 1.180 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/freestat/rcomp/tmp/1h7q41244371622.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/freestat/rcomp/tmp/238491244371622.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/freestat/rcomp/tmp/3d0uf1244371622.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/freestat/rcomp/tmp/4blq31244371622.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.4070 10.2970 10.1710 9.7210 9.8970 9.8280 9.924 10.371 10.6530 [2,] 10.6910 10.4630 10.5560 10.6460 10.2960 10.3830 10.431 10.574 10.8460 [3,] 14.5440 12.8345 12.7605 13.4385 13.3195 13.2605 13.470 13.567 13.5505 [4,] 17.4865 16.3480 15.9280 16.1710 17.0640 15.7130 16.050 15.839 16.4380 [5,] 20.8300 20.1480 20.1080 18.5840 18.4410 18.3910 19.178 18.079 18.4830 [,10] [,11] [,12] [1,] 10.413 10.7090 10.6250 [2,] 10.805 10.8720 10.6620 [3,] 13.764 14.3395 14.5585 [4,] 17.032 17.6960 17.7450 [5,] 19.644 19.1950 19.6500 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.48584 9.038485 9.295386 9.874697 8.953921 9.822478 9.845564 [2,] 18.60216 16.630515 16.225614 17.002303 17.685079 16.698522 17.094436 [,8] [,9] [,10] [,11] [,12] [1,] 10.17090 9.94348 9.747384 9.9378 9.989736 [2,] 16.96310 17.15752 17.780616 18.7412 19.127264 $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.407, 10.691, 14.544, 17.4865, 20.83, 10.297, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5l6331244371622.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.2730 -0.5670 -0.4500 -0.5760 -0.2240 -0.119 -0.211 0.0790 -0.433 [2,] -0.0740 -0.4200 -0.4500 -0.2340 -0.2240 -0.007 -0.211 0.0790 -0.183 [3,] 0.2215 -0.0425 0.1635 -0.0435 -0.0595 0.072 0.097 0.4395 0.373 [4,] 0.7540 0.0930 0.2430 0.1760 0.0870 0.787 0.143 0.5130 0.610 [5,] 0.7690 0.3380 1.1190 0.1760 0.0870 0.882 0.447 0.7550 1.161 [,10] [,11] [,12] [1,] -0.4490 -0.343 -0.218 [2,] 0.0670 -0.247 -0.092 [3,] 0.3765 0.001 0.503 [4,] 0.6640 0.455 1.180 [5,] 0.6940 0.781 1.649 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.3125867 -0.3734016 -0.2835074 -0.3079632 -0.2601050 -0.4401556 [2,] 0.7555867 0.2884016 0.6105074 0.2209632 0.1411050 0.5841556 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1313414 0.1595560 -0.1385106 -0.008584282 -0.4518127 -0.3174811 [2,] 0.3253414 0.7194440 0.8845106 0.761584282 0.4538127 1.3234811 $out [1] -1.524 1.059 0.651 -1.896 -1.099 -0.702 $group [1] 3 4 5 5 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.273000000000000, -0.0739999999999998, 0.221499999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6oajp1244371622.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,] 9.7210 10.2960 10.4070 14.5440 15.579 18.0790 20.83 [2,] 9.9105 10.4070 10.6010 14.9425 15.698 18.4620 20.83 [3,] 10.3920 10.5995 11.3495 15.2365 16.054 19.1865 20.83 [4,] 10.7235 10.7290 12.2690 15.9220 16.735 19.6470 20.83 [5,] 10.8460 10.8720 13.8120 17.0640 17.745 20.1480 20.83 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.02119 10.45263 10.58871 14.78974 15.58102 18.64601 20.83 [2,] 10.76281 10.74637 12.11029 15.68326 16.52698 19.72699 20.83 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(9.721, 9.9105, 10.392, 10.7235, 10.846, 10.296, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/74bcx1244371622.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.47267 12.76050 13.10112 [2,] 13.69025 13.29000 13.27969 [3,] 13.78733 13.51025 13.50294 [4,] 14.38108 14.05175 13.98431 [5,] 14.63317 14.55850 14.29788 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 13.47224 13.16281 13.18155 [2,] 14.10243 13.85769 13.82432 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(13.4726666666667, 13.69025, 13.7873333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1h7q41244371622.ps tmp/1h7q41244371622.png") > system("convert tmp/238491244371622.ps tmp/238491244371622.png") > system("convert tmp/3d0uf1244371622.ps tmp/3d0uf1244371622.png") > system("convert tmp/4blq31244371622.ps tmp/4blq31244371622.png") > system("convert tmp/5l6331244371622.ps tmp/5l6331244371622.png") > system("convert tmp/6oajp1244371622.ps tmp/6oajp1244371622.png") > system("convert tmp/74bcx1244371622.ps tmp/74bcx1244371622.png") > > > proc.time() user system elapsed 1.887 1.486 2.168