R version 2.7.0 (2008-04-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(258778,252791,256389,258961,258647,256304,250498,247883,249552,262626,264416,273049,272441,267564,265952,263937,264765,263386,258985,257334,257477,271486,274488,281274,272674,269704,268227,276444,272247,268516,263406,263619,265905,281681,287413,289423,281242,273878,269022,272630,270287,260447,262248,252806,238663,258438,266719,263279,258064,248828,248284,253376,251846,239494,239709,228793,229521,249999,254016,251178) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 258778 272441 272674 281242 258064 NA [2,] 252791 267564 269704 273878 248828 NA [3,] 256389 265952 268227 269022 248284 NA [4,] 258961 263937 276444 272630 253376 NA [5,] 258647 264765 272247 270287 251846 NA [6,] 256304 263386 268516 260447 239494 NA [7,] 250498 258985 263406 262248 239709 NA [8,] 247883 257334 263619 252806 228793 NA [9,] 249552 257477 265905 238663 229521 NA [10,] 262626 271486 281681 258438 249999 NA [11,] 264416 274488 287413 266719 254016 NA [12,] 273049 281274 289423 263279 251178 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -5987 -4877 -2970 -7364 -9236 NA [2,] 3598 -1612 -1477 -4856 -544 NA [3,] 2572 -2015 8217 3608 5092 NA [4,] -314 828 -4197 -2343 -1530 NA [5,] -2343 -1379 -3731 -9840 -12352 NA [6,] -5806 -4401 -5110 1801 215 NA [7,] -2615 -1651 213 -9442 -10916 NA [8,] 1669 143 2286 -14143 728 NA [9,] 13074 14009 15776 19775 20478 NA [10,] 1790 3002 5732 8281 4017 NA [11,] 8633 6786 2010 -3440 -2838 NA [12,] -608 -8600 -8181 -5215 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/1yk5q1229203653.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/2te1z1229203653.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/3cwn01229203653.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/4yty41229203653.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,] 258064 248828 248284 253376 251846 256304 239709 247883 229521 249999 [2,] 258778 252791 256389 258961 258647 256304 250498 247883 238663 258438 [3,] 272441 267564 265952 263937 264765 260447 258985 252806 249552 262626 [4,] 272674 269704 268227 272630 270287 263386 262248 257334 257477 271486 [5,] 281242 273878 269022 276444 272247 268516 263406 263619 265905 281681 [,11] [,12] [1,] 254016 251178 [2,] 264416 263279 [3,] 266719 273049 [4,] 274488 281274 [5,] 287413 289423 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 262622.1 255613.3 257587.3 254278.5 256540.2 255442.9 250682.5 246127.9 [2,] 282259.9 279514.7 274316.7 273595.5 272989.8 265451.1 267287.5 259484.1 [,9] [,10] [,11] [,12] [1,] 236258.1 253406.3 259602.2 260333.8 [2,] 262845.9 271845.7 273835.8 285764.2 $out [1] 239494 228793 $group [1] 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(258064, 258778, 272441, 272674, 281242, 248828, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/598v41229203653.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,] -9236 -1612 2572 -4197 -12352 -5806 -10916 143 13074 1790 -3440 -8600.0 [2,] -7364 -1612 2572 -2343 -9840 -5110 -9442 143 14009 3002 -2838 -8390.5 [3,] -5987 -1477 3608 -1530 -3731 -4401 -2615 728 15776 4017 2010 -6698.0 [4,] -4877 -544 5092 -314 -2343 215 -1651 1669 19775 5732 6786 -2911.5 [5,] -2970 -544 8217 828 -1379 1801 213 2286 20478 8281 8633 -608.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7744.308 -2231.6461 1827.374 -2963.68629 -9028.361 -8163.6316 -8120.101 [2,] -4229.692 -722.3539 5388.626 -96.31371 1566.361 -638.3684 2890.101 [,8] [,9] [,10] [,11] [,12] [1,] -350.2678 11701.76 2087.989 -4790.294 -11026.41 [2,] 1806.2678 19850.24 5946.011 8810.294 -2369.59 $out [1] 3598 -4856 -2015 -14143 $group [1] 2 2 3 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9236, -7364, -5987, -4877, -2970, -1612, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uvr01229203653.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,] 247883.0 257334.0 263406.0 252806.0 228793.0 NA [2,] 251644.5 261185.5 267066.0 259442.5 239601.5 NA [3,] 257518.0 265358.5 270975.5 264999.0 249413.5 NA [4,] 260793.5 271963.5 279062.5 271458.5 252611.0 NA [5,] 273049.0 281274.0 289423.0 281242.0 258064.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 253345.1 260442.6 265503.8 259518.4 243479.8 NA [2,] 261690.9 270274.4 276447.2 270479.6 255347.2 NA $out [1] 238663 $group [1] 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(247883, 251644.5, 257518, 260793.5, 273049, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/71rfv1229203653.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,] 248223.6 249552.0 248070.0 [2,] 256299.3 259716.0 258109.0 [3,] 263055.7 264351.0 263387.5 [4,] 266854.7 267141.5 265760.8 [5,] 271640.6 273049.0 272276.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 258241.3 260964.2 259897.5 [2,] 267870.1 267737.8 266877.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(248223.6, 256299.3, 263055.7, 266854.7, 271640.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yk5q1229203653.ps tmp/1yk5q1229203653.png") > system("convert tmp/2te1z1229203653.ps tmp/2te1z1229203653.png") > system("convert tmp/3cwn01229203653.ps tmp/3cwn01229203653.png") > system("convert tmp/4yty41229203653.ps tmp/4yty41229203653.png") > system("convert tmp/598v41229203653.ps tmp/598v41229203653.png") > system("convert tmp/6uvr01229203653.ps tmp/6uvr01229203653.png") > system("convert tmp/71rfv1229203653.ps tmp/71rfv1229203653.png") > > > proc.time() user system elapsed 2.563 1.585 2.809