R version 2.7.0 (2008-04-22) 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(10511,10812,10738,10171,9721,9897,9828,9924,10371,10846,10413,10709,10662,10570,10297,10635,10872,10296,10383,10431,10574,10653,10805,10872,10625,10407,10463,10556,10646,10702,11353,11346,11451,11964,12574,13031,13812,14544,14931,14886,16005,17064,15168,16050,15839,15137,14954,15648,15305,15579,16348,15928,16171,15937,15713,15594,15683,16438,17032,17696,17745) > par1 = '24' > #'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] 61 > (np <- floor(n / par1)) [1] 2 > 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] 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 > arr [,1] [,2] [,3] [1,] 10511 10625 15305 [2,] 10812 10407 15579 [3,] 10738 10463 16348 [4,] 10171 10556 15928 [5,] 9721 10646 16171 [6,] 9897 10702 15937 [7,] 9828 11353 15713 [8,] 9924 11346 15594 [9,] 10371 11451 15683 [10,] 10846 11964 16438 [11,] 10413 12574 17032 [12,] 10709 13031 17696 [13,] 10662 13812 17745 [14,] 10570 14544 NA [15,] 10297 14931 NA [16,] 10635 14886 NA [17,] 10872 16005 NA [18,] 10296 17064 NA [19,] 10383 15168 NA [20,] 10431 16050 NA [21,] 10574 15839 NA [22,] 10653 15137 NA [23,] 10805 14954 NA [24,] 10872 15648 NA > darr [,1] [,2] [,3] [1,] 301 -218 274 [2,] -74 56 769 [3,] -567 93 -420 [4,] -450 90 243 [5,] 176 56 -234 [6,] -69 651 -224 [7,] 96 -7 -119 [8,] 447 105 89 [9,] 475 513 755 [10,] -433 610 594 [11,] 296 457 664 [12,] -47 781 49 [13,] -92 732 NA [14,] -273 387 NA [15,] 338 -45 NA [16,] 237 1119 NA [17,] -576 1059 NA [18,] 87 -1896 NA [19,] 48 882 NA [20,] 143 -211 NA [21,] 79 -702 NA [22,] 152 -183 NA [23,] 67 694 NA [24,] -247 -343 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/11m051225391976.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/27e361225391976.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/3f9d11225391976.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/45spy1225391976.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,] 10511 10407.0 10463.0 10171.0 9721.0 9897.0 9828.0 9924 10371 10846 [2,] 10568 10609.5 10600.5 10363.5 10183.5 10299.5 10590.5 10635 10911 11405 [3,] 10625 10812.0 10738.0 10556.0 10646.0 10702.0 11353.0 11346 11451 11964 [4,] 12965 13195.5 13543.0 13242.0 13408.5 13319.5 13533.0 13470 13567 14201 [5,] 15305 15579.0 16348.0 15928.0 16171.0 15937.0 15713.0 15594 15683 16438 [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] 10413.0 10709.0 10662.0 10570 10297 10635.0 10872.0 10296 10383.0 10431.0 [2,] 11493.5 11870.0 12237.0 10570 10297 10635.0 10872.0 10296 10383.0 10431.0 [3,] 12574.0 13031.0 13812.0 12557 12614 12760.5 13438.5 13680 12775.5 13240.5 [4,] 14803.0 15363.5 15778.5 14544 14931 14886.0 16005.0 17064 15168.0 16050.0 [5,] 17032.0 17696.0 17745.0 14544 14931 14886.0 16005.0 17064 15168.0 16050.0 [,21] [,22] [,23] [,24] [1,] 10574.0 10653 10805.0 10872 [2,] 10574.0 10653 10805.0 10872 [3,] 13206.5 12895 12879.5 13260 [4,] 15839.0 15137 14954.0 15648 [5,] 15839.0 15137 14954.0 15648 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8438.424 8453.016 8053.812 7930.194 7704.112 7947.115 8668.812 [2,] 12811.576 13170.984 13422.188 13181.806 13587.888 13456.885 14037.188 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 8759.875 9028.161 9413.451 9555.03 9844.182 10581.40 8117.133 [2,] 13932.125 13873.839 14514.549 15592.97 16217.818 17042.60 16996.867 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] 7436.762 8011.16 7703.765 6118.596 7429.56 6962.792 7324.291 [2,] 17791.238 17509.84 19173.235 21241.404 18121.44 19518.208 19088.709 [,22] [,23] [,24] [1,] 7885.346 8244.118 7924.116 [2,] 17904.654 17514.882 18595.884 $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" "19" "20" "21" "22" "23" "24" Warning message: In bxp(list(stats = c(10511, 10568, 10625, 12965, 15305, 10407, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5t1sh1225391976.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,] -218.0 -74.0 -567.0 -450.0 -234 -224.0 -119.0 89 475 -433.0 296.0 -47 [2,] 28.0 -9.0 -493.5 -180.0 -89 -146.5 -63.0 97 494 80.5 376.5 1 [3,] 274.0 56.0 -420.0 90.0 56 -69.0 -7.0 105 513 594.0 457.0 49 [4,] 287.5 412.5 -163.5 166.5 116 291.0 44.5 276 634 602.0 560.5 415 [5,] 301.0 769.0 93.0 243.0 176 651.0 96.0 447 755 610.0 664.0 781 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [1,] -92 -273 -45.0 237 -576.0 -1896.0 48 -211 -702.0 -183.0 67.0 [2,] -92 -273 -45.0 237 -576.0 -1896.0 48 -211 -702.0 -183.0 67.0 [3,] 320 57 146.5 678 241.5 -904.5 465 -34 -311.5 -15.5 380.5 [4,] 732 387 338.0 1119 1059.0 87.0 882 143 79.0 152.0 694.0 [5,] 732 387 338.0 1119 1059.0 87.0 882 143 79.0 152.0 694.0 [,24] [1,] -343 [2,] -343 [3,] -295 [4,] -247 [5,] -247 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 37.28062 -328.4980 -721.0304 -226.0820 -131.0038 -468.0934 -105.06294 [2,] 510.71938 440.4980 -118.9696 406.0820 243.0038 330.0934 91.06294 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -58.2862 385.2901 118.2807 289.1527 -328.6564 -600.5965 -680.371 [2,] 268.2862 640.7099 1069.7193 624.8473 426.6564 1240.5965 794.371 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] -281.3986 -307.3957 -1585.169 -3119.965 -466.7687 -429.499 -1184.0556 [2,] 574.3986 1663.3957 2068.169 1310.965 1396.7687 361.499 561.0556 [,22] [,23] [,24] [1,] -389.7716 -320.0024 -402.2540 [2,] 358.7716 1081.0024 -187.7460 $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" "19" "20" "21" "22" "23" "24" Warning message: In bxp(list(stats = c(-218, 28, 274, 287.5, 301, -74, -9, 56, 412.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6n0pq1225391976.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] [1,] 9721.0 10407.0 15305 [2,] 10296.5 11024.0 15683 [3,] 10540.5 13421.5 15937 [4,] 10723.5 15152.5 16438 [5,] 10872.0 17064.0 17032 $n [1] 24 24 13 $conf [,1] [,2] [,3] [1,] 10402.79 12089.99 15606.15 [2,] 10678.21 14753.01 16267.85 $out [1] 17696 17745 $group [1] 3 3 $names [1] "1" "2" NA Warning message: In bxp(list(stats = c(9721, 10296.5, 10540.5, 10723.5, 10872, 10407, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74mju1225391976.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,] 12147.00 10556.00 11766.50 [2,] 12293.00 11079.00 12057.12 [3,] 12768.00 12594.00 12768.00 [4,] 13250.25 13118.75 13223.50 [5,] 14073.00 13812.00 14007.75 $n [1] 24 24 24 $conf [,1] [,2] [,3] [1,] 12459.27 11936.15 12391.83 [2,] 13076.73 13251.85 13144.17 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(12147, 12293, 12768, 13250.25, 14073, 10556, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/11m051225391976.ps tmp/11m051225391976.png") > system("convert tmp/27e361225391976.ps tmp/27e361225391976.png") > system("convert tmp/3f9d11225391976.ps tmp/3f9d11225391976.png") > system("convert tmp/45spy1225391976.ps tmp/45spy1225391976.png") > system("convert tmp/5t1sh1225391976.ps tmp/5t1sh1225391976.png") > system("convert tmp/6n0pq1225391976.ps tmp/6n0pq1225391976.png") > system("convert tmp/74mju1225391976.ps tmp/74mju1225391976.png") > > > proc.time() user system elapsed 2.658 1.591 2.900