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(88827,85874,85211,87130,88620,89563,89056,88542,89504,89428,86040,96240,94423,93028,92285,91685,94260,93858,92437,92980,92099,92803,88551,98334,98329,96455,97109,97687,98512,98673,96028,98014,95580,97838,97760,99913,97588,93942,93656,93365,92881,93120,91063,90930,91946,94624,95484,95862,95530,94574,94677,93845,91533,91214,90922,89563,89945,91850,92505,92437) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 88827 94423 98329 97588 95530 NA [2,] 85874 93028 96455 93942 94574 NA [3,] 85211 92285 97109 93656 94677 NA [4,] 87130 91685 97687 93365 93845 NA [5,] 88620 94260 98512 92881 91533 NA [6,] 89563 93858 98673 93120 91214 NA [7,] 89056 92437 96028 91063 90922 NA [8,] 88542 92980 98014 90930 89563 NA [9,] 89504 92099 95580 91946 89945 NA [10,] 89428 92803 97838 94624 91850 NA [11,] 86040 88551 97760 95484 92505 NA [12,] 96240 98334 99913 95862 92437 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2953 -1395 -1874 -3646 -956 NA [2,] -663 -743 654 -286 103 NA [3,] 1919 -600 578 -291 -832 NA [4,] 1490 2575 825 -484 -2312 NA [5,] 943 -402 161 239 -319 NA [6,] -507 -1421 -2645 -2057 -292 NA [7,] -514 543 1986 -133 -1359 NA [8,] 962 -881 -2434 1016 382 NA [9,] -76 704 2258 2678 1905 NA [10,] -3388 -4252 -78 860 655 NA [11,] 10200 9783 2153 378 -68 NA [12,] -1817 -5 -2325 -332 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/18tgn1229203987.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/2wj511229203987.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/3yxee1229203987.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/4o90m1229203987.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] [,11] [,12] [1,] 94423 93028 92285 91685 88620 89563 89056 88542 89504 89428 86040 92437 [2,] 94423 93028 92285 91685 91533 91214 90922 89563 89945 91850 88551 95862 [3,] 95530 93942 93656 93365 92881 93120 91063 90930 91946 92803 92505 96240 [4,] 97588 94574 94677 93845 94260 93858 92437 92980 92099 94624 95484 98334 [5,] 98329 96455 97109 93845 94260 93858 92437 98014 92099 97838 97760 99913 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93293.62 92849.6 91965.82 91838.75 90954.1 91251.76 89992.5 88515.56 [2,] 97766.38 95034.4 95346.18 94891.25 94807.9 94988.24 92133.5 93344.44 [,9] [,10] [,11] [,12] [1,] 90423.99 90842.9 87606.16 94493.3 [2,] 93468.01 94763.1 97403.84 97986.7 $out [1] 88827 85874 85211 87130 97687 98512 98673 96028 95580 $group [1] 1 2 3 4 4 5 6 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(94423, 94423, 95530, 97588, 98329, 93028, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5n9s11229203987.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,] -3646 -743 -832 -2312 -402 -2645 -1359 -2434 -76 -4252 -68 -2325.0 [2,] -2953 -663 -600 -484 -319 -2057 -514 -881 704 -3388 378 -2071.0 [3,] -1874 -286 -291 825 161 -1421 -133 382 1905 -78 2153 -1074.5 [4,] -1395 103 578 1490 239 -507 543 962 2258 655 9783 -168.5 [5,] -956 654 1919 2575 943 -292 1986 1016 2678 860 10200 -5.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2974.8789 -827.2537 -1123.3718 -569.8234 -233.2814 -2516.2261 -879.8735 [2,] -773.1211 255.2537 541.3718 2219.8234 555.2814 -325.7739 613.8735 [,8] [,9] [,10] [,11] [,12] [1,] -920.2592 806.9475 -2934.774 -4492.549 -2577.475 [2,] 1684.2592 3003.0525 2778.774 8798.549 428.475 $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(-3646, -2953, -1874, -1395, -956, -743, -663, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6iewk1229203987.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,] 85211.0 91685.0 95580.0 90930.0 89563.0 NA [2,] 86585.0 92192.0 96782.0 92413.5 91068.0 NA [3,] 88723.5 92891.5 97799.0 93510.5 92143.5 NA [4,] 89466.0 94059.0 98420.5 95054.0 94209.5 NA [5,] 89563.0 94423.0 99913.0 97588.0 95530.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 87409.46 92039.95 97051.67 92306.15 90710.64 NA [2,] 90037.54 93743.05 98546.33 94714.85 93576.36 NA $out [1] 96240 88551 98334 $group [1] 1 2 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(85211, 86585, 88723.5, 89466, 89563, 91685, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7pm5q1229203987.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,] 91814.8 90930.0 91022.00 [2,] 92036.9 92225.5 91848.50 [3,] 92758.5 93000.5 92830.75 [4,] 93297.1 93799.0 93641.00 [5,] 94939.4 95530.0 96005.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 92183.71 92282.82 92013.18 [2,] 93333.29 93718.18 93648.32 $out [1] 96557.2 96240.0 97098.0 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(91814.8, 92036.9, 92758.5, 93297.1, 94939.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18tgn1229203987.ps tmp/18tgn1229203987.png") > system("convert tmp/2wj511229203987.ps tmp/2wj511229203987.png") > system("convert tmp/3yxee1229203987.ps tmp/3yxee1229203987.png") > system("convert tmp/4o90m1229203987.ps tmp/4o90m1229203987.png") > system("convert tmp/5n9s11229203987.ps tmp/5n9s11229203987.png") > system("convert tmp/6iewk1229203987.ps tmp/6iewk1229203987.png") > system("convert tmp/7pm5q1229203987.ps tmp/7pm5q1229203987.png") > > > proc.time() user system elapsed 1.221 0.962 1.609