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(321935,310215,309030,305333,294735,289351,288225,289648,290155,288301,289148,289741,287595,285226,287816,283519,290304,282166,280041,282500,279913,277793,281229,275363,273547,270601,273338,271917,273985,273911,270798,271115,271344,274525,276663,273784,274027,269160,270491,270846,270333,272599,272764,270674,268175,268351,272482,268714,269419,265518,264101,267179,271322,270157,271296,269907,271244,266844,270911,269829,269285,263018,266680,265814,268457,269508,270223,264676,265521,262971,266003,267722,266433) > 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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 321935 287595 273547 274027 269419 269285 266433 [2,] 310215 285226 270601 269160 265518 263018 NA [3,] 309030 287816 273338 270491 264101 266680 NA [4,] 305333 283519 271917 270846 267179 265814 NA [5,] 294735 290304 273985 270333 271322 268457 NA [6,] 289351 282166 273911 272599 270157 269508 NA [7,] 288225 280041 270798 272764 271296 270223 NA [8,] 289648 282500 271115 270674 269907 264676 NA [9,] 290155 279913 271344 268175 271244 265521 NA [10,] 288301 277793 274525 268351 266844 262971 NA [11,] 289148 281229 276663 272482 270911 266003 NA [12,] 289741 275363 273784 268714 269829 267722 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11720 -2369 -2946 -4867 -3901 -6267 NA [2,] -1185 2590 2737 1331 -1417 3662 NA [3,] -3697 -4297 -1421 355 3078 -866 NA [4,] -10598 6785 2068 -513 4143 2643 NA [5,] -5384 -8138 -74 2266 -1165 1051 NA [6,] -1126 -2125 -3113 165 1139 715 NA [7,] 1423 2459 317 -2090 -1389 -5547 NA [8,] 507 -2587 229 -2499 1337 845 NA [9,] -1854 -2120 3181 176 -4400 -2550 NA [10,] 847 3436 2138 4131 4067 3032 NA [11,] 593 -5866 -2879 -3768 -1082 1719 NA [12,] -2146 -1816 243 705 -544 -1289 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/freestat/rcomp/tmp/1f0yn1242906194.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/freestat/rcomp/tmp/27t2m1242906194.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/freestat/rcomp/tmp/3b48l1242906194.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/freestat/rcomp/tmp/4qgok1242906194.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] [1,] 266433 263018.0 264101.0 265814.0 268457.0 269508 270223 264676.0 265521 [2,] 269352 265518.0 266680.0 267179.0 270333.0 270157 270798 269907.0 268175 [3,] 273547 269880.5 271914.5 271381.5 272653.5 273255 272030 270894.5 271294 [4,] 280811 285226.0 287816.0 283519.0 290304.0 282166 280041 282500.0 279913 [5,] 287595 310215.0 309030.0 305333.0 294735.0 289351 288225 289648.0 290155 [,10] [,11] [,12] [1,] 262971 266003.0 267722.0 [2,] 266844 270911.0 268714.0 [3,] 271438 274572.5 271806.5 [4,] 277793 281229.0 275363.0 [5,] 288301 289148.0 275363.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 266703.9 257168.2 258281.1 260841.7 259771.6 265508.8 266068.0 262771.6 [2,] 280390.1 282592.8 285547.9 281921.3 285535.4 281001.2 277992.0 279017.4 [,9] [,10] [,11] [,12] [1,] 263722.6 264375.5 267917.1 267517.7 [2,] 278865.4 278500.5 281227.9 276095.3 $out [1] 321935 289741 $group [1] 1 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(266433, 269352, 273547, 280811, 287595, 263018, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5g8j01242906194.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] [1,] -6267 -1417.0 -4297.0 -513.0 -8138.0 -3113.0 -5547 -2587 -4400 847 [2,] -6267 -1185.0 -3697.0 -513.0 -5384.0 -2125.0 -2090 -2499 -2550 2138 [3,] -4384 1960.5 -1143.5 2355.5 -619.5 -480.5 -536 368 -1987 3234 [4,] -2946 2737.0 355.0 4143.0 1051.0 715.0 1423 845 176 4067 [5,] -2369 3662.0 3078.0 6785.0 2266.0 1139.0 2459 1337 3181 4131 [,11] [,12] [1,] -5866.0 -2146.0 [2,] -3768.0 -1816.0 [3,] -1980.5 -916.5 [4,] 593.0 243.0 [5,] 1719.0 705.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -6526.152 -569.3167 -3757.171 -647.7704 -4770.283 -2312.392 -2801.998 [2,] -2241.848 4490.3167 1470.171 5358.7704 3531.283 1351.392 1729.998 [,8] [,9] [,10] [,11] [,12] [1,] -1788.988 -3745.3580 1989.733 -4793.4859 -2244.6215 [2,] 2524.988 -228.6420 4478.267 832.4859 411.6215 $out [1] -11720 -10598 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6267, -6267, -4384, -2946, -2369, -1417, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/61dnf1242906194.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,] 288225.0 275363.0 270601.0 268175.0 264101.0 262971.0 266433 [2,] 289249.5 279977.0 271229.5 268937.0 267011.5 265098.5 266433 [3,] 289948.0 282333.0 273442.5 270582.5 269868.0 266341.5 266433 [4,] 307181.5 286410.5 273948.0 272540.5 271077.5 268871.0 266433 [5,] 321935.0 290304.0 276663.0 274027.0 271322.0 270223.0 266433 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 281769.1 279398.6 272202.6 268938.9 268013.5 264620.8 266433 [2,] 298126.9 285267.4 274682.4 272226.1 271722.5 268062.2 266433 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(288225, 289249.5, 289948, 307181.5, 321935, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7eui11242906194.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,] 273130.8 269880.5 271980.5 [2,] 274572.7 271337.8 273677.8 [3,] 276177.3 271860.5 274724.2 [4,] 277812.0 272954.2 275565.2 [5,] 280320.1 274572.5 275914.6 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 274699.9 271123.2 273863.3 [2,] 277654.8 272597.8 275585.1 $out [1] 278402.2 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(273130.833333333, 274572.666666667, 276177.333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1f0yn1242906194.ps tmp/1f0yn1242906194.png") > system("convert tmp/27t2m1242906194.ps tmp/27t2m1242906194.png") > system("convert tmp/3b48l1242906194.ps tmp/3b48l1242906194.png") > system("convert tmp/4qgok1242906194.ps tmp/4qgok1242906194.png") > system("convert tmp/5g8j01242906194.ps tmp/5g8j01242906194.png") > system("convert tmp/61dnf1242906194.ps tmp/61dnf1242906194.png") > system("convert tmp/7eui11242906194.ps tmp/7eui11242906194.png") > > > proc.time() user system elapsed 1.872 1.467 2.296