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(182900,191400,189300,192200,187900,193900,189100,193100,194800,200200,211500,202100,200300,199200,204900,207300,200000,197700,202200,200200,208300,215100,210700,208100,209000,211000,210200,205500,211400,211700,209300,207500,203300,207100,206900,228700,226900,226500,227100,228100,226500,225200,217800,221300,215300,231300,227100,237800,230200,233400,231100,237200,243700,239700,248400,241000,254500,242800,268300,253900,262100,264100,261000,269300,260400,263200,279200,272200,269200,289600,283200,284300,283000,289100,289600,289100,287400,279600,289300,295000,299600,293600,294400,290200,301000,307900,298800,310300,293900,305000,311300,317300,296200,306800,291800,301900,314600,321500,329400,311700,309700,306500,307100,301300,292200,310100,316800,284400,284600,301200,287600,314300,298200,299400,301900,265500,287100,274000,290100,263100,245200,258600,259800,269800,274600,274800,271100,257800,290300,262200,270000,290600) > 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] 132 > (np <- floor(n / par1)) [1] 11 > 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] 11 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 182900 200300 209000 226900 230200 262100 283000 301000 314600 284600 [2,] 191400 199200 211000 226500 233400 264100 289100 307900 321500 301200 [3,] 189300 204900 210200 227100 231100 261000 289600 298800 329400 287600 [4,] 192200 207300 205500 228100 237200 269300 289100 310300 311700 314300 [5,] 187900 200000 211400 226500 243700 260400 287400 293900 309700 298200 [6,] 193900 197700 211700 225200 239700 263200 279600 305000 306500 299400 [7,] 189100 202200 209300 217800 248400 279200 289300 311300 307100 301900 [8,] 193100 200200 207500 221300 241000 272200 295000 317300 301300 265500 [9,] 194800 208300 203300 215300 254500 269200 299600 296200 292200 287100 [10,] 200200 215100 207100 231300 242800 289600 293600 306800 310100 274000 [11,] 211500 210700 206900 227100 268300 283200 294400 291800 316800 290100 [12,] 202100 208100 228700 237800 253900 284300 290200 301900 284400 263100 [,11] [,12] [1,] 245200 NA [2,] 258600 NA [3,] 259800 NA [4,] 269800 NA [5,] 274600 NA [6,] 274800 NA [7,] 271100 NA [8,] 257800 NA [9,] 290300 NA [10,] 262200 NA [11,] 270000 NA [12,] 290600 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 8500 -1100 2000 -400 3200 2000 6100 6900 6900 16600 13400 [2,] -2100 5700 -800 600 -2300 -3100 500 -9100 7900 -13600 1200 [3,] 2900 2400 -4700 1000 6100 8300 -500 11500 -17700 26700 10000 [4,] -4300 -7300 5900 -1600 6500 -8900 -1700 -16400 -2000 -16100 4800 [5,] 6000 -2300 300 -1300 -4000 2800 -7800 11100 -3200 1200 200 [6,] -4800 4500 -2400 -7400 8700 16000 9700 6300 600 2500 -3700 [7,] 4000 -2000 -1800 3500 -7400 -7000 5700 6000 -5800 -36400 -13300 [8,] 1700 8100 -4200 -6000 13500 -3000 4600 -21100 -9100 21600 32500 [9,] 5400 6800 3800 16000 -11700 20400 -6000 10600 17900 -13100 -28100 [10,] 11300 -4400 -200 -4200 25500 -6400 800 -15000 6700 16100 7800 [11,] -9400 -2600 21800 10700 -14400 1100 -4200 10100 -32400 -27000 20600 [12,] -1800 900 -1800 -7600 8200 -1300 10800 12700 200 -17900 NA [,12] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/11aer1272025831.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/2u1ec1272025831.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/3u1ec1272025831.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/45bdx1272025831.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,] 182900 191400 189300 192200 187900 193900 189100 193100 194800 200200 [2,] 217950 218750 218650 217700 218950 218450 213550 214400 211800 223200 [3,] 245200 258600 259800 269300 260400 263200 271100 257800 269200 262200 [4,] 283800 295150 288600 299700 290650 289500 295600 283600 291250 291600 [5,] 314600 321500 329400 314300 309700 306500 311300 317300 299600 310100 [,11] [,12] [1,] 206900 202100 [2,] 219300 233250 [3,] 270000 263100 [4,] 290950 287300 [5,] 316800 301900 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 213829.9 222204.0 226476.7 230236.2 226243 229352.6 232012.4 224834.0 [2,] 276570.1 294996.0 293123.3 308363.8 294557 297047.4 310187.6 290766.0 [,9] [,10] [,11] [,12] [1,] 231351 229615.1 235866.8 237351.2 [2,] 307049 294784.9 304133.2 288848.8 $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(182900, 217950, 245200, 283800, 314600, 191400, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55bdx1272025831.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,] -1100 -3100 -4700 -16400 -7800 -7400 -13300 -21100 -28100 -15000 -32400 [2,] 2000 -2700 250 -8100 -2750 -3050 -7200 -5100 -8850 -4300 -11900 [3,] 6100 -800 2900 -2000 200 2500 -2000 1700 5400 800 -2600 [4,] 7700 900 9150 1600 2000 7500 3750 10800 13300 9550 10400 [5,] 13400 5700 11500 6500 6000 16000 6000 32500 20400 25500 21800 [,12] [1,] -7600 [2,] -1800 [3,] -550 [4,] 8200 [5,] 12700 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3384.589 -2514.9965 -1339.853 -6620.963 -2062.843 -2525.893 -7216.448 [2,] 8815.411 914.9965 7139.853 2620.963 2462.843 7525.893 3216.448 [,8] [,9] [,10] [,11] [,12] [1,] -5874.568 -5151.993 -5797.973 -13223.45 -5546.399 [2,] 9274.568 15951.993 7397.973 8023.45 4446.399 $out [1] 16600 -9100 7900 -13600 -17700 26700 11100 -36400 -17900 $group [1] 1 2 2 2 3 3 5 7 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1100, 2000, 6100, 7700, 13400, -3100, -2700, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65bdx1272025831.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] [1,] 182900 197700 203300 217800 230200 260400 283000 291800 292200 263100 [2,] 189200 200100 207000 223250 235300 262650 288250 297500 303900 279300 [3,] 192650 203550 209150 226700 241900 269250 289450 303450 309900 288850 [4,] 197500 208200 211200 227600 251150 281200 294000 309100 315700 300300 [5,] 202100 215100 211700 231300 268300 289600 299600 317300 329400 314300 [,11] [,12] [1,] 245200 NA [2,] 259200 NA [3,] 269900 NA [4,] 274700 NA [5,] 290600 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 188864.3 199855.5 207234.4 224715.9 234670.7 260789.2 286827.4 298159.2 [2,] 196435.7 207244.5 211065.6 228684.1 249129.3 277710.8 292072.6 308740.8 [,9] [,10] [,11] [,12] [1,] 304517.9 279271.8 262830.3 NA [2,] 315282.1 298428.2 276969.7 NA $out [1] 211500 228700 215300 237800 279600 284400 $group [1] 1 3 4 4 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(182900, 189200, 192650, 197500, 202100, 197700, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7f2ci1272025831.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,] 249072.7 245200 249000.0 [2,] 253750.0 259200 252575.0 [3,] 255213.6 262650 254687.5 [4,] 257618.2 269250 257175.0 [5,] 260981.8 271100 260275.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 253449.3 258066.1 252589.4 [2,] 256977.9 267233.9 256785.6 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(249072.727272727, 253750, 255213.636363636, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/11aer1272025831.ps tmp/11aer1272025831.png",intern=TRUE)) character(0) > try(system("convert tmp/2u1ec1272025831.ps tmp/2u1ec1272025831.png",intern=TRUE)) character(0) > try(system("convert tmp/3u1ec1272025831.ps tmp/3u1ec1272025831.png",intern=TRUE)) character(0) > try(system("convert tmp/45bdx1272025831.ps tmp/45bdx1272025831.png",intern=TRUE)) character(0) > try(system("convert tmp/55bdx1272025831.ps tmp/55bdx1272025831.png",intern=TRUE)) character(0) > try(system("convert tmp/65bdx1272025831.ps tmp/65bdx1272025831.png",intern=TRUE)) character(0) > try(system("convert tmp/7f2ci1272025831.ps tmp/7f2ci1272025831.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.187 0.925 1.522