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(10236,10893,10756,10940,10997,10827,10166,10186,10457,10368,10244,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 = '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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10236 10812 10570 10407 14544 15579 NA [2,] 10893 10738 10297 10463 14931 16348 NA [3,] 10756 10171 10635 10556 14886 15928 NA [4,] 10940 9721 10872 10646 16005 16171 NA [5,] 10997 9897 10296 10702 17064 15937 NA [6,] 10827 9828 10383 11353 15168 15713 NA [7,] 10166 9924 10431 11346 16050 15594 NA [8,] 10186 10371 10574 11451 15839 15683 NA [9,] 10457 10846 10653 11964 15137 16438 NA [10,] 10368 10413 10805 12574 14954 17032 NA [11,] 10244 10709 10872 13031 15648 17696 NA [12,] 10511 10662 10625 13812 15305 17745 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 657 -74 -273 56 387 769 NA [2,] -137 -567 338 93 -45 -420 NA [3,] 184 -450 237 90 1119 243 NA [4,] 57 176 -576 56 1059 -234 NA [5,] -170 -69 87 651 -1896 -224 NA [6,] -661 96 48 -7 882 -119 NA [7,] 20 447 143 105 -211 89 NA [8,] 271 475 79 513 -702 755 NA [9,] -89 -433 152 610 -183 594 NA [10,] -124 296 67 457 694 664 NA [11,] 267 -47 -247 781 -343 49 NA [12,] 301 -92 -218 732 274 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/1uql41209416870.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/2p9c21209416870.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/3dij71209416870.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/4ya3c1209416870.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,] 10236 10297.0 10171.0 9721 9897.0 9828 9924.0 10186.0 10457 10368.0 [2,] 10407 10463.0 10556.0 10646 10296.0 10383 10166.0 10371.0 10653 10413.0 [3,] 10691 10815.5 10695.5 10906 10849.5 11090 10888.5 11012.5 11405 11689.5 [4,] 14544 14931.0 14886.0 16005 15937.0 15168 15594.0 15683.0 15137 14954.0 [5,] 15579 16348.0 15928.0 16171 17064.0 15713 16050.0 15839.0 16438 17032.0 [,11] [,12] [1,] 10244.0 10511 [2,] 10709.0 10625 [3,] 11951.5 12237 [4,] 15648.0 15305 [5,] 17696.0 17745 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8022.501 7933.496 7902.51 7449.272 7210.873 8003.52 7387.265 [2,] 13359.499 13697.504 13488.49 14362.728 14488.127 14176.48 14389.735 [,8] [,9] [,10] [,11] [,12] [1,] 7586.088 8512.675 8760.408 8765.685 9218.249 [2,] 14438.912 14297.325 14618.592 15137.315 15255.751 $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(10236, 10407, 10691, 14544, 15579, 10297, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5otu21209416870.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,] -273.0 -567 90.0 -576.0 -224.0 -119.0 20 79 -433.0 -124.0 -343 -218 [2,] -74.0 -420 90.0 -234.0 -224.0 -119.0 20 79 -183.0 67.0 -247 -92 [3,] 221.5 -91 210.5 56.5 -119.5 20.5 97 373 31.5 376.5 1 274 [4,] 657.0 93 243.0 176.0 87.0 96.0 143 513 594.0 664.0 267 301 [5,] 769.0 338 243.0 176.0 87.0 96.0 143 755 610.0 694.0 781 732 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -250.0186 -421.9016 111.8101 -207.9632 -320.10504 -118.1819 17.66103 [2,] 693.0186 239.9016 309.1899 320.9632 81.10504 159.1819 176.33897 [,8] [,9] [,10] [,11] [,12] [1,] 93.05598 -469.6901 -8.584282 -330.5466 -3.69281 [2,] 652.94402 532.6901 761.584282 332.5466 551.69281 $out [1] -450 1119 1059 651 -1896 -661 882 447 -211 -702 $group [1] 3 3 4 5 5 6 6 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-273, -74, 221.5, 657, 769, -567, -420, -91, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6z8a61209416870.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] [1,] 10166 9721.0 10296.0 10407.0 14544.0 15579 NA [2,] 10240 9910.5 10407.0 10601.0 14942.5 15698 NA [3,] 10484 10392.0 10599.5 11349.5 15236.5 16054 NA [4,] 10860 10723.5 10729.0 12269.0 15922.0 16735 NA [5,] 10997 10846.0 10872.0 13812.0 17064.0 17745 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10201.21 10021.19 10452.63 10588.71 14789.74 15581.02 NA [2,] 10766.79 10762.81 10746.37 12110.29 15683.26 16526.98 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10166, 10240, 10484, 10860, 10997, 9721, 9910.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7fhrs1209416870.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,] 12024.67 10691.00 12029.38 [2,] 12231.92 10832.50 12290.38 [3,] 12371.58 10959.25 12478.75 [4,] 12636.75 11547.25 12635.19 [5,] 13110.00 12237.00 12871.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 12186.94 10633.25 12321.48 [2,] 12556.23 11285.25 12636.02 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(12024.6666666667, 12231.9166666667, 12371.5833333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uql41209416870.ps tmp/1uql41209416870.png") > system("convert tmp/2p9c21209416870.ps tmp/2p9c21209416870.png") > system("convert tmp/3dij71209416870.ps tmp/3dij71209416870.png") > system("convert tmp/4ya3c1209416870.ps tmp/4ya3c1209416870.png") > system("convert tmp/5otu21209416870.ps tmp/5otu21209416870.png") > system("convert tmp/6z8a61209416870.ps tmp/6z8a61209416870.png") > system("convert tmp/7fhrs1209416870.ps tmp/7fhrs1209416870.png") > > > proc.time() user system elapsed 1.433 0.964 1.827