R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(13328,12873,14000,13477,14237,13674,13529,14058,12975,14326,14008,16193,14483,14011,15057,14884,15414,14440,14900,15074,14442,15307,14938,17193,15528,14765,15838,15723,16150,15486,15986,15983,15692,16490,15686,18897,16316,15636,17163,16534,16518,16375,16290,16352,15943,16362,16393,19051,16747,16320,17910,16961,17480,17049,16879,17473,16998,17307,17418,20169,17871,17226,19062,17804,19100,18522,18060,18869,18127,18871,18890,21263,19547,18450,20254,19240,20216,19420,19415,20018,18652,19978,19509,21971) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13328 14483 15528 16316 16747 17871 19547 NA [2,] 12873 14011 14765 15636 16320 17226 18450 NA [3,] 14000 15057 15838 17163 17910 19062 20254 NA [4,] 13477 14884 15723 16534 16961 17804 19240 NA [5,] 14237 15414 16150 16518 17480 19100 20216 NA [6,] 13674 14440 15486 16375 17049 18522 19420 NA [7,] 13529 14900 15986 16290 16879 18060 19415 NA [8,] 14058 15074 15983 16352 17473 18869 20018 NA [9,] 12975 14442 15692 15943 16998 18127 18652 NA [10,] 14326 15307 16490 16362 17307 18871 19978 NA [11,] 14008 14938 15686 16393 17418 18890 19509 NA [12,] 16193 17193 18897 19051 20169 21263 21971 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -455 -472 -763 -680 -427 -645 -1097 NA [2,] 1127 1046 1073 1527 1590 1836 1804 NA [3,] -523 -173 -115 -629 -949 -1258 -1014 NA [4,] 760 530 427 -16 519 1296 976 NA [5,] -563 -974 -664 -143 -431 -578 -796 NA [6,] -145 460 500 -85 -170 -462 -5 NA [7,] 529 174 -3 62 594 809 603 NA [8,] -1083 -632 -291 -409 -475 -742 -1366 NA [9,] 1351 865 798 419 309 744 1326 NA [10,] -318 -369 -804 31 111 19 -469 NA [11,] 2185 2255 3211 2658 2751 2373 2462 NA [12,] -1710 -1665 -2581 -2304 -2298 -1716 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/1ry5f1286218993.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/2ry5f1286218993.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/3ry5f1286218993.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/427n01286218993.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,] 13328.0 12873 14000.0 13477.0 14237 13674.0 13529.0 14058.0 12975.0 [2,] 15005.5 14388 15447.5 15303.5 15782 14963.0 15443.0 15528.5 15067.0 [3,] 16316.0 15636 17163.0 16534.0 16518 16375.0 16290.0 16352.0 15943.0 [4,] 17309.0 16773 18486.0 17382.5 18290 17785.5 17469.5 18171.0 17562.5 [5,] 19547.0 18450 20254.0 19240.0 20216 19420.0 19415.0 20018.0 18652.0 [,10] [,11] [,12] [1,] 14326.0 14008 16193 [2,] 15834.5 15312 18045 [3,] 16490.0 16393 19051 [4,] 18089.0 18154 20716 [5,] 19978.0 19509 21971 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14940.39 14211.72 15348.46 15292.45 15020.26 14689.45 15079.81 14773.94 [2,] 17691.61 17060.28 18977.54 17775.55 18015.74 18060.55 17500.19 17930.06 [,9] [,10] [,11] [,12] [1,] 14452.73 15143.65 14695.80 17455.92 [2,] 17433.27 17836.35 18090.20 20646.08 $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(13328, 15005.5, 16316, 17309, 19547, 12873, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/527n01286218993.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,] -1097.0 1046 -1258.0 -16 -974 -462.0 -3.0 -1366.0 309.0 -804 2185.0 [2,] -721.5 1100 -981.5 473 -730 -157.5 118.0 -912.5 581.5 -419 2314.0 [3,] -645.0 1527 -629.0 530 -578 -85.0 529.0 -632.0 798.0 -318 2462.0 [4,] -463.5 1697 -348.0 868 -497 227.5 598.5 -442.0 1095.5 25 2704.5 [5,] -427.0 1836 -115.0 1296 -431 500.0 809.0 -291.0 1351.0 111 3211.0 [,12] [1,] -2581 [2,] -2304 [3,] -2007 [4,] -1710 [5,] -1665 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -799.0734 1170.481 -1007.316 294.1124 -717.1438 -314.9158 242.0532 [2,] -490.9266 1883.519 -250.684 765.8876 -438.8562 144.9158 815.9468 [,8] [,9] [,10] [,11] [,12] [1,] -912.975 491.0475 -583.14964 2228.800 -2390.149 [2,] -351.025 1104.9525 -52.85036 2695.200 -1623.851 $out [1] -143 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1097, -721.5, -645, -463.5, -427, 1046, 1100, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vh4l1286218993.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,] 12873.0 14011.0 15486.0 16290.0 16320.0 17226.0 18450.0 NA [2,] 13402.5 14462.5 15607.0 16303.0 16920.0 17965.5 19327.5 NA [3,] 13837.0 14919.0 15780.5 16368.5 17178.0 18695.5 19528.0 NA [4,] 14147.5 15190.5 16068.0 16526.0 17476.5 18976.0 20117.0 NA [5,] 14326.0 15414.0 16490.0 16534.0 17910.0 19100.0 20254.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13497.2 14586.95 15570.23 16266.79 16924.18 18234.60 19167.90 NA [2,] 14176.8 15251.05 15990.77 16470.21 17431.82 19156.40 19888.10 NA $out [1] 16193 17193 14765 18897 15636 17163 15943 19051 20169 21263 21971 $group [1] 1 2 3 3 4 4 4 4 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(12873, 13402.5, 13837, 14147.5, 14326, 14011, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7vh4l1286218993.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,] 15611.57 16290 15580.50 [2,] 16317.36 16303 16328.88 [3,] 16564.36 16384 16594.62 [4,] 16982.57 16526 16964.25 [5,] 17040.57 16534 17036.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16260.95 16282.29 16304.83 [2,] 16867.77 16485.71 16884.42 $out [1] 19248.14 15636.00 17163.00 15943.00 19051.00 19380.50 $group [1] 1 2 2 2 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15611.5714285714, 16317.3571428571, 16564.3571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ry5f1286218993.ps tmp/1ry5f1286218993.png",intern=TRUE)) character(0) > try(system("convert tmp/2ry5f1286218993.ps tmp/2ry5f1286218993.png",intern=TRUE)) character(0) > try(system("convert tmp/3ry5f1286218993.ps tmp/3ry5f1286218993.png",intern=TRUE)) character(0) > try(system("convert tmp/427n01286218993.ps tmp/427n01286218993.png",intern=TRUE)) character(0) > try(system("convert tmp/527n01286218993.ps tmp/527n01286218993.png",intern=TRUE)) character(0) > try(system("convert tmp/6vh4l1286218993.ps tmp/6vh4l1286218993.png",intern=TRUE)) character(0) > try(system("convert tmp/7vh4l1286218993.ps tmp/7vh4l1286218993.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.180 0.915 1.676