R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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.26,1.26,1.28,1.34,1.39,1.47,1.57,1.63,1.72,1.43,1.35,1.41,1.44,1.43,1.43,1.42,1.45,1.51,1.48,1.48,1.45,1.38,1.46,1.45,1.41,1.45,1.47,1.47,1.53,1.56,1.66,1.79,1.78,1.46,1.41,1.43,1.43,1.45,1.35,1.35,1.29,1.29,1.26,1.3,1.3,1.16,1.24,1.15,1.21,1.22,1.17,1.13,1.15,1.2,1.23,1.25,1.38,1.28,1.26,1.25) > 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,] 1.26 1.44 1.41 1.43 1.21 NA [2,] 1.26 1.43 1.45 1.45 1.22 NA [3,] 1.28 1.43 1.47 1.35 1.17 NA [4,] 1.34 1.42 1.47 1.35 1.13 NA [5,] 1.39 1.45 1.53 1.29 1.15 NA [6,] 1.47 1.51 1.56 1.29 1.20 NA [7,] 1.57 1.48 1.66 1.26 1.23 NA [8,] 1.63 1.48 1.79 1.30 1.25 NA [9,] 1.72 1.45 1.78 1.30 1.38 NA [10,] 1.43 1.38 1.46 1.16 1.28 NA [11,] 1.35 1.46 1.41 1.24 1.26 NA [12,] 1.41 1.45 1.43 1.15 1.25 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.00 -0.01 0.04 0.02 0.01 NA [2,] 0.02 0.00 0.02 -0.10 -0.05 NA [3,] 0.06 -0.01 0.00 0.00 -0.04 NA [4,] 0.05 0.03 0.06 -0.06 0.02 NA [5,] 0.08 0.06 0.03 0.00 0.05 NA [6,] 0.10 -0.03 0.10 -0.03 0.03 NA [7,] 0.06 0.00 0.13 0.04 0.02 NA [8,] 0.09 -0.03 -0.01 0.00 0.13 NA [9,] -0.29 -0.07 -0.32 -0.14 -0.10 NA [10,] -0.08 0.08 -0.05 0.08 -0.02 NA [11,] 0.06 -0.01 0.02 -0.09 -0.01 NA [12,] 0.03 -0.04 0.00 0.06 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/wessaorg/rcomp/tmp/1s3xb1331805184.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/wessaorg/rcomp/tmp/229u61331805184.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/wessaorg/rcomp/tmp/349gm1331805185.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/wessaorg/rcomp/tmp/4k1ib1331805185.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.21 1.22 1.17 1.34 1.15 1.20 1.23 1.25 1.30 1.16 1.24 1.15 [2,] 1.26 1.26 1.28 1.34 1.29 1.29 1.26 1.30 1.38 1.28 1.26 1.25 [3,] 1.41 1.43 1.35 1.35 1.39 1.47 1.48 1.48 1.45 1.38 1.35 1.41 [4,] 1.43 1.45 1.43 1.42 1.45 1.51 1.57 1.63 1.72 1.43 1.41 1.43 [5,] 1.44 1.45 1.47 1.47 1.53 1.56 1.66 1.79 1.78 1.46 1.46 1.45 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.289878 1.295746 1.24401 1.293472 1.276944 1.314549 1.260955 1.246823 [2,] 1.530122 1.564254 1.45599 1.406528 1.503056 1.625451 1.699045 1.713177 [,9] [,10] [,11] [,12] [1,] 1.209757 1.27401 1.24401 1.282812 [2,] 1.690243 1.48599 1.45599 1.537188 $out [1] 1.13 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.21, 1.26, 1.41, 1.43, 1.44, 1.22, 1.26, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5h4zh1331805185.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.10 -0.01 0.02 0.00 -0.03 0.00 -0.03 -0.32 -0.08 -0.01 -0.040 [2,] 0.00 -0.05 -0.01 0.02 0.03 -0.03 0.02 -0.01 -0.29 -0.05 -0.01 -0.020 [3,] 0.01 0.00 0.00 0.03 0.05 0.03 0.04 0.00 -0.14 -0.02 -0.01 0.015 [4,] 0.02 0.02 0.00 0.05 0.06 0.10 0.06 0.09 -0.10 0.08 0.02 0.045 [5,] 0.04 0.02 0.00 0.06 0.08 0.10 0.06 0.13 -0.07 0.08 0.06 0.060 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.00413195 -0.04946182 -0.007065975 0.008802076 0.02880208 -0.06185767 [2,] 0.02413195 0.04946182 0.007065975 0.051197924 0.07119792 0.12185767 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.0117361 -0.07065975 -0.274253521 -0.11185767 -0.03119792 -0.03635 [2,] 0.0682639 0.07065975 -0.005746479 0.07185767 0.01119792 0.06635 $out [1] 0.06 -0.04 -0.06 0.13 -0.09 $group [1] 3 3 4 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, 0, 0.01, 0.02, 0.04, -0.0999999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/60oe91331805185.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] [,6] [1,] 1.26 1.38 1.41 1.150 1.130 NA [2,] 1.31 1.43 1.44 1.250 1.185 NA [3,] 1.40 1.45 1.47 1.295 1.225 NA [4,] 1.52 1.47 1.61 1.350 1.255 NA [5,] 1.72 1.51 1.79 1.450 1.280 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.304218 1.431756 1.392462 1.249389 1.193073 NA [2,] 1.495782 1.468244 1.547538 1.340611 1.256927 NA $out [1] 1.38 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.26, 1.31, 1.4, 1.52, 1.72, 1.38, 1.43, 1.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7bukh1331805185.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.338 1.350 1.3350 [2,] 1.342 1.365 1.3500 [3,] 1.356 1.410 1.3625 [4,] 1.423 1.460 1.4075 [5,] 1.526 1.480 1.4650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.319055 1.36667 1.336274 [2,] 1.392945 1.45333 1.388726 $out [1] 1.55 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.338, 1.342, 1.356, 1.423, 1.526, 1.35, 1.365, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1s3xb1331805184.ps tmp/1s3xb1331805184.png",intern=TRUE)) character(0) > try(system("convert tmp/229u61331805184.ps tmp/229u61331805184.png",intern=TRUE)) character(0) > try(system("convert tmp/349gm1331805185.ps tmp/349gm1331805185.png",intern=TRUE)) character(0) > try(system("convert tmp/4k1ib1331805185.ps tmp/4k1ib1331805185.png",intern=TRUE)) character(0) > try(system("convert tmp/5h4zh1331805185.ps tmp/5h4zh1331805185.png",intern=TRUE)) character(0) > try(system("convert tmp/60oe91331805185.ps tmp/60oe91331805185.png",intern=TRUE)) character(0) > try(system("convert tmp/7bukh1331805185.ps tmp/7bukh1331805185.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.695 0.403 2.105