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(9026,9787,9536,9490,9736,9694,9647,9753,10070,10137,9984,9732,9103,9155,9308,9394,9948,10177,10002,9728,10002,10063,10018,9960,10236,10893,10756,10940,10997,10827,10166,10186,10457,10368,10244,10511,10812,10738,10171,9721,9897,9828,9924,10371,10846,10413,10709,10662,10570,10297,10635,10872,10296,10383,10431,10574,10653,10805,10872,10625,10407,10463,10556,10646,10702,11353,11346,11451,11964,12574,13031,13812,14544,14931,14886,16005,17064,15168,16050,15839,15137,14954,15648,15305,15579,16348,15928,16171,15937,15713,15594,15683,16438,17032,17696,17745,19394) > 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] 97 > (np <- floor(n / par1)) [1] 8 > 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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 9026 9103 10236 10812 10570 10407 14544 15579 19394 [2,] 9787 9155 10893 10738 10297 10463 14931 16348 NA [3,] 9536 9308 10756 10171 10635 10556 14886 15928 NA [4,] 9490 9394 10940 9721 10872 10646 16005 16171 NA [5,] 9736 9948 10997 9897 10296 10702 17064 15937 NA [6,] 9694 10177 10827 9828 10383 11353 15168 15713 NA [7,] 9647 10002 10166 9924 10431 11346 16050 15594 NA [8,] 9753 9728 10186 10371 10574 11451 15839 15683 NA [9,] 10070 10002 10457 10846 10653 11964 15137 16438 NA [10,] 10137 10063 10368 10413 10805 12574 14954 17032 NA [11,] 9984 10018 10244 10709 10872 13031 15648 17696 NA [12,] 9732 9960 10511 10662 10625 13812 15305 17745 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 761 52 657 -74 -273 56 387 769 NA [2,] -251 153 -137 -567 338 93 -45 -420 NA [3,] -46 86 184 -450 237 90 1119 243 NA [4,] 246 554 57 176 -576 56 1059 -234 NA [5,] -42 229 -170 -69 87 651 -1896 -224 NA [6,] -47 -175 -661 96 48 -7 882 -119 NA [7,] 106 -274 20 447 143 105 -211 89 NA [8,] 317 274 271 475 79 513 -702 755 NA [9,] 67 61 -89 -433 152 610 -183 594 NA [10,] -153 -45 -124 296 67 457 694 664 NA [11,] -252 -58 267 -47 -247 781 -343 49 NA [12,] -629 276 301 -92 -218 732 274 1649 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/1njry1209397175.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/2s61o1209397175.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/35p3v1209397175.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/4sij71209397175.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,] 9026 9155.0 9308.0 9394.0 9736.0 9694.0 9647.0 9728.0 10002.0 [2,] 10236 10042.0 9853.5 9605.5 9922.5 10002.5 9963.0 9969.5 10263.5 [3,] 10570 10600.5 10595.5 10759.0 10499.0 10605.0 10298.5 10472.5 10749.5 [4,] 14544 12912.0 12821.0 13472.5 13467.0 13260.5 13470.0 13567.0 13550.5 [5,] 19394 16348.0 15928.0 16171.0 17064.0 15713.0 16050.0 15839.0 16438.0 [,10] [,11] [,12] [1,] 10063.0 9984.0 9732.0 [2,] 10252.5 10131.0 10235.5 [3,] 10609.0 10790.5 10643.5 [4,] 13764.0 14339.5 14558.5 [5,] 17032.0 17696.0 17745.0 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8301.12 8997.277 8937.812 8598.838 8518.991 8785.034 8339.44 [2,] 12838.88 12203.723 12253.188 12919.162 12479.009 12424.966 12257.56 [,8] [,9] [,10] [,11] [,12] [1,] 8462.885 8913.335 8647.426 8439.571 8228.61 [2,] 12482.115 12585.665 12570.574 13141.429 13058.39 $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(9026, 10236, 10570, 14544, 19394, 9155, 10042, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5hhlj1209397175.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,] -273.0 -567.0 -46 -576.0 -224.0 -175 -274.0 79.0 -433 -153.0 -343.0 [2,] -11.0 -335.5 20 -89.0 -197.0 -147 -95.5 175.0 -136 -84.5 -249.5 [3,] 221.5 -91.0 137 116.5 -55.5 -27 97.0 295.5 64 181.5 -52.5 [4,] 709.0 123.0 240 400.0 158.0 72 124.5 494.0 373 560.5 158.0 [5,] 769.0 338.0 243 1059.0 651.0 96 447.0 755.0 610 694.0 267.0 [,12] [1,] -629.0 [2,] -155.0 [3,] 275.0 [4,] 516.5 [5,] 732.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -180.7023 -347.1247 14.10484 -156.6624 -253.8081 -149.33654 -25.89516 [2,] 623.7023 165.1247 259.89516 389.6624 142.8081 95.33654 219.89516 [,8] [,9] [,10] [,11] [,12] [1,] 117.3020 -220.3347 -178.8063 -280.1354 -100.1095 [2,] 473.6980 348.3347 541.8063 175.1354 650.1095 $out [1] -450 1119 -1896 -661 882 -702 781 1649 $group [1] 3 3 5 6 6 8 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-273, -11, 221.5, 709, 769, -567, -335.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rs9y1209397175.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] [,9] [1,] 9490.0 9103 10166 9721.0 10296.0 10407.0 14544.0 15579 19394 [2,] 9591.5 9351 10240 9910.5 10407.0 10601.0 14942.5 15698 19394 [3,] 9734.0 9954 10484 10392.0 10599.5 11349.5 15236.5 16054 19394 [4,] 9885.5 10010 10860 10723.5 10729.0 12269.0 15922.0 16735 19394 [5,] 10137.0 10177 10997 10846.0 10872.0 13812.0 17064.0 17745 19394 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9599.905 9653.426 10201.21 10021.19 10452.63 10588.71 14789.74 15581.02 [2,] 9868.095 10254.574 10766.79 10762.81 10746.37 12110.29 15683.26 16526.98 [,9] [1,] 19394 [2,] 19394 $out [1] 9026 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(9490, 9591.5, 9734, 9885.5, 10137, 9103, 9351, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7uv2b1209397175.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,] 11472.00 10298.50 10900.38 [2,] 11643.94 10534.50 11059.81 [3,] 11760.12 10602.75 11245.81 [4,] 12114.46 10696.50 11838.00 [5,] 12294.00 10790.50 12390.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11545.52 10528.86 10890.88 [2,] 11974.73 10676.64 11600.75 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11472, 11643.9375, 11760.125, 12114.4583333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1njry1209397175.ps tmp/1njry1209397175.png") > system("convert tmp/2s61o1209397175.ps tmp/2s61o1209397175.png") > system("convert tmp/35p3v1209397175.ps tmp/35p3v1209397175.png") > system("convert tmp/4sij71209397175.ps tmp/4sij71209397175.png") > system("convert tmp/5hhlj1209397175.ps tmp/5hhlj1209397175.png") > system("convert tmp/6rs9y1209397175.ps tmp/6rs9y1209397175.png") > system("convert tmp/7uv2b1209397175.ps tmp/7uv2b1209397175.png") > > > proc.time() user system elapsed 1.430 0.946 1.752