R version 2.7.2 (2008-08-25) 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(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,20148,20108,18584,18441,18391,19178,18079,18483) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10413 10805 12574 14954 17032 NA [2,] 10709 10872 13031 15648 17696 NA [3,] 10662 10625 13812 15305 17745 NA [4,] 10570 10407 14544 15579 19394 NA [5,] 10297 10463 14931 16348 20148 NA [6,] 10635 10556 14886 15928 20108 NA [7,] 10872 10646 16005 16171 18584 NA [8,] 10296 10702 17064 15937 18441 NA [9,] 10383 11353 15168 15713 18391 NA [10,] 10431 11346 16050 15594 19178 NA [11,] 10574 11451 15839 15683 18079 NA [12,] 10653 11964 15137 16438 18483 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 296 67 457 694 664 NA [2,] -47 -247 781 -343 49 NA [3,] -92 -218 732 274 1649 NA [4,] -273 56 387 769 754 NA [5,] 338 93 -45 -420 -40 NA [6,] 237 90 1119 243 -1524 NA [7,] -576 56 1059 -234 -143 NA [8,] 87 651 -1896 -224 -50 NA [9,] 48 -7 882 -119 787 NA [10,] 143 105 -211 89 -1099 NA [11,] 79 513 -702 755 404 NA [12,] 152 610 -183 594 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/1b6gc1225735318.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/2eoz91225735318.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/3sgw31225735318.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/4yzm21225735318.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] [,12] [1,] 10413 10709 10625 10407 10297 10556 10646 10296 10383 10431 10574 10653 [2,] 10805 10872 10662 10570 10463 10635 10872 10702 11353 11346 11451 11964 [3,] 12574 13031 13812 14544 14931 14886 16005 15937 15168 15594 15683 15137 [4,] 14954 15648 15305 15579 16348 15928 16171 17064 15713 16050 15839 16438 [5,] 17032 17696 17745 19394 20148 20108 18584 18441 18391 19178 18079 18483 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9642.327 9656.29 10531.27 11004.65 10772.67 11145.98 12260.74 11441.63 [2,] 15505.673 16405.71 17092.73 18083.35 19089.33 18626.02 19749.26 20432.37 [,9] [,10] [,11] [,12] [1,] 12087.23 12270.17 12582.45 11975.68 [2,] 18248.77 18917.83 18783.55 18298.32 $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(10413, 10805, 12574, 14954, 17032, 10709, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5sybn1225735318.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] [,12] [1,] 67 -343 -218 -273 -45 90 -576 -224 -119 -211 79 -183.0 [2,] 296 -247 -92 56 -45 90 -234 -224 -7 -211 79 -15.5 [3,] 457 -47 274 387 -40 237 -143 -50 48 89 404 373.0 [4,] 664 49 732 754 93 243 56 87 787 105 513 602.0 [5,] 694 49 1649 769 93 243 56 87 882 143 755 610.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 196.9721 -256.1529 -308.2363 -106.2050 -137.51045 128.8906 -347.91327 [2,] 717.0279 162.1529 856.2363 880.2050 57.51045 345.1094 61.91327 [,8] [,9] [,10] [,11] [,12] [1,] -269.7518 -513.0384 -134.2848 97.3367 -114.825 [2,] 169.7518 609.0384 312.2848 710.6633 860.825 $out [1] 781 338 -420 1119 -1524 1059 651 -1896 -1099 -702 $group [1] 2 5 5 6 6 7 8 8 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(67, 296, 457, 664, 694, -343, -247, -47, 49, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6bfh21225735318.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] [1,] 10296.0 10407.0 12574 14954.0 17032 NA [2,] 10398.0 10590.5 14178 15586.5 17912 NA [3,] 10572.0 10753.5 15034 15698.0 18462 NA [4,] 10657.5 11349.5 15922 16054.0 19286 NA [5,] 10872.0 11964.0 17064 16438.0 20148 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10453.64 10407.32 14238.55 15484.77 17835.31 NA [2,] 10690.36 11099.68 15829.45 15911.23 19088.69 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(10296, 10398, 10572, 10657.5, 10872, 10407, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7xf1x1225735318.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,] 13155.6 12574.0 12879.50 [2,] 13864.3 14178.0 13167.25 [3,] 14373.9 15034.0 13463.50 [4,] 14471.8 15638.5 13671.50 [5,] 14535.0 16005.0 14201.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 14096.82 14367.86 13233.51 [2,] 14650.98 15700.14 13693.49 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(13155.6, 13864.3, 14373.9, 14471.8, 14535, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1b6gc1225735318.ps tmp/1b6gc1225735318.png") > system("convert tmp/2eoz91225735318.ps tmp/2eoz91225735318.png") > system("convert tmp/3sgw31225735318.ps tmp/3sgw31225735318.png") > system("convert tmp/4yzm21225735318.ps tmp/4yzm21225735318.png") > system("convert tmp/5sybn1225735318.ps tmp/5sybn1225735318.png") > system("convert tmp/6bfh21225735318.ps tmp/6bfh21225735318.png") > system("convert tmp/7xf1x1225735318.ps tmp/7xf1x1225735318.png") > > > proc.time() user system elapsed 1.452 0.985 2.580