R version 2.8.0 (2008-10-20) 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(10070,10137,9984,9732,9103,9155,9308,9394,9948,10177,10002,9728,10002,10063,10018,9960,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,19394,20148,20108,18584,18441,18391,19178,18079,18483,19644,19195) > 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] 99 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 10070 10002 10457 10846 10653 11964 15137 16438 18483 [2,] 10137 10063 10368 10413 10805 12574 14954 17032 19644 [3,] 9984 10018 10244 10709 10872 13031 15648 17696 19195 [4,] 9732 9960 10511 10662 10625 13812 15305 17745 NA [5,] 9103 10236 10812 10570 10407 14544 15579 19394 NA [6,] 9155 10893 10738 10297 10463 14931 16348 20148 NA [7,] 9308 10756 10171 10635 10556 14886 15928 20108 NA [8,] 9394 10940 9721 10872 10646 16005 16171 18584 NA [9,] 9948 10997 9897 10296 10702 17064 15937 18441 NA [10,] 10177 10827 9828 10383 11353 15168 15713 18391 NA [11,] 10002 10166 9924 10431 11346 16050 15594 19178 NA [12,] 9728 10186 10371 10574 11451 15839 15683 18079 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 67 61 -89 -433 152 610 -183 594 1161 [2,] -153 -45 -124 296 67 457 694 664 -449 [3,] -252 -58 267 -47 -247 781 -343 49 NA [4,] -629 276 301 -92 -218 732 274 1649 NA [5,] 52 657 -74 -273 56 387 769 754 NA [6,] 153 -137 -567 338 93 -45 -420 -40 NA [7,] 86 184 -450 237 90 1119 243 -1524 NA [8,] 554 57 176 -576 56 1059 -234 -143 NA [9,] 229 -170 -69 87 651 -1896 -224 -50 NA [10,] -175 -661 96 48 -7 882 -119 787 NA [11,] -274 20 447 143 105 -211 89 -1099 NA [12,] 274 271 475 79 513 -702 755 404 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/1rxcu1229091510.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/22t841229091510.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/3ppw11229091510.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/4mcwo1229091510.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,] 10002 10063 9984 9732.0 9103.0 9155.0 9308.0 9394.0 9897.0 9828.0 [2,] 10457 10368 10244 10235.5 10321.5 10380.0 10363.5 10183.5 10122.0 10280.0 [3,] 10846 10805 10872 10643.5 10691.0 10815.5 10695.5 10906.0 10849.5 11090.0 [4,] 15137 14954 15648 14558.5 15061.5 15639.5 15407.0 16088.0 16500.5 15440.5 [5,] 18483 19644 19195 17745.0 19394.0 20148.0 20108.0 18584.0 18441.0 18391.0 [,11] [,12] [1,] 9924.0 9728.0 [2,] 10084.0 10278.5 [3,] 10888.5 11012.5 [4,] 15822.0 15761.0 [5,] 19178.0 18079.0 $n [1] 9 9 9 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8381.2 8389.707 8025.893 8228.61 8043.168 7877.468 7878.128 [2,] 13310.8 13220.293 13718.107 13058.39 13338.832 13753.532 13512.872 [,8] [,9] [,10] [,11] [,12] [1,] 7607.662 7286.378 8207.27 7683.171 7949.897 [2,] 14204.338 14412.622 13972.73 14093.829 14075.103 $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(10002, 10457, 10846, 15137, 18483, 10063, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vrze1229091510.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] [1,] -433 -449 -343.0 -629.0 -273.0 -567.0 -450 -576.0 -224.0 -661.0 -274.0 [2,] -89 -124 -249.5 -155.0 -11.0 -278.5 -182 -188.5 -197.0 -147.0 -242.5 [3,] 67 67 -52.5 275.0 221.5 -42.5 137 56.5 -59.5 20.5 54.5 [4,] 594 457 158.0 516.5 705.5 123.0 240 365.0 158.0 441.5 124.0 [5,] 1161 694 267.0 732.0 769.0 338.0 243 1059.0 651.0 882.0 447.0 [,12] [1,] 79 [2,] 175 [3,] 339 [4,] 494 [5,] 755 $n [1] 9 9 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -292.7133 -238.9933 -280.1354 -100.1095 -178.7472 -266.7837 -98.73526 [2,] 426.7133 372.9933 175.1354 650.1095 621.7472 181.7837 372.73526 [,8] [,9] [,10] [,11] [,12] [1,] -252.6930 -257.8081 -308.2445 -150.2322 160.8020 [2,] 365.6930 138.8081 349.2445 259.2322 517.1980 $out [1] 781 1649 1119 -1524 -1896 -1099 -702 $group [1] 3 4 7 7 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-433, -89, 67, 594, 1161, -449, -124, 67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6oajz1229091510.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,] 9103 9960.0 9721.0 10296.0 10407.0 11964.0 14954.0 16438.0 18483.0 [2,] 9351 10040.5 9910.5 10398.0 10590.5 13421.5 15442.0 17720.5 18839.0 [3,] 9840 10211.0 10306.0 10572.0 10677.5 14908.5 15665.5 18416.0 19195.0 [4,] 10036 10860.0 10484.0 10685.5 11109.0 15922.0 15932.5 19286.0 19419.5 [5,] 10177 10997.0 10812.0 10872.0 11451.0 17064.0 16348.0 20148.0 19644.0 $n [1] 12 12 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9527.567 9837.22 10044.42 10440.87 10441.01 13768.01 15441.78 17701.96 [2,] 10152.433 10584.78 10567.58 10703.13 10913.99 16048.99 15889.22 19130.04 [,9] [1,] 18665.46 [2,] 19724.54 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(9103, 9351, 9840, 10036, 10177, 9960, 10040.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7pjup1229091510.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,] 12580.62 10643.50 12583.50 [2,] 12701.11 10750.25 12729.00 [3,] 12792.56 10847.75 12835.62 [4,] 12879.70 10897.25 12984.69 [5,] 13044.11 11090.00 13230.62 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 12711.11 10780.70 12719.00 [2,] 12874.02 10914.80 12952.25 $out [1] 12294.00 12279.25 $group [1] 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(12580.625, 12701.1111111111, 12792.5625, 12879.7013888889, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rxcu1229091510.ps tmp/1rxcu1229091510.png") > system("convert tmp/22t841229091510.ps tmp/22t841229091510.png") > system("convert tmp/3ppw11229091510.ps tmp/3ppw11229091510.png") > system("convert tmp/4mcwo1229091510.ps tmp/4mcwo1229091510.png") > system("convert tmp/5vrze1229091510.ps tmp/5vrze1229091510.png") > system("convert tmp/6oajz1229091510.ps tmp/6oajz1229091510.png") > system("convert tmp/7pjup1229091510.ps tmp/7pjup1229091510.png") > > > proc.time() user system elapsed 1.210 0.961 1.491