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(792108,472123,272128,992139,642162,352145,492169,92174,462193,92207,792222,72225,782230,52241,332266,902266,402287,812304,532313,802330,342322,222320,42314,252298,892323,392342,772330,982344,592342,662360,882362,942373,222371,632404,782475,372472,822461,142441,142435,742425,672393,302390,862379,772372,302370,452359,112353,442320,512322,192322,292303,962280,322321,362301,62288,812271,32259,72407,332399,712416,162432,652423,272420,642433,512435,722436,292453,812469,102444,122438,42476,702562) > 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,] 792108 782230 892323 822461 512322 162432 NA [2,] 472123 52241 392342 142441 192322 652423 NA [3,] 272128 332266 772330 142435 292303 272420 NA [4,] 992139 902266 982344 742425 962280 642433 NA [5,] 642162 402287 592342 672393 322321 512435 NA [6,] 352145 812304 662360 302390 362301 722436 NA [7,] 492169 532313 882362 862379 62288 292453 NA [8,] 92174 802330 942373 772372 812271 812469 NA [9,] 462193 342322 222371 302370 32259 102444 NA [10,] 92207 222320 632404 452359 72407 122438 NA [11,] 792222 42314 782475 112353 332399 42476 NA [12,] 72225 252298 372472 442320 712416 702562 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -319985 -729989 -499981 -680020 -320000 489991 NA [2,] -199995 280025 379988 -6 99981 -380003 NA [3,] 720011 570000 210014 599990 669977 370013 NA [4,] -349977 -499979 -390002 -70032 -639959 -129998 NA [5,] -290017 410017 70018 -370003 39980 210001 NA [6,] 140024 -279991 220002 559989 -300013 -429983 NA [7,] -399995 270017 60011 -90007 749983 520016 NA [8,] 370019 -460008 -720002 -470002 -780012 -710025 NA [9,] -369986 -120002 410033 149989 40148 19994 NA [10,] 700015 -180006 150071 -340006 259992 -79962 NA [11,] -719997 209984 -410003 329967 380017 660086 NA [12,] 710005 640025 449989 70002 -549984 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/1v0mz1272456815.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/2v0mz1272456815.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/3v0mz1272456815.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/4orlk1272456815.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,] 162432 52241 272128.0 642433 322321.0 302390.0 62288 772372.0 32259.0 [2,] 512322 142441 272128.0 742425 402287.0 352145.0 292453 772372.0 102444.0 [3,] 787169 292332 282361.5 932273 552388.5 512330.5 512241 807300.5 262370.5 [4,] 822461 472123 332266.0 982344 642162.0 722436.0 862379 812469.0 342322.0 [5,] 892323 652423 332266.0 992139 672393.0 812304.0 882362 812469.0 462193.0 [,10] [,11] [,12] [1,] 72407 42314 72225 [2,] 92207 42476 252298 [3,] 172379 222376 407396 [4,] 452359 782475 702562 [5,] 632404 792222 712416 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 587119.3 79676.46 243570.5 777517.5 397661.4 273480.8 144620.3 781436.6 [2,] 987218.7 504987.54 321152.5 1087028.5 707115.6 751180.2 879861.7 833164.4 [,9] [,10] [,11] [,12] [1,] 107641.4 -59930.67 -254947.3 116961.2 [2,] 417099.6 404688.67 699699.3 697830.8 $out [1] 772330 142435 92174 942373 $group [1] 3 3 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(162432, 512322, 787169, 822461, 892323, 52241, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5orlk1272456815.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] [1,] -729989.0 -380003.0 210014 -639959.0 -370003 -429983.0 -399995 -780012.0 [2,] -680020.0 -199995.0 370013 -499979.0 -290017 -300013.0 -90007 -720002.0 [3,] -409990.5 49987.5 584995 -369989.5 54999 -69983.5 165014 -590013.5 [4,] -319985.0 280025.0 669977 -129998.0 210001 220002.0 520016 -460008.0 [5,] -319985.0 379988.0 720011 -70032.0 410017 559989.0 749983 -460008.0 [,9] [,10] [,11] [,12] [1,] -369986 -340006.0 -719997.0 -549984 [2,] -120002 -180006.0 -410003.0 70002 [3,] 30071 35054.5 269975.5 449989 [4,] 149989 259992.0 380017.0 640025 [5,] 410033 700015.0 660086.0 710005 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -642224.7 -259640.9 391508.5 -608639.2 -267528.8 -405410.0 -228470.5 [2,] -177756.3 359615.9 778481.5 -131339.8 377526.8 265443.0 558498.5 [,8] [,9] [,10] [,11] [,12] [1,] -757718 -144081.9 -248758.4 -239612.9 47212.18 [2,] -422309 204223.9 318867.4 779563.9 852765.82 $out [1] 489991 370019 $group [1] 1 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-729989, -680020, -409990.5, -319985, -319985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zi3n1272456815.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,] 72225.0 42314.0 222371.0 112353.0 32259.0 42476.0 NA [2,] 182167.5 237309.0 492342.0 222405.5 132364.5 142435.0 NA [3,] 467158.0 372304.5 717345.0 447339.5 327360.0 402444.0 NA [4,] 717135.0 792280.0 887342.5 757398.5 612369.0 677492.5 NA [5,] 992139.0 902266.0 982344.0 862379.0 962280.0 812469.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 223155.7 119178.5 537182.6 203325.6 108426.7 158400.7 NA [2,] 711160.3 625430.5 897507.4 691353.4 546293.3 646487.3 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(72225, 182167.5, 467158, 717135, 992139, 42314, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7zi3n1272456815.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,] 243993.2 172379.0 232379.9 [2,] 332314.5 272366.0 300391.3 [3,] 473188.1 459818.5 494843.5 [4,] 598151.0 669778.8 629229.1 [5,] 870647.8 932273.0 879856.6 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 351938.3 278555.9 344858.4 [2,] 594437.9 641081.1 644828.6 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(243993.166666667, 332314.5, 473188.083333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1v0mz1272456815.ps tmp/1v0mz1272456815.png",intern=TRUE)) character(0) > try(system("convert tmp/2v0mz1272456815.ps tmp/2v0mz1272456815.png",intern=TRUE)) character(0) > try(system("convert tmp/3v0mz1272456815.ps tmp/3v0mz1272456815.png",intern=TRUE)) character(0) > try(system("convert tmp/4orlk1272456815.ps tmp/4orlk1272456815.png",intern=TRUE)) character(0) > try(system("convert tmp/5orlk1272456815.ps tmp/5orlk1272456815.png",intern=TRUE)) character(0) > try(system("convert tmp/6zi3n1272456815.ps tmp/6zi3n1272456815.png",intern=TRUE)) character(0) > try(system("convert tmp/7zi3n1272456815.ps tmp/7zi3n1272456815.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.189 0.943 1.580