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(217859,208679,213188,216234,213587,209465,204045,200237,203666,241476,260307,243324,244460,233575,237217,235243,230354,227184,221678,217142,219452,256446,265845,248624,241114,229245,231805,219277,219313,212610,214771,211142,211457,240048,240636,230580,208795,197922,194596,194581,185686,178106,172608,167302,168053,202300,202388,182516,173476,166444,171297,169701,164182,161914,159612,151001,158114,186530,187069,174330) > 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,] 217859 244460 241114 208795 173476 NA [2,] 208679 233575 229245 197922 166444 NA [3,] 213188 237217 231805 194596 171297 NA [4,] 216234 235243 219277 194581 169701 NA [5,] 213587 230354 219313 185686 164182 NA [6,] 209465 227184 212610 178106 161914 NA [7,] 204045 221678 214771 172608 159612 NA [8,] 200237 217142 211142 167302 151001 NA [9,] 203666 219452 211457 168053 158114 NA [10,] 241476 256446 240048 202300 186530 NA [11,] 260307 265845 240636 202388 187069 NA [12,] 243324 248624 230580 182516 174330 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -9180 -10885 -11869 -10873 -7032 NA [2,] 4509 3642 2560 -3326 4853 NA [3,] 3046 -1974 -12528 -15 -1596 NA [4,] -2647 -4889 36 -8895 -5519 NA [5,] -4122 -3170 -6703 -7580 -2268 NA [6,] -5420 -5506 2161 -5498 -2302 NA [7,] -3808 -4536 -3629 -5306 -8611 NA [8,] 3429 2310 315 751 7113 NA [9,] 37810 36994 28591 34247 28416 NA [10,] 18831 9399 588 88 539 NA [11,] -16983 -17221 -10056 -19872 -12739 NA [12,] 1136 -7510 -21785 -9040 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/1k4tf1229203482.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/287mm1229203482.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/3r61c1229203482.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/4f9ql1229203482.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,] 173476 166444 171297 169701 164182 161914 159612 151001 158114 186530 [2,] 208795 197922 194596 194581 185686 178106 172608 167302 168053 202300 [3,] 217859 208679 213188 216234 213587 209465 204045 200237 203666 240048 [4,] 241114 229245 231805 219277 219313 212610 214771 211142 211457 241476 [5,] 244460 233575 237217 235243 230354 227184 221678 217142 219452 256446 [,11] [,12] [1,] 187069 174330 [2,] 202388 182516 [3,] 240636 230580 [4,] 260307 243324 [5,] 265845 248624 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 195022.5 186546.2 186896.2 198783.9 189826.2 185084.6 174252.7 169259.8 [2,] 240695.5 230811.8 239479.8 233684.1 237347.8 233845.4 233837.3 231214.2 [,9] [,10] [,11] [,12] [1,] 172996.8 212366.3 199710.6 187613.2 [2,] 234335.2 267729.7 281561.4 273546.8 $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(173476, 208795, 217859, 241114, 244460, 166444, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51aea1229203482.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,] -11869 2560 -1974 -8895 -7580 -5506 -5306 315 28416 88 -19872 -21785.0 [2,] -10885 2560 -1974 -5519 -6703 -5498 -5306 751 28591 539 -17221 -15412.5 [3,] -10873 3642 -1596 -4889 -4122 -5420 -4536 2310 34247 588 -16983 -8275.0 [4,] -9180 4509 -15 -2647 -3170 -2302 -3808 3429 36994 9399 -12739 -3187.0 [5,] -7032 4853 -15 36 -2268 2161 -3629 7113 37810 18831 -10056 1136.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -12077.749 2264.842 -2980.2245 -6918.348 -6618.409 -7678.286 -5594.483 [2,] -9668.251 5019.158 -211.7755 -2859.652 -1625.591 -3161.714 -3477.517 [,8] [,9] [,10] [,11] [,12] [1,] 417.7319 28309.46 -5672.454 -20149.97 -17933.145 [2,] 4202.2681 40184.54 6848.454 -13816.03 1383.145 $out [1] -3326 3046 -12528 -8611 $group [1] 2 3 3 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11869, -10885, -10873, -9180, -7032, 2560, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6r23a1229203482.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,] 200237.0 217142 211142.0 167302.0 151001.0 NA [2,] 206362.0 224431 213690.5 175357.0 160763.0 NA [3,] 213387.5 234409 224279.0 190133.5 168072.5 NA [4,] 229667.5 246542 235926.5 200111.0 173903.0 NA [5,] 260307.0 265845 241114.0 208795.0 187069.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 202757.7 224324.0 214137 178843.0 162079.3 NA [2,] 224017.3 244494.0 234421 201424.0 174065.7 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(200237, 206362, 213387.5, 229667.5, 260307, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7q2hx1229203482.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,] 189364.8 200237.0 189222.0 [2,] 196199.3 206362.0 194523.8 [3,] 207090.1 213387.5 209924.5 [4,] 216507.8 224219.5 217735.8 [5,] 231249.0 240636.0 231347.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 197827.3 205242.6 199337.4 [2,] 216352.9 221532.4 220511.6 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(189364.8, 196199.3, 207090.1, 216507.8, 231249, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1k4tf1229203482.ps tmp/1k4tf1229203482.png") > system("convert tmp/287mm1229203482.ps tmp/287mm1229203482.png") > system("convert tmp/3r61c1229203482.ps tmp/3r61c1229203482.png") > system("convert tmp/4f9ql1229203482.ps tmp/4f9ql1229203482.png") > system("convert tmp/51aea1229203482.ps tmp/51aea1229203482.png") > system("convert tmp/6r23a1229203482.ps tmp/6r23a1229203482.png") > system("convert tmp/7q2hx1229203482.ps tmp/7q2hx1229203482.png") > > > proc.time() user system elapsed 1.209 0.972 1.838