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(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) > par1 = '4' > #'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] 72 > (np <- floor(n / par1)) [1] 18 > 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] 18 18 18 18 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 41086 35953 21725 37702 29965 20506 36845 26887 21382 31514 22397 20764 [2,] 39690 29133 27192 30364 28352 28806 35338 23970 24561 27071 23843 25316 [3,] 43129 24693 21790 32609 25814 22228 35022 22780 17409 29462 21705 17704 [4,] 37863 22205 13253 30212 22414 13971 34777 17351 11514 26105 18089 15548 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [1,] 28029 22679 20366 29743 22405 19684 NA [2,] 29383 24319 22782 25591 27044 19785 NA [3,] 36438 18004 19169 29096 17970 18479 NA [4,] 32034 17537 13807 26482 18730 10698 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -1396 -6820 5467 -7338 -1613 8300 -1507 -2917 3179 -4443 1446 4552 [2,] 3439 -4440 -5402 2245 -2538 -6578 -316 -1190 -7152 2391 -2138 -7612 [3,] -5266 -2488 -8537 -2397 -3400 -8257 -245 -5429 -5895 -3357 -3616 -2156 [4,] -1910 -480 24449 -247 -1908 22874 -7890 4031 20000 -3708 2675 12481 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [1,] 1354 1640 2416 -4152 4639 101 NA [2,] 7055 -6315 -3613 3505 -9074 -1306 NA [3,] -4404 -467 -5362 -2614 760 -7781 NA [4,] -9355 2829 15936 -4077 954 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/1t7kp1242288368.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/237721242288368.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/3qgiu1242288368.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/4bmoe1242288368.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] [1,] 19684 19785.0 17409 10698.0 [2,] 21382 24319.0 18479 13971.0 [3,] 24783 27057.5 22504 18409.5 [4,] 31514 29133.0 29462 26482.0 [5,] 41086 35338.0 43129 37863.0 $n [1] 18 18 18 18 $conf [,1] [,2] [,3] [,4] [1,] 21009.75 25264.72 18413.83 13750.28 [2,] 28556.25 28850.28 26594.17 23068.72 $out [1] 39690 $group [1] 2 $names [1] "1" "2" "3" "4" Warning message: In bxp(list(stats = c(19684, 21382, 24783, 31514, 41086, 19785, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rnyj1242288368.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] [1,] -7338.0 -9074 -8537 -9355 [2,] -2917.0 -6315 -5429 -1910 [3,] 727.5 -2338 -3508 954 [4,] 3179.0 2245 -2397 12481 [5,] 8300.0 7055 760 24449 $n [1] 18 18 18 17 $conf [,1] [,2] [,3] [,4] [1,] -1542.709 -5525.826 -4637.146 -4560.722 [2,] 2997.709 849.826 -2378.854 6468.722 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" Warning message: In bxp(list(stats = c(-7338, -2917, 727.5, 3179, 8300, -9074, -6315, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6xzdv1242288368.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,] 37863.0 22205 13253.0 30212.0 22414.0 13971.0 34777.0 17351.0 11514.0 [2,] 38776.5 23449 17489.0 30288.0 24114.0 17238.5 34899.5 20065.5 14461.5 [3,] 40388.0 26913 21757.5 31486.5 27083.0 21367.0 35180.0 23375.0 19395.5 [4,] 42107.5 32543 24491.0 35155.5 29158.5 25517.0 36091.5 25428.5 22971.5 [5,] 43129.0 35953 27192.0 37702.0 29965.0 28806.0 36845.0 26887.0 24561.0 [,10] [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [1,] 26105.0 18089 15548 28029.0 17537.0 13807.0 25591.0 17970.0 10698.0 NA [2,] 26588.0 19897 16626 28706.0 17770.5 16488.0 26036.5 18350.0 14588.5 NA [3,] 28266.5 22051 19234 30708.5 20341.5 19767.5 27789.0 20567.5 19081.5 NA [4,] 30488.0 23120 23040 34236.0 23499.0 21574.0 29419.5 24724.5 19734.5 NA [5,] 31514.0 23843 25316 36438.0 24319.0 22782.0 29743.0 27044.0 19785.0 NA $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 37756.51 19728.74 16225.92 27641.17 23097.85 14826.99 34238.32 19138.23 [2,] 43019.49 34097.26 27289.08 35331.82 31068.15 27907.01 36121.68 27611.77 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 12672.6 25185.5 19504.83 14166.94 26339.8 15815.99 15749.56 25116.43 [2,] 26118.4 31347.5 24597.17 24301.06 35077.2 24867.01 23785.44 30461.57 [,17] [,18] [,19] [1,] 15531.65 15016.16 NA [2,] 25603.35 23146.84 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" NA Warning message: In bxp(list(stats = c(37863, 38776.5, 40388, 42107.5, 43129, 22205, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7k9ac1242288368.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,] 21255.00 18409.50 20376.50 [2,] 23224.75 20456.75 22193.75 [3,] 26198.14 23643.50 25154.12 [4,] 27282.56 25920.25 26506.31 [5,] 27363.33 27057.50 26715.38 $n [1] 4 4 4 $conf [,1] [,2] [,3] [1,] 22992.47 19327.33 21747.20 [2,] 29403.81 27959.67 28561.05 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(21255, 23224.75, 26198.1388888889, 27282.5555555556, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1t7kp1242288368.ps tmp/1t7kp1242288368.png") > system("convert tmp/237721242288368.ps tmp/237721242288368.png") > system("convert tmp/3qgiu1242288368.ps tmp/3qgiu1242288368.png") > system("convert tmp/4bmoe1242288368.ps tmp/4bmoe1242288368.png") > system("convert tmp/5rnyj1242288368.ps tmp/5rnyj1242288368.png") > system("convert tmp/6xzdv1242288368.ps tmp/6xzdv1242288368.png") > system("convert tmp/7k9ac1242288368.ps tmp/7k9ac1242288368.png") > > > proc.time() user system elapsed 1.170 0.933 1.820