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(30811,29877,28303,27605,26074,26112,32350,35804,36574,34486,32158,30965,30505,29629,28169,26972,25752,25027,31530,34705,35223,33471,29239,27954,27727,27314,26576,25775,24669,24480,30834,33218,33783,32546,30661,30070,29722,29075,28136,27315,26125,26057,32601,34214,35232,33565,31931,31779,31626,31230,29574,28312,27186,27397,33387,34996,36251,34284,32349,30991,29916,29067,27978,26719,25544,25703,31703,33733,35121,32714,31111,29977,30375,29323,28193,27222,26904,27952,33512,36215,36856,35341,32624,30885,31108,30267,28645,28474,25805,24756,30437,33177,33069,31342,28912,28373,28599,27884,25727,25393,23147,23164,29286,31008) > 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] 104 > (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 9 9 9 9 9 9 9 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 30811 30505 27727 29722 31626 29916 30375 31108 28599 [2,] 29877 29629 27314 29075 31230 29067 29323 30267 27884 [3,] 28303 28169 26576 28136 29574 27978 28193 28645 25727 [4,] 27605 26972 25775 27315 28312 26719 27222 28474 25393 [5,] 26074 25752 24669 26125 27186 25544 26904 25805 23147 [6,] 26112 25027 24480 26057 27397 25703 27952 24756 23164 [7,] 32350 31530 30834 32601 33387 31703 33512 30437 29286 [8,] 35804 34705 33218 34214 34996 33733 36215 33177 31008 [9,] 36574 35223 33783 35232 36251 35121 36856 33069 NA [10,] 34486 33471 32546 33565 34284 32714 35341 31342 NA [11,] 32158 29239 30661 31931 32349 31111 32624 28912 NA [12,] 30965 27954 30070 31779 30991 29977 30885 28373 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -934 -876 -413 -647 -396 -849 -1052 -841 -715 [2,] -1574 -1460 -738 -939 -1656 -1089 -1130 -1622 -2157 [3,] -698 -1197 -801 -821 -1262 -1259 -971 -171 -334 [4,] -1531 -1220 -1106 -1190 -1126 -1175 -318 -2669 -2246 [5,] 38 -725 -189 -68 211 159 1048 -1049 17 [6,] 6238 6503 6354 6544 5990 6000 5560 5681 6122 [7,] 3454 3175 2384 1613 1609 2030 2703 2740 1722 [8,] 770 518 565 1018 1255 1388 641 -108 NA [9,] -2088 -1752 -1237 -1667 -1967 -2407 -1515 -1727 NA [10,] -2328 -4232 -1885 -1634 -1935 -1603 -2717 -2430 NA [11,] -1193 -1285 -591 -152 -1358 -1134 -1739 -539 NA [12,] -460 -227 -348 -153 -1075 398 223 226 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/freestat/rcomp/tmp/1basl1229080818.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/freestat/rcomp/tmp/2ou151229080818.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/freestat/rcomp/tmp/3gqsj1229080818.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/freestat/rcomp/tmp/4chv91229080818.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,] 28599 27884 27978 25393 25544 23164 29286 31008 33069.0 31342 28912.0 [2,] 29722 29067 27978 26719 25544 24756 30834 33218 34452.0 32630 29950.0 [3,] 30375 29323 28169 27222 25805 25703 31703 34214 35227.5 33518 31521.0 [4,] 30811 29877 28303 27605 26125 26112 32601 34996 36412.5 34385 32253.5 [5,] 31626 30267 28645 28474 26904 27952 33512 36215 36856.0 35341 32624.0 [,12] [1,] 27954.0 [2,] 29175.0 [3,] 30477.5 [4,] 30978.0 [5,] 31779.0 $n [1] 9 9 9 9 9 9 9 9 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 29801.46 28896.4 27997.83 26755.37 25499.01 24988.84 30772.38 33277.59 [2,] 30948.54 29749.6 28340.17 27688.63 26110.99 26417.16 32633.62 35150.41 [,9] [,10] [,11] [,12] [1,] 34132.34 32537.63 30234.23 29470.32 [2,] 36322.66 34498.37 32807.77 31484.68 $out [1] 27727 27314 31230 26576 29574 25727 24669 27186 23147 $group [1] 1 2 2 3 3 3 5 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(28599, 29722, 30375, 30811, 31626, 27884, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5a7dx1229080818.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,] -1052 -2157 -1262 -1531 -189 5560 1609 -108.0 -2407.0 -2717.0 -1739.0 [2,] -876 -1622 -1197 -1531 -189 5990 1722 541.5 -2027.5 -2573.5 -1321.5 [3,] -841 -1460 -821 -1190 17 6122 2384 705.5 -1739.5 -2131.5 -1163.5 [4,] -647 -1089 -698 -1126 159 6354 2740 1136.5 -1591.0 -1759.5 -565.0 [5,] -396 -738 -171 -1106 211 6544 3454 1388.0 -1237.0 -1603.0 -152.0 [,12] [1,] -1075.0 [2,] -404.0 [3,] -190.0 [4,] 224.5 [5,] 398.0 $n [1] 9 9 9 9 9 9 9 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -961.6067 -1740.713 -1083.8067 -1403.3 -166.28 5930.293 1847.853 373.1245 [2,] -720.3933 -1179.287 -558.1933 -976.7 200.28 6313.707 2920.147 1037.8755 [,9] [,10] [,11] [,12] [1,] -1983.335 -2586.212 -1586.0918 -541.0891 [2,] -1495.665 -1676.788 -740.9082 161.0891 $out [1] -318 -2669 -2246 -725 1048 -1049 -4232 $group [1] 4 4 4 5 5 5 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1052, -876, -841, -647, -396, -2157, -1622, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6m17j1229080818.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,] 26074 25027.0 24480.0 26057.0 27186.0 25544.0 26904.0 24756.0 23147.0 [2,] 27954 27463.0 26175.5 27725.5 28943.0 27348.5 28072.5 28423.5 24278.5 [3,] 30888 29434.0 28898.5 30750.5 31428.0 29946.5 30630.0 29589.5 26805.5 [4,] 33418 32500.5 31690.0 33083.0 33835.5 32208.5 34426.5 31225.0 28942.5 [5,] 36574 35223.0 33783.0 35232.0 36251.0 35121.0 36856.0 33177.0 31008.0 $n [1] 12 12 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 28395.83 27136.36 26383.3 28306.91 29196.5 27729.82 27731.9 28311.72 [2,] 33380.17 31731.64 31413.7 33194.09 33659.5 32163.18 33528.1 30867.28 [,9] [1,] 24200.12 [2,] 29410.88 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(26074, 27954, 30888, 33418, 36574, 25027, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7m9ym1229080818.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,] 25627.56 25703.00 25434.00 [2,] 27504.89 27695.50 27651.25 [3,] 30083.74 30426.25 30270.12 [4,] 32603.20 32610.50 32610.38 [5,] 35263.62 35227.50 35559.12 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 27758.36 28184.49 28008.23 [2,] 32409.11 32668.01 32532.02 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(25627.5555555556, 27504.8888888889, 30083.7361111111, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1basl1229080818.ps tmp/1basl1229080818.png") > system("convert tmp/2ou151229080818.ps tmp/2ou151229080818.png") > system("convert tmp/3gqsj1229080818.ps tmp/3gqsj1229080818.png") > system("convert tmp/4chv91229080818.ps tmp/4chv91229080818.png") > system("convert tmp/5a7dx1229080818.ps tmp/5a7dx1229080818.png") > system("convert tmp/6m17j1229080818.ps tmp/6m17j1229080818.png") > system("convert tmp/7m9ym1229080818.ps tmp/7m9ym1229080818.png") > > > proc.time() user system elapsed 1.882 1.473 2.245