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(359640,364080,364080,359640,359640,359640,359640,359640,364080,368520,372960,377400,406780,402050,392590,368940,368940,378400,406780,420970,420970,406780,392590,392590,394250,399000,403750,399000,408500,403750,403750,399000,403750,403750,403750,403750,405450,405450,405450,405450,410220,400680,386370,381600,381600,381600,381600,376830,381420,381420,386310,396090,391200,371640,356970,342300,332520,342300,347190,352080,357130,347070,337010,337010,331980) > 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] 65 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 359640 406780 394250 405450 381420 357130 [2,] 364080 402050 399000 405450 381420 347070 [3,] 364080 392590 403750 405450 386310 337010 [4,] 359640 368940 399000 405450 396090 337010 [5,] 359640 368940 408500 410220 391200 331980 [6,] 359640 378400 403750 400680 371640 NA [7,] 359640 406780 403750 386370 356970 NA [8,] 359640 420970 399000 381600 342300 NA [9,] 364080 420970 403750 381600 332520 NA [10,] 368520 406780 403750 381600 342300 NA [11,] 372960 392590 403750 381600 347190 NA [12,] 377400 392590 403750 376830 352080 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4440 -4730 4750 0 0 -10060 [2,] 0 -9460 4750 0 4890 -10060 [3,] -4440 -23650 -4750 0 9780 0 [4,] 0 0 9500 4770 -4890 -5030 [5,] 0 9460 -4750 -9540 -19560 NA [6,] 0 28380 0 -14310 -14670 NA [7,] 0 14190 -4750 -4770 -14670 NA [8,] 4440 0 4750 0 -9780 NA [9,] 4440 -14190 0 0 9780 NA [10,] 4440 -14190 0 0 4890 NA [11,] 4440 0 0 -4770 4890 NA [12,] 29380 1660 1700 4590 5050 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/18h701261049107.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/2oqar1261049107.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/3n9or1261049107.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/4pqbi1261049107.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,] 357130 347070 337010 337010 331980 359640 356970 342300 332520 342300 [2,] 359640 364080 364080 359640 359640 371640 359640 359640 364080 368520 [3,] 387835 390210 389450 382515 380070 378400 386370 381600 381600 381600 [4,] 405450 402050 403750 399000 408500 400680 403750 399000 403750 403750 [5,] 406780 405450 405450 405450 410220 403750 406780 420970 420970 406780 [,11] [,12] [1,] 347190 376830 [2,] 372960 376830 [3,] 381600 377400 [4,] 392590 392590 [5,] 403750 403750 $n [1] 6 6 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 358286.1 365718.1 363861.6 357126.5 348553.7 357880.4 355202 353788.3 [2,] 417383.9 414701.9 415038.4 407903.5 411586.3 398919.6 417538 409411.7 [,9] [,10] [,11] [,12] [1,] 353569.3 356706.6 367729.5 366264 [2,] 409630.7 406493.4 395470.5 388536 $out [1] 352080 $group [1] 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(357130, 359640, 387835, 405450, 406780, 347070, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5qbci1261049107.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] [,12] [1,] -10060 -10060 -4750 -5030 -19560 -14670 -4770 0 0 0 -4770 1660 [2,] -4730 -9460 -4750 -4890 -9540 -14310 -4770 0 0 0 0 1700 [3,] 0 0 -2220 0 -4750 0 -4750 0 0 0 0 4590 [4,] 4440 4750 0 4770 0 0 0 4440 4440 4440 4440 5050 [5,] 4750 4890 0 9500 9460 0 0 4750 9780 4890 4890 5050 $n [1] 6 6 6 6 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5914.946 -9165.909 -5283.9034 -6231.012 -11490.94 -10111.41 -8120.47 [2,] 5914.946 9165.909 843.9034 6231.012 1990.94 10111.41 -1379.53 [,8] [,9] [,10] [,11] [,12] [1,] -3137.293 -3137.293 -3137.293 -3137.293 2222.898 [2,] 3137.293 3137.293 3137.293 3137.293 6957.102 $out [1] -23650 9780 28380 14190 -14670 -9780 -14190 -14190 29380 $group [1] 3 3 6 7 7 8 9 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-10060, -4730, 0, 4440, 4750, -10060, -9460, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/62om51261049107.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] [1,] 359640 368940 394250 376830 332520 331980 [2,] 359640 385495 399000 381600 344745 337010 [3,] 361860 397320 403750 393525 364305 337010 [4,] 366300 406780 403750 405450 383865 347070 [5,] 372960 420970 408500 410220 396090 357130 $n [1] 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 358822.3 387611.8 401583.5 382646.9 346462.1 329901.6 [2,] 364897.7 407028.2 405916.5 404403.1 382147.9 344118.4 $out [1] 377400 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(359640, 359640, 361860, 366300, 372960, 368940, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rn2b1261049107.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,] 377688.3 377400.0 379320.0 [2,] 380074.0 380835.0 382235.0 [3,] 380646.0 381600.0 383891.2 [4,] 382762.0 387102.5 385075.0 [5,] 384111.7 390210.0 386160.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 379420 378741.4 382595.9 [2,] 381872 384458.6 385186.6 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(377688.333333333, 380074, 380646, 382762, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18h701261049107.ps tmp/18h701261049107.png",intern=TRUE)) character(0) > try(system("convert tmp/2oqar1261049107.ps tmp/2oqar1261049107.png",intern=TRUE)) character(0) > try(system("convert tmp/3n9or1261049107.ps tmp/3n9or1261049107.png",intern=TRUE)) character(0) > try(system("convert tmp/4pqbi1261049107.ps tmp/4pqbi1261049107.png",intern=TRUE)) character(0) > try(system("convert tmp/5qbci1261049107.ps tmp/5qbci1261049107.png",intern=TRUE)) character(0) > try(system("convert tmp/62om51261049107.ps tmp/62om51261049107.png",intern=TRUE)) character(0) > try(system("convert tmp/7rn2b1261049107.ps tmp/7rn2b1261049107.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.198 0.947 1.583