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(22631,23956,23284,24334,24319,25252,24427,25434,25496,26681,25624,26706,25834,26513,26005,27158,26521,27652,26566,27597,27605,28621,27090,27652,28440,29076,27326,28477,29303,29301,27972,29247,29871,30079,28873,30897,30902,31321,29714,32006,31338,32562,31024,32678,33031,34115,32574,33984,34795,35680,34342,36136,36226,36226,34736,36588,45176,38351,36629,38146,39232,39257,37869,38394,40681,40797,39500,41366,42270,43536,42109,45262,46406,46275,44171,47037) > par1 = '4' > #'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] 76 > (np <- floor(n / par1)) [1] 19 > 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] 19 19 19 19 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 22631 24319 25496 25834 26521 27605 28440 29303 29871 30902 31338 33031 [2,] 23956 25252 26681 26513 27652 28621 29076 29301 30079 31321 32562 34115 [3,] 23284 24427 25624 26005 26566 27090 27326 27972 28873 29714 31024 32574 [4,] 24334 25434 26706 27158 27597 27652 28477 29247 30897 32006 32678 33984 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] 34795 36226 45176 39232 40681 42270 46406 NA [2,] 35680 36226 38351 39257 40797 43536 46275 NA [3,] 34342 34736 36629 37869 39500 42109 44171 NA [4,] 36136 36588 38146 38394 41366 45262 47037 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 1325 933 1185 679 1131 1016 636 -2 208 419 1224 1084 885 [2,] -672 -825 -1057 -508 -1086 -1531 -1750 -1329 -1206 -1607 -1538 -1541 -1338 [3,] 1050 1007 1082 1153 1031 562 1151 1275 2024 2292 1654 1410 1794 [4,] -15 62 -872 -637 8 788 826 624 5 -668 353 811 90 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] 0 -6825 25 116 1266 -131 NA [2,] -1490 -1722 -1388 -1297 -1427 -2104 NA [3,] 1852 1517 525 1866 3153 2866 NA [4,] 8588 1086 2287 904 1144 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/1kk1t1290616085.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/2ucjw1290616085.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/3ucjw1290616085.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/4ucjw1290616085.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] [1,] 22631 23956.0 23284.0 24334.0 [2,] 27063 28136.5 26828.0 27624.5 [3,] 30902 31321.0 29714.0 32006.0 [4,] 37729 37288.5 35682.5 37367.0 [5,] 46406 46275.0 44171.0 47037.0 $n [1] 19 19 19 19 $conf [,1] [,2] [,3] [,4] [1,] 27035.82 28003.61 26504.45 28474.57 [2,] 34768.18 34638.39 32923.55 35537.43 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" Warning message: In bxp(list(stats = c(22631, 27063, 30902, 37729, 46406, 23956, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55l0h1290616085.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] [1,] -131.0 -2104.0 525 -872.0 [2,] 70.5 -1539.5 1066 5.0 [3,] 679.0 -1388.0 1410 488.5 [4,] 1107.5 -1146.0 1859 904.0 [5,] 1325.0 -672.0 2866 1144.0 $n [1] 19 19 19 18 $conf [,1] [,2] [,3] [,4] [1,] 303.1115 -1530.635 1122.556 153.7038 [2,] 1054.8885 -1245.365 1697.444 823.2962 $out [1] -6825 -508 3153 8588 2287 $group [1] 1 2 3 4 4 $names [1] "1" "2" "3" "4" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65l0h1290616085.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,] 22631.0 24319.0 25496.0 25834.0 26521.0 27090.0 27326.0 27972.0 28873 [2,] 22957.5 24373.0 25560.0 25919.5 26543.5 27347.5 27883.0 28609.5 29372 [3,] 23620.0 24839.5 26152.5 26259.0 27081.5 27628.5 28458.5 29274.0 29975 [4,] 24145.0 25343.0 26693.5 26835.5 27624.5 28136.5 28776.5 29302.0 30488 [5,] 24334.0 25434.0 26706.0 27158.0 27652.0 28621.0 29076.0 29303.0 30897 [,10] [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [1,] 29714.0 31024 32574.0 34342.0 34736 36629.0 37869.0 39500.0 42109.0 [2,] 30308.0 31181 32802.5 34568.5 35481 37387.5 38131.5 40090.5 42189.5 [3,] 31111.5 31950 33507.5 35237.5 36226 38248.5 38813.0 40739.0 42903.0 [4,] 31663.5 32620 34049.5 35908.0 36407 41763.5 39244.5 41081.5 44399.0 [5,] 32006.0 32678 34115.0 36136.0 36588 45176.0 39257.0 41366.0 45262.0 [,19] [,20] [1,] 44171.0 NA [2,] 45223.0 NA [3,] 46340.5 NA [4,] 46721.5 NA [5,] 47037.0 NA $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 22681.88 24073.2 25257.03 25535.36 26227.51 27005.19 27752.63 28726.92 [2,] 24558.12 25605.8 27047.97 26982.64 27935.49 28251.81 29164.37 29821.08 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 29093.36 30040.65 30813.19 32522.37 34179.29 35494.46 34791.46 37933.73 [2,] 30856.64 32182.35 33086.81 34492.63 36295.71 36957.54 41705.54 39692.27 [,17] [,18] [,19] [,20] [1,] 39956.11 41157.50 45156.68 NA [2,] 41521.89 44648.50 47524.32 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" NA Warning message: In bxp(list(stats = c(22631, 22957.5, 23620, 24145, 24334, 24319, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ycz21290616085.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,] 31570.26 29714.0 31255.25 [2,] 32102.95 30308.0 31825.62 [3,] 32771.79 31111.5 32445.88 [4,] 33009.21 31663.5 32604.12 [5,] 33110.47 32006.0 32712.50 $n [1] 4 4 4 $conf [,1] [,2] [,3] [1,] 32055.84 30040.65 31830.86 [2,] 33487.74 32182.35 33060.89 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(31570.2631578947, 32102.9473684211, 32771.7894736842, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1kk1t1290616085.ps tmp/1kk1t1290616085.png",intern=TRUE)) character(0) > try(system("convert tmp/2ucjw1290616085.ps tmp/2ucjw1290616085.png",intern=TRUE)) character(0) > try(system("convert tmp/3ucjw1290616085.ps tmp/3ucjw1290616085.png",intern=TRUE)) character(0) > try(system("convert tmp/4ucjw1290616085.ps tmp/4ucjw1290616085.png",intern=TRUE)) character(0) > try(system("convert tmp/55l0h1290616085.ps tmp/55l0h1290616085.png",intern=TRUE)) character(0) > try(system("convert tmp/65l0h1290616085.ps tmp/65l0h1290616085.png",intern=TRUE)) character(0) > try(system("convert tmp/7ycz21290616085.ps tmp/7ycz21290616085.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.195 0.941 2.847