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(14271,14013,15912,14290,14744,14721,13918,13263,15660,15629,15113,14526,15132,14908,16167,14122,13985,14236,13921,12394,15454,16146,15107,14593,14695,14513,17071,15179,15460,17173,15938,15003,18216,17847,18029,17281,16706,16750,18912,17763,16736,18061,16713,16769,19514,19251,19951,19052,19555,19083,22534,18854,19801,20346,18169,19087,20842,21602,22360,20334,21215,20530,23152,20134,21193,21628,20823,20493,22106,24178,24958,21620) > 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,] 14271 15132 14695 16706 19555 21215 NA [2,] 14013 14908 14513 16750 19083 20530 NA [3,] 15912 16167 17071 18912 22534 23152 NA [4,] 14290 14122 15179 17763 18854 20134 NA [5,] 14744 13985 15460 16736 19801 21193 NA [6,] 14721 14236 17173 18061 20346 21628 NA [7,] 13918 13921 15938 16713 18169 20823 NA [8,] 13263 12394 15003 16769 19087 20493 NA [9,] 15660 15454 18216 19514 20842 22106 NA [10,] 15629 16146 17847 19251 21602 24178 NA [11,] 15113 15107 18029 19951 22360 24958 NA [12,] 14526 14593 17281 19052 20334 21620 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -258 -224 -182 44 -472 -685 NA [2,] 1899 1259 2558 2162 3451 2622 NA [3,] -1622 -2045 -1892 -1149 -3680 -3018 NA [4,] 454 -137 281 -1027 947 1059 NA [5,] -23 251 1713 1325 545 435 NA [6,] -803 -315 -1235 -1348 -2177 -805 NA [7,] -655 -1527 -935 56 918 -330 NA [8,] 2397 3060 3213 2745 1755 1613 NA [9,] -31 692 -369 -263 760 2072 NA [10,] -516 -1039 182 700 758 780 NA [11,] -587 -514 -748 -899 -2026 -3338 NA [12,] 606 102 -575 503 881 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/freestat/rcomp/tmp/1vvph1257504974.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/2ua4y1257504974.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/3zabv1257504974.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/48lhz1257504974.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,] 14271 14013 15912.0 14122 13985 14236 13918.0 12394 15454 15629 15107 [2,] 14695 14513 16167.0 14290 14744 14721 13921.0 13263 15660 16146 15113 [3,] 15919 15829 17991.5 16471 16098 17617 16325.5 15886 18865 18549 18990 [4,] 19555 19083 22534.0 18854 19801 20346 18169.0 19087 20842 21602 22360 [5,] 21215 20530 23152.0 20134 21193 21628 20823.0 20493 22106 24178 24958 [,12] [1,] 14526.0 [2,] 14593.0 [3,] 18166.5 [4,] 20334.0 [5,] 21620.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,] 12784.14 12881.20 13884.58 13527.07 12836.07 13988.69 13585.40 12129.33 [2,] 19053.86 18776.80 22098.42 19414.93 19359.93 21245.31 19065.60 19642.67 [,9] [,10] [,11] [,12] [1,] 15522.44 15029.70 14315.45 14463.37 [2,] 22207.56 22068.30 23664.55 21869.63 $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(14271, 14695, 15919, 19555, 21215, 14013, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5bb4c1257504974.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,] -685 1259 -3680.0 -1027.0 -23 -1348 -1527.0 1613 -369.0 -1039 -3338.0 [2,] -472 1899 -3018.0 -137.0 251 -1348 -935.0 1755 -263.0 -516 -2026.0 [3,] -241 2360 -1968.5 367.5 490 -1020 -492.5 2571 330.5 441 -823.5 [4,] -182 2622 -1622.0 947.0 1325 -803 56.0 3060 760.0 758 -587.0 [5,] 44 3451 -1149.0 1059.0 1713 -315 918.0 3213 2072.0 780 -514.0 [,12] [1,] -575 [2,] 102 [3,] 503 [4,] 606 [5,] 881 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -428.05937 1893.642 -2868.965 -331.715 -202.7647 -1371.5426 -1131.727 [2,] -53.94063 2826.358 -1068.035 1066.715 1182.7647 -668.4574 146.727 [,8] [,9] [,10] [,11] [,12] [1,] 1729.233 -329.3680 -380.7711 -1751.7015 146.8749 [2,] 3412.767 990.3680 1262.7711 104.7015 859.1251 $out [1] -2177 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-685, -472, -241, -182, 44, 1259, 1899, 2360, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6iesq1257504974.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,] 13263.0 12394.0 14513.0 16706.0 18169.0 20134.0 NA [2,] 14142.0 14053.5 15091.0 16743.0 19085.0 20676.5 NA [3,] 14623.5 14750.5 16504.5 17912.0 20067.5 21417.5 NA [4,] 15371.0 15293.0 17564.0 19151.5 21222.0 22629.0 NA [5,] 15912.0 16167.0 18216.0 19951.0 22534.0 24958.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14062.94 14185.16 15376.55 16813.47 19092.8 20526.95 NA [2,] 15184.06 15315.84 17632.45 19010.53 21042.2 22308.05 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(13263, 14142, 14623.5, 15371, 15912, 12394, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7ydyt1257504974.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,] 16168.17 15829.00 16102.75 [2,] 16678.25 16008.50 16551.25 [3,] 17340.33 17044.00 17266.62 [4,] 18795.00 18357.75 18598.62 [5,] 19253.00 18990.00 19010.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16374.87 15972.49 16332.80 [2,] 18305.80 18115.51 18200.45 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16168.1666666667, 16678.25, 17340.3333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1vvph1257504974.ps tmp/1vvph1257504974.png") > system("convert tmp/2ua4y1257504974.ps tmp/2ua4y1257504974.png") > system("convert tmp/3zabv1257504974.ps tmp/3zabv1257504974.png") > system("convert tmp/48lhz1257504974.ps tmp/48lhz1257504974.png") > system("convert tmp/5bb4c1257504974.ps tmp/5bb4c1257504974.png") > system("convert tmp/6iesq1257504974.ps tmp/6iesq1257504974.png") > system("convert tmp/7ydyt1257504974.ps tmp/7ydyt1257504974.png") > > > proc.time() user system elapsed 1.937 1.541 2.265