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(93803,90684,87251,83606,79695,75858,89756,98707,89871,84625,81979,84525,85826,82652,81514,77360,74095,71637,84186,92713,81321,76536,73038,74940,74654,71999,68611,67430,65460,63421,76226,84540,74255,70680,67409,67938,70051,68043,67383,67028,65478,65133,78443,85418,84786,83684,80369,82361,83071,81881,80767,78375,76381,76068,94619,99126,93632,91541,90445,91621,93856,91738,89952,89365,87146,88689,108165,113374,106099,103235,98857,101107,102700,101477,99639,96622,94697,95093,112885,121162,113624,111632,106707,108827,108413,106249,104861,102382,100320,100228,117089,121523,114948,112831,107605,108928,101993,102850,99925,101536,99450,98305,110159,109483,106810,96279,91982,90276,90999,86622,83117,80367,77550,77443,92844,92175,84822,81632,78872,81485) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 93803 85826 74654 70051 83071 93856 102700 108413 101993 90999 NA [2,] 90684 82652 71999 68043 81881 91738 101477 106249 102850 86622 NA [3,] 87251 81514 68611 67383 80767 89952 99639 104861 99925 83117 NA [4,] 83606 77360 67430 67028 78375 89365 96622 102382 101536 80367 NA [5,] 79695 74095 65460 65478 76381 87146 94697 100320 99450 77550 NA [6,] 75858 71637 63421 65133 76068 88689 95093 100228 98305 77443 NA [7,] 89756 84186 76226 78443 94619 108165 112885 117089 110159 92844 NA [8,] 98707 92713 84540 85418 99126 113374 121162 121523 109483 92175 NA [9,] 89871 81321 74255 84786 93632 106099 113624 114948 106810 84822 NA [10,] 84625 76536 70680 83684 91541 103235 111632 112831 96279 81632 NA [11,] 81979 73038 67409 80369 90445 98857 106707 107605 91982 78872 NA [12,] 84525 74940 67938 82361 91621 101107 108827 108928 90276 81485 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -3119 -3174 -2655 -2008 -1190 -2118 -1223 -2164 857 -4377 NA [2,] -3433 -1138 -3388 -660 -1114 -1786 -1838 -1388 -2925 -3505 NA [3,] -3645 -4154 -1181 -355 -2392 -587 -3017 -2479 1611 -2750 NA [4,] -3911 -3265 -1970 -1550 -1994 -2219 -1925 -2062 -2086 -2817 NA [5,] -3837 -2458 -2039 -345 -313 1543 396 -92 -1145 -107 NA [6,] 13898 12549 12805 13310 18551 19476 17792 16861 11854 15401 NA [7,] 8951 8527 8314 6975 4507 5209 8277 4434 -676 -669 NA [8,] -8836 -11392 -10285 -632 -5494 -7275 -7538 -6575 -2673 -7353 NA [9,] -5246 -4785 -3575 -1102 -2091 -2864 -1992 -2117 -10531 -3190 NA [10,] -2646 -3498 -3271 -3315 -1096 -4378 -4925 -5226 -4297 -2760 NA [11,] 2546 1902 529 1992 1176 2250 2120 1323 -1706 2613 NA [12,] 1301 -286 2113 710 2235 1593 -414 -6935 723 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/1uke81229164112.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/2mjbh1229164112.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/36x6m1229164112.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/4a65x1229164112.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,] 70051 68043 67383 67028.0 65460.0 63421.0 76226.0 84540.0 74255.0 [2,] 83071 81881 80767 77360.0 74095.0 71637.0 84186.0 92175.0 84786.0 [3,] 92401 88653 85184 81986.5 78622.5 76755.5 93731.5 98916.5 91751.5 [4,] 101993 101477 99639 96622.0 94697.0 95093.0 110159.0 113374.0 106810.0 [5,] 108413 106249 104861 102382.0 100320.0 100228.0 117089.0 121523.0 114948.0 [,10] [,11] [,12] [1,] 70680 67409 67938.0 [2,] 81632 78872 81485.0 [3,] 88083 86212 87400.5 [4,] 103235 98857 101107.0 [5,] 112831 107605 108928.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82946.81 78862.06 75754.8 72362.44 68328.92 65035.95 80754.35 88324.63 [2,] 101855.19 98443.94 94613.2 91610.56 88916.08 88475.05 106708.65 109508.37 [,9] [,10] [,11] [,12] [1,] 80747.43 77289.28 76226.7 77596.57 [2,] 102755.57 98876.72 96197.3 97204.43 $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(70051, 83071, 92401, 101993, 108413, 68043, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5pthc1229164112.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] [1,] -4377 -3505 -4154.0 -3911 -3837 11854.0 -676 -11392 -5246 -5226.0 529 [2,] -3119 -3388 -3017.0 -2817 -2039 12805.0 4434 -8836 -4785 -4378.0 1176 [3,] -2141 -1812 -2435.5 -2074 -329 14649.5 6092 -7314 -3027 -3406.5 1947 [4,] -1223 -1138 -587.0 -1970 -92 17792.0 8314 -5494 -2091 -2760.0 2250 [5,] 857 -660 1611.0 -1550 1543 19476.0 8951 -632 -1102 -1096.0 2613 [,12] [1,] -414 [2,] -286 [3,] 723 [4,] 1593 [5,] 2235 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3088.317 -2936.1897 -3649.625 -2497.195 -1301.7988 12157.80 4153.397 [2,] -1193.683 -687.8103 -1221.375 -1650.805 643.7988 17141.20 8030.603 [,8] [,9] [,10] [,11] [,12] [1,] -8983.796 -4373.030 -4214.917 1410.387 -266.6067 [2,] -5644.204 -1680.970 -2598.083 2483.613 1712.6067 $out [1] -10531 -1706 -6935 $group [1] 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4377, -3119, -2141, -1223, 857, -3505, -3388, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6aag81229164112.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] [,8] [1,] 75858.0 71637.0 63421.0 65133.0 76068.0 87146.0 94697.0 100228.0 [2,] 82792.5 74517.5 67419.5 67205.5 79571.0 89658.5 98130.5 103621.5 [3,] 85938.0 79340.5 69645.5 74247.0 86758.0 96356.5 104703.5 108009.0 [4,] 90277.5 83419.0 74454.5 83022.5 92626.5 104667.0 112258.5 113889.5 [5,] 98707.0 92713.0 84540.0 85418.0 99126.0 113374.0 121162.0 121523.0 [,9] [,10] [,11] [1,] 90276.0 77443.0 NA [2,] 97292.0 79619.5 NA [3,] 100730.5 82374.5 NA [4,] 104830.0 88810.5 NA [5,] 110159.0 92844.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82524.04 75280.47 66436.79 67032.76 80803.3 89511.02 98259.62 103325.7 [2,] 89351.96 83400.53 72854.21 81461.24 92712.7 103201.98 111147.38 112692.3 [,9] [,10] [,11] [1,] 97292.37 78182.42 NA [2,] 104168.63 86566.58 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(75858, 82792.5, 85938, 90277.5, 98707, 71637, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qh581229164112.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,] 81187.50 76755.50 83092.12 [2,] 85354.55 83585.25 87201.50 [3,] 88810.15 87741.75 90388.88 [4,] 93142.15 92076.25 93786.44 [5,] 101822.10 98916.50 102355.38 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 85258.17 83868.95 87385.44 [2,] 92362.13 91614.55 93392.31 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(81187.5, 85354.55, 88810.15, 93142.15, 101822.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uke81229164112.ps tmp/1uke81229164112.png") > system("convert tmp/2mjbh1229164112.ps tmp/2mjbh1229164112.png") > system("convert tmp/36x6m1229164112.ps tmp/36x6m1229164112.png") > system("convert tmp/4a65x1229164112.ps tmp/4a65x1229164112.png") > system("convert tmp/5pthc1229164112.ps tmp/5pthc1229164112.png") > system("convert tmp/6aag81229164112.ps tmp/6aag81229164112.png") > system("convert tmp/7qh581229164112.ps tmp/7qh581229164112.png") > > > proc.time() user system elapsed 1.241 0.987 2.173