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(266433,267722,266003,262971,265521,264676,270223,269508,268457,265814,266680,263018,269285,269829,270911,266844,271244,269907,271296,270157,271322,267179,264101,265518,269419,268714,272482,268351,268175,270674,272764,272599,270333,270846,270491,269160,274027,273784,276663,274525,271344,271115,270798,273911,273985,271917,273338,270601,273547,275363,281229,277793,279913,282500,280041,282166,290304,283519,287816,285226,287595,289741,289148,288301,290155,289648,288225,289351,294735,305333,309030,310215) > 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,] 266433 269285 269419 274027 273547 287595 NA [2,] 267722 269829 268714 273784 275363 289741 NA [3,] 266003 270911 272482 276663 281229 289148 NA [4,] 262971 266844 268351 274525 277793 288301 NA [5,] 265521 271244 268175 271344 279913 290155 NA [6,] 264676 269907 270674 271115 282500 289648 NA [7,] 270223 271296 272764 270798 280041 288225 NA [8,] 269508 270157 272599 273911 282166 289351 NA [9,] 268457 271322 270333 273985 290304 294735 NA [10,] 265814 267179 270846 271917 283519 305333 NA [11,] 266680 264101 270491 273338 287816 309030 NA [12,] 263018 265518 269160 270601 285226 310215 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1289 544 -705 -243 1816 2146 NA [2,] -1719 1082 3768 2879 5866 -593 NA [3,] -3032 -4067 -4131 -2138 -3436 -847 NA [4,] 2550 4400 -176 -3181 2120 1854 NA [5,] -845 -1337 2499 -229 2587 -507 NA [6,] 5547 1389 2090 -317 -2459 -1423 NA [7,] -715 -1139 -165 3113 2125 1126 NA [8,] -1051 1165 -2266 74 8138 5384 NA [9,] -2643 -4143 513 -2068 -6785 10598 NA [10,] 866 -3078 -355 1421 4297 3697 NA [11,] -3662 1417 -1331 -2737 -2590 1185 NA [12,] 6267 3901 4867 2946 2369 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/1n2pt1244310984.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/266h91244310984.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/3bcp41244310984.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/4pzmo1244310984.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 267722.0 266003.0 262971 265521 264676.0 270223 269508 268457.0 [2,] 269285 268714.0 270911.0 266844 268175 269907.0 270798 270157 270333.0 [3,] 271483 271806.5 274572.5 271438 271294 270894.5 272030 273255 272653.5 [4,] 274027 275363.0 281229.0 277793 279913 282500.0 280041 282166 290304.0 [5,] 274027 275363.0 289148.0 288301 290155 289648.0 288225 289351 294735.0 [,10] [,11] [,12] [1,] 265814.0 264101.0 263018.0 [2,] 267179.0 266680.0 265518.0 [3,] 271381.5 271914.5 269880.5 [4,] 283519.0 287816.0 285226.0 [5,] 305333.0 309030.0 310215.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 268424.3 267517.7 267917.1 264375.5 263722.6 262771.6 266068.0 265508.8 [2,] 274541.7 276095.3 281227.9 278500.5 278865.4 279017.4 277992.0 281001.2 [,9] [,10] [,11] [,12] [1,] 259771.6 260841.7 258281.1 257168.2 [2,] 285535.4 281921.3 285547.9 282592.8 $out [1] 287595 289741 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(266433, 269285, 271483, 274027, 274027, 267722, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55oja1244310984.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,] -705.0 -1719.0 -4131 -3181 -1337 -2459 -1139.0 -2266.0 -6785.0 -3078.0 [2,] -243.0 -593.0 -4067 -176 -845 -1423 -715.0 -1051.0 -4143.0 -355.0 [3,] 916.5 1980.5 -3234 1987 -368 536 480.5 619.5 -2355.5 1143.5 [4,] 1816.0 3768.0 -2138 2550 2499 2090 2125.0 5384.0 513.0 3697.0 [5,] 2146.0 5866.0 -847 4400 2587 5547 3113.0 8138.0 513.0 4297.0 [,11] [,12] [1,] -3662.0 2369 [2,] -2737.0 2946 [3,] -1960.5 3901 [4,] 1185.0 4867 [5,] 1417.0 6267 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -411.6215 -832.4859 -4478.267 228.6420 -2524.988 -1729.998 -1351.392 [2,] 2244.6215 4793.4859 -1989.733 3745.3580 1788.988 2801.998 2312.392 [,8] [,9] [,10] [,11] [,12] [1,] -3531.283 -5358.7704 -1470.171 -4490.3167 2543.626 [2,] 4770.283 647.7704 3757.171 569.3167 5258.374 $out [1] 10598 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-705, -243, 916.5, 1816, 2146, -1719, -593, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6aq5v1244310984.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,] 262971.0 264101.0 268175 270601.0 273547.0 287595.0 NA [2,] 265098.5 267011.5 268937 271229.5 278853.0 288724.5 NA [3,] 266218.0 269868.0 270412 273561.0 281697.5 289694.5 NA [4,] 268089.5 271077.5 271664 274006.0 284372.5 300034.0 NA [5,] 270223.0 271322.0 272764 276663.0 290304.0 310215.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 264853.8 268013.5 269168.2 272294.6 279180 284536.2 NA [2,] 267582.2 271722.5 271655.8 274827.4 284215 294852.8 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(262971, 265098.5, 266218, 268089.5, 270223, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7bew11244310984.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 271612.8 [2,] 274292.1 271337.8 272727.4 [3,] 275815.2 271644.8 274464.6 [4,] 277362.2 272341.8 275565.2 [5,] 278576.0 273255.0 278402.2 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 274415.0 271186.8 273170.3 [2,] 277215.5 272102.7 275759.0 $out [1] 274572.5 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(273130.833333333, 274292.083333333, 275815.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1n2pt1244310984.ps tmp/1n2pt1244310984.png") > system("convert tmp/266h91244310984.ps tmp/266h91244310984.png") > system("convert tmp/3bcp41244310984.ps tmp/3bcp41244310984.png") > system("convert tmp/4pzmo1244310984.ps tmp/4pzmo1244310984.png") > system("convert tmp/55oja1244310984.ps tmp/55oja1244310984.png") > system("convert tmp/6aq5v1244310984.ps tmp/6aq5v1244310984.png") > system("convert tmp/7bew11244310984.ps tmp/7bew11244310984.png") > > > proc.time() user system elapsed 1.222 0.979 2.074