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(1.03,1.02,1.02,1.02,1.02,1.03,1.03,1.03,1.04,1.04,1.04,1.04,1.04,1.04,1.04,1.04,1.04,1.05,1.05,1.04,1.04,1.04,1.05,1.05,1.05,1.06,1.06,1.07,1.06,1.07,1.07,1.07,1.07,1.07,1.07,1.07,1.07,1.08,1.07,1.07,1.08,1.08,1.08,1.08,1.08,1.08,1.08,1.09,1.09,1.08,1.08,1.08,1.08) > 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] 53 > (np <- floor(n / par1)) [1] 4 > 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 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 1.03 1.04 1.05 1.07 1.09 [2,] 1.02 1.04 1.06 1.08 1.08 [3,] 1.02 1.04 1.06 1.07 1.08 [4,] 1.02 1.04 1.07 1.07 1.08 [5,] 1.02 1.04 1.06 1.08 1.08 [6,] 1.03 1.05 1.07 1.08 NA [7,] 1.03 1.05 1.07 1.08 NA [8,] 1.03 1.04 1.07 1.08 NA [9,] 1.04 1.04 1.07 1.08 NA [10,] 1.04 1.04 1.07 1.08 NA [11,] 1.04 1.05 1.07 1.08 NA [12,] 1.04 1.05 1.07 1.09 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -0.01 0.00 0.01 0.01 -0.01 [2,] 0.00 0.00 0.00 -0.01 0.00 [3,] 0.00 0.00 0.01 0.00 0.00 [4,] 0.00 0.00 -0.01 0.01 0.00 [5,] 0.01 0.01 0.01 0.00 NA [6,] 0.00 0.00 0.00 0.00 NA [7,] 0.00 -0.01 0.00 0.00 NA [8,] 0.01 0.00 0.00 0.00 NA [9,] 0.00 0.00 0.00 0.00 NA [10,] 0.00 0.01 0.00 0.00 NA [11,] 0.00 0.00 0.00 0.01 NA [12,] 0.00 0.00 0.00 0.00 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/1dtbe1292703781.ps",horizontal=F,onefile=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/2dtbe1292703781.ps",horizontal=F,onefile=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/352ah1292703781.ps",horizontal=F,onefile=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/452ah1292703781.ps",horizontal=F,onefile=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,] 1.03 1.02 1.02 1.02 1.02 1.030 1.030 1.030 1.040 1.040 1.040 1.040 [2,] 1.04 1.04 1.04 1.04 1.04 1.040 1.040 1.035 1.040 1.040 1.045 1.045 [3,] 1.05 1.06 1.06 1.07 1.06 1.060 1.060 1.055 1.055 1.055 1.060 1.060 [4,] 1.07 1.08 1.07 1.07 1.08 1.075 1.075 1.075 1.075 1.075 1.075 1.080 [5,] 1.09 1.08 1.08 1.08 1.08 1.080 1.080 1.080 1.080 1.080 1.080 1.090 $n [1] 5 5 5 5 5 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.028802 1.031736 1.038802 1.048802 1.031736 1.03235 1.03235 1.0234 [2,] 1.071198 1.088264 1.081198 1.091198 1.088264 1.08765 1.08765 1.0866 [,9] [,10] [,11] [,12] [1,] 1.02735 1.02735 1.0363 1.03235 [2,] 1.08265 1.08265 1.0837 1.08765 $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(1.03, 1.04, 1.05, 1.07, 1.09, 1.02, 1.04, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gbrk1292703781.ps",horizontal=F,onefile=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,] -0.01 0 0 0 0.000 0 -0.010 0.000 0 0.000 0.000 0 [2,] -0.01 0 0 0 0.005 0 -0.005 0.000 0 0.000 0.000 0 [3,] 0.00 0 0 0 0.010 0 0.000 0.000 0 0.000 0.000 0 [4,] 0.01 0 0 0 0.010 0 0.000 0.005 0 0.005 0.005 0 [5,] 0.01 0 0 0 0.010 0 0.000 0.010 0 0.010 0.010 0 $n [1] 5 5 5 5 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -0.01413195 0 0 0 0.00605 0 -0.00395 -0.00395 0 -0.00395 [2,] 0.01413195 0 0 0 0.01395 0 0.00395 0.00395 0 0.00395 [,11] [,12] [1,] -0.00395 0 [2,] 0.00395 0 $out [1] -0.01 0.01 -0.01 0.01 $group [1] 2 3 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, -0.01, 0, 0.01, 0.01, 0, 0, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6gbrk1292703781.ps",horizontal=F,onefile=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] [1,] 1.02 1.04 1.05 1.070 1.08 [2,] 1.02 1.04 1.06 1.075 1.08 [3,] 1.03 1.04 1.07 1.080 1.08 [4,] 1.04 1.05 1.07 1.080 1.08 [5,] 1.04 1.05 1.07 1.080 1.08 $n [1] 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [1,] 1.020878 1.035439 1.065439 1.077719 1.08 [2,] 1.039122 1.044561 1.074561 1.082281 1.08 $out [1] 1.09 1.09 $group [1] 4 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(1.02, 1.02, 1.03, 1.04, 1.04, 1.04, 1.04, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7gbrk1292703781.ps",horizontal=F,onefile=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,] 1.05400 1.050 1.05500 [2,] 1.05600 1.055 1.05500 [3,] 1.05675 1.060 1.05750 [4,] 1.05750 1.060 1.06000 [5,] 1.05750 1.060 1.06125 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.056066 1.057719 1.055219 [2,] 1.057434 1.062281 1.059781 $out [1] 1.0600 1.0625 1.0700 $group [1] 1 1 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.054, 1.056, 1.05675, 1.0575, 1.0575, 1.05, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1dtbe1292703781.ps tmp/1dtbe1292703781.png",intern=TRUE)) character(0) > try(system("convert tmp/2dtbe1292703781.ps tmp/2dtbe1292703781.png",intern=TRUE)) character(0) > try(system("convert tmp/352ah1292703781.ps tmp/352ah1292703781.png",intern=TRUE)) character(0) > try(system("convert tmp/452ah1292703781.ps tmp/452ah1292703781.png",intern=TRUE)) character(0) > try(system("convert tmp/5gbrk1292703781.ps tmp/5gbrk1292703781.png",intern=TRUE)) character(0) > try(system("convert tmp/6gbrk1292703781.ps tmp/6gbrk1292703781.png",intern=TRUE)) character(0) > try(system("convert tmp/7gbrk1292703781.ps tmp/7gbrk1292703781.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.223 0.986 3.407