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(4348,3603,2700,2640,2916,3180,4151,4023,3431,3874,2617,3580,5267,3832,3441,3228,3397,3971,4625,4486,4131,4686,3174,4282,4209,4158,3936,3149,3623,4230,4443,4810,4853,5050,3553,4674,5412,5131,4856,3980,4431,4606,5352,4640,5170,4824,3280,4706,4909,5092,4911,3824,4214,4449,4486,4777,5132,4522,3295,4281,4590,4623,4075,3398,3029) > 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] 65 > (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 6 6 6 6 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4348 5267 4209 5412 4909 4590 [2,] 3603 3832 4158 5131 5092 4623 [3,] 2700 3441 3936 4856 4911 4075 [4,] 2640 3228 3149 3980 3824 3398 [5,] 2916 3397 3623 4431 4214 3029 [6,] 3180 3971 4230 4606 4449 NA [7,] 4151 4625 4443 5352 4486 NA [8,] 4023 4486 4810 4640 4777 NA [9,] 3431 4131 4853 5170 5132 NA [10,] 3874 4686 5050 4824 4522 NA [11,] 2617 3174 3553 3280 3295 NA [12,] 3580 4282 4674 4706 4281 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -745 -1435 -51 -281 183 33 [2,] -903 -391 -222 -275 -181 -548 [3,] -60 -213 -787 -876 -1087 -677 [4,] 276 169 474 451 390 -369 [5,] 264 574 607 175 235 NA [6,] 971 654 213 746 37 NA [7,] -128 -139 367 -712 291 NA [8,] -592 -355 43 530 355 NA [9,] 443 555 197 -346 -610 NA [10,] -1257 -1512 -1497 -1544 -1227 NA [11,] 963 1108 1121 1426 986 NA [12,] 1687 -73 738 203 309 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/1xrrw1226428479.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/2rn371226428479.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/306u61226428479.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/4bmdx1226428479.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,] 4209.0 3603.0 2700.0 2640 2916 3971 4443 4486 3431 4522 3174 4281 [2,] 4348.0 3832.0 3441.0 3149 3029 3971 4443 4486 4131 4522 3174 4281 [3,] 4749.5 4390.5 4005.5 3313 3510 4230 4486 4640 4853 4686 3280 4282 [4,] 5267.0 5092.0 4856.0 3824 4214 4449 4625 4777 5132 4824 3295 4674 [5,] 5412.0 5131.0 4911.0 3980 4431 4606 4625 4810 5170 5050 3295 4706 $n [1] 6 6 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4156.715 3577.759 3092.779 2877.603 2745.637 3892.246 4357.399 4434.38 [2,] 5342.285 5203.241 4918.221 3748.397 4274.363 4567.754 4614.601 4845.62 [,9] [,10] [,11] [,12] [1,] 4145.696 4472.608 3194.502 4004.307 [2,] 5560.304 4899.392 3365.498 4559.693 $out [1] 3180 4151 5352 4023 3874 2617 3553 3580 $group [1] 6 7 7 8 10 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(4209, 4348, 4749.5, 5267, 5412, 3603, 3832, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5n8u61226428479.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,] -1435 -903 -1087 169 175 37 -712 -592 -610 -1544 963 -73 [2,] -745 -548 -876 169 235 213 -139 -355 -346 -1512 986 203 [3,] -166 -333 -732 333 264 654 -128 43 197 -1497 1108 309 [4,] 33 -222 -213 451 574 746 291 355 443 -1257 1121 738 [5,] 183 -181 -60 474 607 971 367 530 555 -1227 1121 738 $n [1] 6 6 6 6 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -667.8351 -543.2805 -1159.6564 151.1009 24.46345 277.3835 -431.8369 [2,] 335.8351 -122.7195 -304.3436 514.8991 503.53655 1030.6165 175.8369 [,8] [,9] [,10] [,11] [,12] [1,] -458.6842 -360.5054 -1677.182 1012.609 -69.02965 [2,] 544.6842 754.5054 -1316.818 1203.391 687.02965 $out [1] -369 1426 1687 $group [1] 4 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1435, -745, -166, 33, 183, -903, -548, -333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6x4bp1226428479.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,] 2617.0 3174.0 3149.0 3980.0 3295.0 3029 [2,] 2808.0 3419.0 3779.5 4518.5 4247.5 3398 [3,] 3505.5 4051.0 4219.5 4765.0 4504.0 4075 [4,] 3948.5 4555.5 4742.0 5150.5 4910.0 4590 [5,] 4348.0 5267.0 5050.0 5412.0 5132.0 4623 $n [1] 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2985.31 3532.635 3780.497 4476.741 4201.829 3232.736 [2,] 4025.69 4569.365 4658.503 5053.259 4806.171 4917.264 $out [1] 3280 $group [1] 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2617, 2808, 3505.5, 3948.5, 4348, 3174, 3419, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7efdf1226428479.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,] 3183.800 3280.00 3234.500 [2,] 3794.083 3757.75 3853.188 [3,] 4355.550 4336.25 4460.812 [4,] 4569.200 4663.00 4631.500 [5,] 4789.167 4853.00 4793.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4002.014 3923.359 4105.819 [2,] 4709.086 4749.141 4815.806 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3183.8, 3794.08333333333, 4355.55, 4569.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xrrw1226428479.ps tmp/1xrrw1226428479.png") > system("convert tmp/2rn371226428479.ps tmp/2rn371226428479.png") > system("convert tmp/306u61226428479.ps tmp/306u61226428479.png") > system("convert tmp/4bmdx1226428479.ps tmp/4bmdx1226428479.png") > system("convert tmp/5n8u61226428479.ps tmp/5n8u61226428479.png") > system("convert tmp/6x4bp1226428479.ps tmp/6x4bp1226428479.png") > system("convert tmp/7efdf1226428479.ps tmp/7efdf1226428479.png") > > > proc.time() user system elapsed 1.386 0.920 1.920