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(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,169362,166827,178037,186412,189226,191563,188906,186005,195309,223532,226899,214126) > 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] 69 > (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 6 6 6 6 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 216234 235243 219277 194581 169701 186412 [2,] 213587 230354 219313 185686 164182 189226 [3,] 209465 227184 212610 178106 161914 191563 [4,] 204045 221678 214771 172608 159612 188906 [5,] 200237 217142 211142 167302 151001 186005 [6,] 203666 219452 211457 168053 158114 195309 [7,] 241476 256446 240048 202300 186530 223532 [8,] 260307 265845 240636 202388 187069 226899 [9,] 243324 248624 230580 182516 174330 214126 [10,] 244460 241114 208795 173476 169362 NA [11,] 233575 229245 197922 166444 166827 NA [12,] 237217 231805 194596 171297 178037 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2647 -4889 36 -8895 -5519 2814 [2,] -4122 -3170 -6703 -7580 -2268 2337 [3,] -5420 -5506 2161 -5498 -2302 -2657 [4,] -3808 -4536 -3629 -5306 -8611 -2901 [5,] 3429 2310 315 751 7113 9304 [6,] 37810 36994 28591 34247 28416 28223 [7,] 18831 9399 588 88 539 3367 [8,] -16983 -17221 -10056 -19872 -12739 -12773 [9,] 1136 -7510 -21785 -9040 -4968 NA [10,] -10885 -11869 -10873 -7032 -2535 NA [11,] 3642 2560 -3326 4853 11210 NA [12,] -1974 -12528 -15 -1596 8375 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/1459l1258129627.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/2vyih1258129627.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/39kma1258129627.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/4h5sk1258129627.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,] 169701.0 164182.0 161914 159612.0 151001 158114.0 186530 187069.0 174330 [2,] 186412.0 185686.0 178106 172608.0 167302 168053.0 202300 202388.0 182516 [3,] 205407.5 201406.5 200514 196475.5 193121 199487.5 231790 233767.5 222353 [4,] 219277.0 219313.0 212610 214771.0 211142 211457.0 241476 260307.0 243324 [5,] 235243.0 230354.0 227184 221678.0 217142 219452.0 256446 265845.0 248624 [,10] [,11] [,12] [1,] 169362 166444 171297 [2,] 173476 166827 178037 [3,] 208795 197922 194596 [4,] 241114 229245 231805 [5,] 244460 233575 237217 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 184208.5 179716 178257.8 169279 164842.8 171490.5 206520.2 196407.9 [2,] 226606.5 223097 222770.2 223672 221399.2 227484.5 257059.8 271127.1 [,9] [,10] [,11] [,12] [1,] 183129.9 161002.2 153817.6 156603.7 [2,] 261576.1 256587.8 242026.4 232588.3 $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(169701, 186412, 205407.5, 219277, 235243, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5pnkk1258129627.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] [1,] -8895 -7580 -5506.0 -5306 315.0 28223 88.0 -19872 -9040 -11869 2560 [2,] -5519 -6703 -5498.0 -5306 751.0 28416 539.0 -17221 -9040 -10885 2560 [3,] -3768 -3646 -4038.5 -4172 2869.5 31419 1977.5 -14878 -7510 -10873 3642 [4,] 36 -2268 -2302.0 -3629 7113.0 36994 9399.0 -12739 -4968 -7032 4853 [5,] 2814 2337 2161.0 -2901 9304.0 37810 18831.0 -10056 1136 -2535 4853 [,12] [1,] -1974 [2,] -1974 [3,] -1596 [4,] -15 [5,] -15 $n [1] 6 6 6 6 6 6 6 6 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7351.1544 -6506.7182 -6100.023 -5253.719 -1234.195 25885.91 -3737.486 [2,] -184.8456 -785.2818 -1976.977 -3090.281 6973.195 36952.09 7692.486 [,8] [,9] [,10] [,11] [,12] [1,] -17769.03 -10387.265 -13595.52 2021.772 -2980.2245 [2,] -11986.97 -4632.735 -8150.48 5262.228 -211.7755 $out [1] -8611 -21785 -3326 11210 -12528 8375 $group [1] 4 9 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8895, -5519, -3768, 36, 2814, -7580, -6703, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6tn771258129627.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.0 194596.0 166444.0 151001.0 186005 [2,] 206755.0 224431.0 209968.5 169675.0 160763.0 188906 [3,] 224904.5 231079.5 213690.5 175791.0 168094.5 191563 [4,] 242400.0 244869.0 224946.5 190133.5 176183.5 214126 [5,] 260307.0 265845.0 240636.0 202388.0 187069.0 226899 $n [1] 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 208646.6 221757.6 206858.9 166459.7 161061.1 178280.5 [2,] 241162.4 240401.4 220522.1 185122.3 175127.9 204845.5 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(200237, 206755, 224904.5, 242400, 260307, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/79lmq1258129627.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,] 188804.8 193121.0 190196.8 [2,] 195205.2 197198.8 195516.5 [3,] 201490.9 200960.2 202855.8 [4,] 211512.4 215574.0 211286.6 [5,] 230524.0 233767.5 231952.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 194053.0 192579.2 195662.9 [2,] 208928.7 209341.3 210048.6 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(188804.833333333, 195205.166666667, 201490.866666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1459l1258129627.ps tmp/1459l1258129627.png") > system("convert tmp/2vyih1258129627.ps tmp/2vyih1258129627.png") > system("convert tmp/39kma1258129627.ps tmp/39kma1258129627.png") > system("convert tmp/4h5sk1258129627.ps tmp/4h5sk1258129627.png") > system("convert tmp/5pnkk1258129627.ps tmp/5pnkk1258129627.png") > system("convert tmp/6tn771258129627.ps tmp/6tn771258129627.png") > system("convert tmp/79lmq1258129627.ps tmp/79lmq1258129627.png") > > > proc.time() user system elapsed 1.252 0.986 1.539