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 = '5' > #'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] 14 > 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] 15 15 14 14 14 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 41086 29133 21790 30212 20506 35338 22780 11514 22397 25316 36438 17537 [2,] 39690 24693 13253 29965 28806 35022 17351 31514 23843 17704 32034 20366 [3,] 43129 22205 37702 28352 22228 34777 21382 27071 21705 15548 22679 22782 [4,] 37863 21725 30364 25814 13971 26887 24561 29462 18089 28029 24319 19169 [5,] 35953 27192 32609 22414 36845 23970 17409 26105 20764 29383 18004 13807 [,13] [,14] [,15] [1,] 29743 27044 18479 [2,] 25591 17970 10698 [3,] 29096 18730 NA [4,] 26482 19684 NA [5,] 22405 19785 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -1396 -4440 -8537 -247 8300 -316 -5429 20000 1446 -7612 -4404 2829 [2,] 3439 -2488 24449 -1613 -6578 -245 4031 -4443 -2138 -2156 -9355 2416 [3,] -5266 -480 -7338 -2538 -8257 -7890 3179 2391 -3616 12481 1640 -3613 [4,] -1910 5467 2245 -3400 22874 -2917 -7152 -3357 2675 1354 -6315 -5362 [5,] -6820 -5402 -2397 -1908 -1507 -1190 -5895 -3708 4552 7055 -467 15936 [,13] [,14] [,15] [1,] -4152 -9074 -7781 [2,] 3505 760 NA [3,] -2614 954 NA [4,] -4077 101 NA [5,] 4639 -1306 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/1bjtg1272297108.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/2bjtg1272297108.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/3lssi1272297108.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/4lssi1272297108.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] [1,] 11514.0 10698.0 15548.0 13971.0 13807 [2,] 21148.0 17837.0 21705.0 19684.0 19785 [3,] 25316.0 24693.0 22730.5 25187.5 23192 [4,] 29977.5 30739.5 29096.0 28029.0 29383 [5,] 41086.0 39690.0 37702.0 37863.0 36845 $n [1] 15 15 14 14 14 $conf [,1] [,2] [,3] [,4] [,5] [1,] 21713.97 19429.37 19609.48 21663.63 19139.03 [2,] 28918.03 29956.63 25851.52 28711.37 27244.97 $out [1] 43129 $group [1] 3 $names [1] "1" "2" "3" "4" "5" Warning message: In bxp(list(stats = c(11514, 21148, 25316, 29977.5, 41086, 10698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lssi1272297108.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] [1,] -9074.0 -9355 -8257 -7152.0 -6820.0 [2,] -6520.5 -2488 -5266 -4077.0 -3708.0 [3,] -4152.0 -929 -2576 -2413.5 -1406.5 [4,] 599.5 3439 1640 2245.0 4552.0 [5,] 8300.0 4031 3179 5467.0 15936.0 $n [1] 15 14 14 14 14 $conf [,1] [,2] [,3] [,4] [,5] [1,] -7056.634 -3431.811 -5492.2157 -5083.1084 -4894.473 [2,] -1247.366 1573.811 340.2157 256.1084 2081.473 $out [1] 20000 24449 12481 22874 $group [1] 1 2 3 4 $names [1] "1" "2" "3" "4" "5" Warning message: In bxp(list(stats = c(-9074, -6520.5, -4152, 599.5, 8300, -9355, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6w29l1272297108.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] [,10] [,11] [,12] [1,] 35953 21725 13253 22414 13971 23970 17351 26105 20764 15548 18004 13807 [2,] 37863 22205 21790 25814 20506 26887 17409 26105 20764 17704 22679 17537 [3,] 39690 24693 30364 28352 22228 34777 21382 27071 21705 25316 24319 19169 [4,] 41086 27192 32609 29965 28806 35022 22780 29462 22397 28029 32034 20366 [5,] 43129 29133 37702 30212 36845 35338 24561 31514 23843 29383 36438 22782 [,13] [,14] [,15] [1,] 22405 17970 10698.0 [2,] 25591 18730 10698.0 [3,] 26482 19684 14588.5 [4,] 29096 19785 18479.0 [5,] 29743 19785 18479.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 5 5 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 37412.64 21169.2 22719.32 25418.91 16363.24 29028.83 17586.86 24698.95 [2,] 41967.36 28216.8 38008.68 31285.09 28092.76 40525.17 25177.14 29443.05 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [1,] 20551.13 18020.38 17708.78 17170.04 24005.38 18938.54 5895.343 [2,] 22858.87 32611.62 30929.22 21167.96 28958.62 20429.46 23281.657 $out [1] 11514 18089 27044 $group [1] 8 9 14 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" NA Warning message: In bxp(list(stats = c(35953, 37863, 39690, 41086, 43129, 21725, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7w29l1272297108.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,] 24566.67 22730.5 23968.88 [2,] 24744.21 23192.0 24288.25 [3,] 24760.36 24693.0 24432.50 [4,] 25954.20 25187.5 25370.00 [5,] 26241.86 25316.0 25562.75 $n [1] 5 5 5 $conf [,1] [,2] [,3] [1,] 23905.38 23282.98 23668.14 [2,] 25615.33 26103.02 25196.86 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(24566.6666666667, 24744.2142857143, 24760.3571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1bjtg1272297108.ps tmp/1bjtg1272297108.png",intern=TRUE)) character(0) > try(system("convert tmp/2bjtg1272297108.ps tmp/2bjtg1272297108.png",intern=TRUE)) character(0) > try(system("convert tmp/3lssi1272297108.ps tmp/3lssi1272297108.png",intern=TRUE)) character(0) > try(system("convert tmp/4lssi1272297108.ps tmp/4lssi1272297108.png",intern=TRUE)) character(0) > try(system("convert tmp/5lssi1272297108.ps tmp/5lssi1272297108.png",intern=TRUE)) character(0) > try(system("convert tmp/6w29l1272297108.ps tmp/6w29l1272297108.png",intern=TRUE)) character(0) > try(system("convert tmp/7w29l1272297108.ps tmp/7w29l1272297108.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.184 0.942 2.167