R version 2.6.2 (2008-02-08) 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(2301,2512,3145,2741,2548,1987,2281,2016,2434,2637,1831,1851,1839,2609,2417,2394,2372,2717,2998,2538,3007,2475,2175,2465,2279,2323,2746,2601,2486,2718,2646,2551,2712,2606,2365,3533,3509,2912,3599,2719,2869,4085,2686,2545,3071,3388,2652,3190,2884,3295,3818,3226,3953,3810,2877,3515,3708,3450,3360,4098,4374,3703,4257,3487,3659,3904,2957,3320,3420,3500,2791,2919) > 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,] 2301 1839 2279 3509 2884 4374 NA [2,] 2512 2609 2323 2912 3295 3703 NA [3,] 3145 2417 2746 3599 3818 4257 NA [4,] 2741 2394 2601 2719 3226 3487 NA [5,] 2548 2372 2486 2869 3953 3659 NA [6,] 1987 2717 2718 4085 3810 3904 NA [7,] 2281 2998 2646 2686 2877 2957 NA [8,] 2016 2538 2551 2545 3515 3320 NA [9,] 2434 3007 2712 3071 3708 3420 NA [10,] 2637 2475 2606 3388 3450 3500 NA [11,] 1831 2175 2365 2652 3360 2791 NA [12,] 1851 2465 3533 3190 4098 2919 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 211 770 44 -597 411 -671 NA [2,] 633 -192 423 687 523 554 NA [3,] -404 -23 -145 -880 -592 -770 NA [4,] -193 -22 -115 150 727 172 NA [5,] -561 345 232 1216 -143 245 NA [6,] 294 281 -72 -1399 -933 -947 NA [7,] -265 -460 -95 -141 638 363 NA [8,] 418 469 161 526 193 100 NA [9,] 203 -532 -106 317 -258 80 NA [10,] -806 -300 -241 -736 -90 -709 NA [11,] 20 290 1168 538 738 128 NA [12,] -12 -186 -24 -306 276 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/1pal71209332546.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/2vlm81209332546.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/3czhs1209332546.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/48zmp1209332546.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,] 1839.0 2323.0 2417 2394 2372.0 1987 2281.0 2016 2434 2475.0 1831.0 1851.0 [2,] 2279.0 2512.0 2746 2601 2486.0 2717 2646.0 2538 2712 2606.0 2175.0 2465.0 [3,] 2592.5 2760.5 3372 2730 2708.5 3264 2781.5 2548 3039 3012.5 2508.5 3054.5 [4,] 3509.0 3295.0 3818 3226 3659.0 3904 2957.0 3320 3420 3450.0 2791.0 3533.0 [5,] 4374.0 3703.0 4257 3487 3953.0 4085 2998.0 3515 3708 3500.0 3360.0 4098.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,] 1799.110 2255.440 2680.525 2326.855 1951.877 2498.347 2580.895 2043.585 [2,] 3385.890 3265.560 4063.475 3133.145 3465.123 4029.653 2982.105 3052.415 [,9] [,10] [,11] [,12] [1,] 2582.317 2468.093 2111.16 2365.606 [2,] 3495.683 3556.907 2905.84 3743.394 $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(1839, 2279, 2592.5, 3509, 4374, 2323, 2512, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5st871209332546.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,] -671.0 423.0 -880 -193 -561.0 -1399.0 -460 100.0 -532 -806.0 20 -306 [2,] -597.0 423.0 -770 -115 -143.0 -947.0 -265 161.0 -258 -736.0 128 -186 [3,] 127.5 538.5 -498 64 238.5 -502.5 -118 305.5 -13 -504.5 414 -24 [4,] 411.0 633.0 -145 172 345.0 281.0 363 469.0 203 -241.0 738 -12 [5,] 770.0 687.0 -23 172 345.0 294.0 638 526.0 317 -90.0 1168 -12 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -522.6926 403.0432 -901.14519 -121.1243 -76.27576 -1294.5997 -523.0803 [2,] 777.6926 673.9568 -94.85481 249.1243 553.27576 289.5997 287.0803 [,8] [,9] [,10] [,11] [,12] [1,] 106.8301 -310.3599 -823.791 20.53030 -146.94796 [2,] 504.1699 284.3599 -185.209 807.46970 98.94796 $out [1] -192 727 1216 276 $group [1] 2 4 5 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-671, -597, 127.5, 411, 770, 423, 423, 538.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6cmon1209332546.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,] 1831.0 2175 2279.0 2545.0 2877.0 2791.0 NA [2,] 2001.5 2383 2425.5 2702.5 3260.5 3138.5 NA [3,] 2367.5 2470 2603.5 2991.5 3482.5 3493.5 NA [4,] 2592.5 2663 2715.0 3448.5 3814.0 3803.5 NA [5,] 3145.0 3007 2746.0 4085.0 4098.0 4374.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2097.941 2342.29 2471.457 2651.244 3230.045 3190.189 NA [2,] 2637.059 2597.71 2735.543 3331.756 3734.955 3796.811 NA $out [1] 1839 3533 $group [1] 2 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1831, 2001.5, 2367.5, 2592.5, 3145, 2175, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7zb2v1209332546.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,] 2529.000 2508.50 2796.500 [2,] 2804.417 2650.50 2826.188 [3,] 2936.750 2771.00 2924.625 [4,] 3034.000 3046.75 3041.688 [5,] 3330.333 3372.00 3304.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2832.036 2590.268 2826.334 [2,] 3041.464 2951.732 3022.916 $out [1] 2489.375 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2529, 2804.41666666667, 2936.75, 3034, 3330.33333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1pal71209332546.ps tmp/1pal71209332546.png") > system("convert tmp/2vlm81209332546.ps tmp/2vlm81209332546.png") > system("convert tmp/3czhs1209332546.ps tmp/3czhs1209332546.png") > system("convert tmp/48zmp1209332546.ps tmp/48zmp1209332546.png") > system("convert tmp/5st871209332546.ps tmp/5st871209332546.png") > system("convert tmp/6cmon1209332546.ps tmp/6cmon1209332546.png") > system("convert tmp/7zb2v1209332546.ps tmp/7zb2v1209332546.png") > > > proc.time() user system elapsed 1.450 0.970 1.715