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(2815,2672,2755,2721,2946,3036,2282,2212,2922,4301,5764,7312,2541,2475,3031,3266,3776,3230,3028,1759,3595,4474,6838,8357,3113,3006,4047,3523,3937,3986,3260,1573,3528,5211,7614,9254,5375,3088,3718,4514,4520,4539,3663,1643,4739,5428,8314,10651,3633,4292,4154,4121,4647,4753,3965,1723,5048,6922,9858,11331,4016,4276,4968,4677,3523,1821,5222,6872,10803,13916,2639,2899,3370,3740,2927,3986,4217,1738,5221,6424,9842,13076) > 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] 82 > (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] 7 7 7 7 7 7 7 7 7 7 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2815 2541 3113 5375 3633 4016 3370 [2,] 2672 2475 3006 3088 4292 4276 3740 [3,] 2755 3031 4047 3718 4154 4968 2927 [4,] 2721 3266 3523 4514 4121 4677 3986 [5,] 2946 3776 3937 4520 4647 3523 4217 [6,] 3036 3230 3986 4539 4753 1821 1738 [7,] 2282 3028 3260 3663 3965 5222 5221 [8,] 2212 1759 1573 1643 1723 6872 6424 [9,] 2922 3595 3528 4739 5048 10803 9842 [10,] 4301 4474 5211 5428 6922 13916 13076 [11,] 5764 6838 7614 8314 9858 2639 NA [12,] 7312 8357 9254 10651 11331 2899 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -143 -66 -107 -2287 659 260 370 [2,] 83 556 1041 630 -138 692 -813 [3,] -34 235 -524 796 -33 -291 1059 [4,] 225 510 414 6 526 -1154 231 [5,] 90 -546 49 19 106 -1702 -2479 [6,] -754 -202 -726 -876 -788 3401 3483 [7,] -70 -1269 -1687 -2020 -2242 1650 1203 [8,] 710 1836 1955 3096 3325 3931 3418 [9,] 1379 879 1683 689 1874 3113 3234 [10,] 1463 2364 2403 2886 2936 -11277 NA [11,] 1548 1519 1640 2337 1473 260 NA [12,] -4771 -5244 -3879 -7018 -7315 471 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/1ps991209325477.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/2ezi01209325477.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/36z5n1209325477.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/4he641209325477.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] [1,] 2541.0 2475 2755.0 2721.0 2946.0 1738.0 2282 1573 2922.0 4301.0 2639 [2,] 2964.0 2839 2979.0 3394.5 3649.5 2428.5 3144 1683 3561.5 4842.5 5764 [3,] 3370.0 3088 3718.0 3986.0 3937.0 3230.0 3663 1759 4739.0 5428.0 7226 [4,] 3824.5 4008 4100.5 4317.5 4368.5 4262.5 4593 4318 7445.0 9999.0 8314 [5,] 4016.0 4292 4968.0 4677.0 4647.0 4753.0 5222 6872 10803.0 13916.0 9858 [,12] [1,] 2899.0 [2,] 7312.0 [3,] 8805.5 [4,] 10651.0 [5,] 11331.0 $n [1] 7 7 7 7 7 7 7 7 7 7 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2856.123 2389.892 3048.258 3434.799 3507.625 2134.765 2797.681 185.4205 [2,] 3883.877 3786.108 4387.742 4537.201 4366.375 4325.235 4528.319 3332.5795 [,9] [,10] [,11] [,12] [1,] 2419.836 2348.621 5581.168 6651.737 [2,] 7058.164 8507.379 8870.832 10959.263 $out [1] 5375 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2541, 2964, 3370, 3824.5, 4016, 2475, 2839, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58o611209325477.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,] -143 -813.0 -524.0 6.0 -2479.0 -876.0 -2242.0 710.0 689.0 1463.0 [2,] -125 -27.5 -162.5 115.5 -1124.0 -771.0 -1853.5 1895.5 1129.0 1463.0 [3,] -66 556.0 -33.0 231.0 19.0 -726.0 -1269.0 3096.0 1683.0 2383.5 [4,] 315 661.0 515.5 462.0 69.5 1599.5 566.5 3371.5 2493.5 2886.0 [5,] 659 1041.0 1059.0 526.0 106.0 3483.0 1650.0 3931.0 3234.0 2936.0 [,11] [,12] [1,] 1473.0 -7315.0 [2,] 1473.0 -7018.0 [3,] 1533.5 -5007.5 [4,] 1640.0 -3879.0 [5,] 1640.0 471.0 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -328.7609 144.8389 -437.8907 24.07579 -693.739 -2141.6244 -2714.1850 [2,] 196.7609 967.1611 371.8907 437.92421 731.739 689.6244 176.1850 [,8] [,9] [,10] [,11] [,12] [1,] 2214.557 868.1426 1465.619 1425.780 -7032.256 [2,] 3977.443 2497.8574 3301.381 1641.220 -2982.744 $out [1] -2287 -1154 -11277 2337 260 $group [1] 1 4 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-143, -125, -66, 315, 659, -813, -27.5, 556, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kpmy1209325477.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,] 2212.0 1759.0 1573.0 1643.0 1723.0 1821.0 1738.0 [2,] 2696.5 2784.5 3186.5 3690.5 4043.0 3211.0 3370.0 [3,] 2868.5 3248.0 3732.5 4529.5 4469.5 4476.5 4101.5 [4,] 3668.5 4125.0 4629.0 5401.5 5985.0 6047.0 6424.0 [5,] 4301.0 4474.0 5211.0 5428.0 6922.0 6872.0 9842.0 $n [1] 12 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2425.164 2636.589 3074.566 3749.101 3583.741 3182.981 2575.6 [2,] 3311.836 3859.411 4390.434 5309.899 5355.259 5770.019 5627.4 $out [1] 5764 7312 6838 8357 7614 9254 8314 10651 9858 11331 10803 13916 [13] 13076 $group [1] 1 1 2 2 3 3 4 4 5 5 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2212, 2696.5, 2868.5, 3668.5, 4301, 1759, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7y6uo1209325477.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,] 3172.286 1759.0 3000.500 [2,] 3458.000 3300.0 3408.875 [3,] 3817.786 3827.5 3862.250 [4,] 6310.131 5083.5 6294.500 [5,] 8300.667 7226.0 8937.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2516.910 3014.034 2546.097 [2,] 5118.662 4640.966 5178.403 $out [1] 8805.5 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3172.28571428571, 3458, 3817.78571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ps991209325477.ps tmp/1ps991209325477.png") > system("convert tmp/2ezi01209325477.ps tmp/2ezi01209325477.png") > system("convert tmp/36z5n1209325477.ps tmp/36z5n1209325477.png") > system("convert tmp/4he641209325477.ps tmp/4he641209325477.png") > system("convert tmp/58o611209325477.ps tmp/58o611209325477.png") > system("convert tmp/6kpmy1209325477.ps tmp/6kpmy1209325477.png") > system("convert tmp/7y6uo1209325477.ps tmp/7y6uo1209325477.png") > > > proc.time() user system elapsed 2.559 1.616 2.812