R version 2.6.2 (2008-02-08) 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(36409,33163,34122,35225,28249,30374,26311,22069,23651,28628,23187,14727,43080,32519,39657,33614,28671,34243,27336,22916,24537,26128,22602,15744,41086,39690,43129,37863,35953,29133,24693,22205,21725,27192,21790,13253,37702,30364,32609,30212,29965,28352,25814,22414,20506,28806,22228,13971,36845,35338,35022,34777,26887,23970,22780,17351,21382,24561,17409,11514,31514,27071,29462,26105,22397,23843,21705,18089,20764,25316,17704,15548,28029,29383,36438,32034,22679,24319,18004,17537,20366,22782,19169,13807,29743,25591,29096,26482,22405,27044,17970,18730,19684,19785,18479,10698,31956,29506,34506,27165,26736,23691,18157,17328,18205,20995,17382,9367) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 36409 43080 41086 37702 36845 31514 28029 29743 31956 NA [2,] 33163 32519 39690 30364 35338 27071 29383 25591 29506 NA [3,] 34122 39657 43129 32609 35022 29462 36438 29096 34506 NA [4,] 35225 33614 37863 30212 34777 26105 32034 26482 27165 NA [5,] 28249 28671 35953 29965 26887 22397 22679 22405 26736 NA [6,] 30374 34243 29133 28352 23970 23843 24319 27044 23691 NA [7,] 26311 27336 24693 25814 22780 21705 18004 17970 18157 NA [8,] 22069 22916 22205 22414 17351 18089 17537 18730 17328 NA [9,] 23651 24537 21725 20506 21382 20764 20366 19684 18205 NA [10,] 28628 26128 27192 28806 24561 25316 22782 19785 20995 NA [11,] 23187 22602 21790 22228 17409 17704 19169 18479 17382 NA [12,] 14727 15744 13253 13971 11514 15548 13807 10698 9367 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -3246 -10561 -1396 -7338 -1507 -4443 1354 -4152 -2450 NA [2,] 959 7138 3439 2245 -316 2391 7055 3505 5000 NA [3,] 1103 -6043 -5266 -2397 -245 -3357 -4404 -2614 -7341 NA [4,] -6976 -4943 -1910 -247 -7890 -3708 -9355 -4077 -429 NA [5,] 2125 5572 -6820 -1613 -2917 1446 1640 4639 -3045 NA [6,] -4063 -6907 -4440 -2538 -1190 -2138 -6315 -9074 -5534 NA [7,] -4242 -4420 -2488 -3400 -5429 -3616 -467 760 -829 NA [8,] 1582 1621 -480 -1908 4031 2675 2829 954 877 NA [9,] 4977 1591 5467 8300 3179 4552 2416 101 2790 NA [10,] -5441 -3526 -5402 -6578 -7152 -7612 -3613 -1306 -3613 NA [11,] -8460 -6858 -8537 -8257 -5895 -2156 -5362 -7781 -8015 NA [12,] 28353 25342 24449 22874 20000 12481 15936 21258 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/1nmzl1209399593.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/22okv1209399593.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/324nr1209399593.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/4okmz1209399593.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,] 28029 25591 29096 26105 22397 23691 17970 17328 19684 19785 17382 9367 [2,] 31514 29383 32609 27165 22679 23970 18157 17537 20366 22782 17704 11514 [3,] 36409 30364 34506 32034 26887 27044 22780 18730 20764 25316 19169 13807 [4,] 37702 33163 36438 34777 28671 29133 25814 22205 21725 27192 22228 14727 [5,] 43080 35338 39657 37863 35953 34243 27336 22916 23651 28806 23187 15744 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 33149.99 28373.2 32489.39 28025.01 23731.21 24324.82 18747.31 16271.52 [2,] 39668.01 32354.8 36522.61 36042.99 30042.79 29763.18 26812.69 21188.48 [,9] [,10] [,11] [,12] [1,] 20048.26 22993.4 16786.36 12114.82 [2,] 21479.74 27638.6 21551.64 15499.18 $out [1] 39690 43129 24537 18205 $group [1] 2 3 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(28029, 31514, 36409, 37702, 43080, 25591, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5t7vk1209399593.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,] -7338 -316 -7341 -9355 -6820 -9074 -5429 -480 101 -7612 -8537 12481.0 [2,] -4443 2245 -5266 -6976 -2917 -6315 -4242 877 2416 -6578 -8257 17968.0 [3,] -3246 3439 -3357 -4077 1446 -4440 -3400 1582 3179 -5402 -7781 22066.0 [4,] -1507 5000 -2397 -1910 2125 -2538 -829 2675 4977 -3613 -5895 24895.5 [5,] 1354 7138 1103 -247 5572 -1190 760 4031 8300 -1306 -5362 28353.0 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4792.293 1988.033 -4868.007 -6745.093 -1209.453 -6429.22 -5197.513 [2,] -1699.707 4889.967 -1845.993 -1408.907 4101.453 -2450.78 -1602.487 [,8] [,9] [,10] [,11] [,12] [1,] 635.0533 1830.207 -6963.567 -9024.987 18196.2 [2,] 2528.9467 4527.793 -3840.433 -6537.013 25935.8 $out [1] -10561 -1908 -2156 $group [1] 1 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7338, -4443, -3246, -1507, 1354, -316, 2245, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6b0va1209399593.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] [,8] [,9] [1,] 14727.0 15744.0 13253.0 13971 11514.0 15548.0 13807.0 10698.0 9367.0 [2,] 23419.0 23726.5 21997.5 22321 19395.5 19426.5 18586.5 18604.5 17769.5 [3,] 28438.5 28003.5 28162.5 28579 24265.5 23120.0 22730.5 21095.0 22343.0 [4,] 33642.5 33928.5 38776.5 30288 34899.5 26588.0 28706.0 26763.0 28335.5 [5,] 36409.0 43080.0 43129.0 37702 36845.0 31514.0 36438.0 29743.0 34506.0 [,10] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 23775.49 23350.3 20509.49 24945.2 17194.02 19853.59 18114.93 17373.85 [2,] 33101.51 32656.7 35815.51 32212.8 31336.98 26386.41 27346.07 24816.15 [,9] [,10] [1,] 17523.78 NA [2,] 27162.22 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(14727, 23419, 28438.5, 33642.5, 36409, 15744, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7dkys1209399593.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,] 13181.00 13807.0 13120.50 [2,] 20598.33 19966.5 20505.75 [3,] 26007.50 26101.5 25331.00 [4,] 31450.11 31199.0 31122.00 [5,] 35151.56 36409.0 34608.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 21057.93 20978.28 20488.86 [2,] 30957.07 31224.72 30173.14 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(13181, 20598.3333333333, 26007.5, 31450.1111111111, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1nmzl1209399593.ps tmp/1nmzl1209399593.png") > system("convert tmp/22okv1209399593.ps tmp/22okv1209399593.png") > system("convert tmp/324nr1209399593.ps tmp/324nr1209399593.png") > system("convert tmp/4okmz1209399593.ps tmp/4okmz1209399593.png") > system("convert tmp/5t7vk1209399593.ps tmp/5t7vk1209399593.png") > system("convert tmp/6b0va1209399593.ps tmp/6b0va1209399593.png") > system("convert tmp/7dkys1209399593.ps tmp/7dkys1209399593.png") > > > proc.time() user system elapsed 2.567 1.574 2.806