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(13.15,13.47,13.65,13.52,14.13,14.84,15.29,15.51,15.43,15.42,15.56,15.43,15.36,15.18,15.41,15.15,15.21,15.09,15.09,15.5,15.41,15.42,15.47,15.23,15.59,15.22,15.45,15.02,15.5,15.59,15.98,15.76,15.43,15.45,15.32,15.4,15.42,15.54,15.6,15.67,15.61,16.01,16.06,16.15,15.87,15.89,15.73,15.78,16.07,16.2,16.42,16.61,16.89,17.62,17.83,17.94,18.07,17.85,17.86,17.85) > 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,] 13.15 15.36 15.59 15.42 16.07 NA [2,] 13.47 15.18 15.22 15.54 16.20 NA [3,] 13.65 15.41 15.45 15.60 16.42 NA [4,] 13.52 15.15 15.02 15.67 16.61 NA [5,] 14.13 15.21 15.50 15.61 16.89 NA [6,] 14.84 15.09 15.59 16.01 17.62 NA [7,] 15.29 15.09 15.98 16.06 17.83 NA [8,] 15.51 15.50 15.76 16.15 17.94 NA [9,] 15.43 15.41 15.43 15.87 18.07 NA [10,] 15.42 15.42 15.45 15.89 17.85 NA [11,] 15.56 15.47 15.32 15.73 17.86 NA [12,] 15.43 15.23 15.40 15.78 17.85 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.32 -0.18 -0.37 0.12 0.13 NA [2,] 0.18 0.23 0.23 0.06 0.22 NA [3,] -0.13 -0.26 -0.43 0.07 0.19 NA [4,] 0.61 0.06 0.48 -0.06 0.28 NA [5,] 0.71 -0.12 0.09 0.40 0.73 NA [6,] 0.45 0.00 0.39 0.05 0.21 NA [7,] 0.22 0.41 -0.22 0.09 0.11 NA [8,] -0.08 -0.09 -0.33 -0.28 0.13 NA [9,] -0.01 0.01 0.02 0.02 -0.22 NA [10,] 0.14 0.05 -0.13 -0.16 0.01 NA [11,] -0.13 -0.24 0.08 0.05 -0.01 NA [12,] -0.07 0.36 0.02 0.29 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/1tnlc1331215011.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/2gp4i1331215011.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/3947r1331215011.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/44o0f1331215011.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,] 15.36 15.18 15.41 15.02 15.21 14.84 15.09 15.50 15.41 15.42 15.32 15.23 [2,] 15.36 15.18 15.41 15.02 15.21 15.09 15.29 15.51 15.43 15.42 15.47 15.40 [3,] 15.42 15.22 15.45 15.15 15.50 15.59 15.98 15.76 15.43 15.45 15.56 15.43 [4,] 15.59 15.54 15.60 15.67 15.61 16.01 16.06 16.15 15.87 15.89 15.73 15.78 [5,] 15.59 15.54 15.60 16.61 15.61 16.01 16.06 16.15 15.87 15.89 15.73 15.78 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.25748 14.96562 15.31575 14.69071 15.21736 14.93993 15.43592 15.30778 [2,] 15.58252 15.47438 15.58425 15.60929 15.78264 16.24007 16.52408 16.21222 [,9] [,10] [,11] [,12] [1,] 15.1191 15.1179 15.37628 15.16149 [2,] 15.7409 15.7821 15.74372 15.69851 $out [1] 13.15 16.07 13.47 16.20 13.65 16.42 13.52 14.13 16.89 17.62 17.83 17.94 [13] 18.07 17.85 17.86 17.85 $group [1] 1 1 2 2 3 3 4 5 5 6 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15.36, 15.36, 15.42, 15.59, 15.59, 15.18, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5y0n21331215011.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.37 0.18 -0.43 -0.06 -0.12 0.00 0.09 -0.33 -0.01 -0.16 -0.24 -0.070 [2,] -0.18 0.18 -0.26 0.06 0.09 0.05 0.09 -0.28 -0.01 -0.13 -0.13 -0.025 [3,] 0.12 0.22 -0.13 0.28 0.40 0.21 0.11 -0.09 0.01 0.01 -0.01 0.155 [4,] 0.13 0.23 0.07 0.48 0.71 0.39 0.22 -0.08 0.02 0.05 0.05 0.325 [5,] 0.32 0.23 0.19 0.61 0.73 0.45 0.41 0.13 0.02 0.14 0.08 0.360 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.09904522 0.1846701 -0.3631772 -0.01677094 -0.03809044 -0.03024314 [2,] 0.33904522 0.2553299 0.1031772 0.57677094 0.83809044 0.45024314 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01814233 -0.2313195 -0.01119792 -0.1171875 -0.1371875 -0.1215 [2,] 0.20185767 0.0513195 0.03119792 0.1371875 0.1171875 0.4315 $out [1] 0.06 -0.22 -0.22 $group [1] 2 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.369999999999999, -0.18, 0.119999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6hi7c1331215011.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,] 13.150 15.090 15.02 15.420 16.070 NA [2,] 13.585 15.165 15.36 15.605 16.515 NA [3,] 15.065 15.295 15.45 15.755 17.725 NA [4,] 15.430 15.415 15.59 15.950 17.855 NA [5,] 15.560 15.500 15.76 16.150 18.070 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 14.22348 15.18097 15.3451 15.59764 17.11382 NA [2,] 15.90652 15.40903 15.5549 15.91236 18.33618 NA $out [1] 15.98 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(13.15, 13.585, 15.065, 15.43, 15.56, 15.09, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7c4ao1331215011.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,] 15.118 15.220 15.3450 [2,] 15.250 15.425 15.4425 [3,] 15.884 15.450 15.5700 [4,] 16.024 15.575 15.6525 [5,] 16.172 15.760 15.8300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.53097 15.38158 15.47422 [2,] 16.23703 15.51842 15.66578 $out [1] 15.15 15.98 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15.118, 15.25, 15.884, 16.024, 16.172, 15.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1tnlc1331215011.ps tmp/1tnlc1331215011.png",intern=TRUE)) character(0) > try(system("convert tmp/2gp4i1331215011.ps tmp/2gp4i1331215011.png",intern=TRUE)) character(0) > try(system("convert tmp/3947r1331215011.ps tmp/3947r1331215011.png",intern=TRUE)) character(0) > try(system("convert tmp/44o0f1331215011.ps tmp/44o0f1331215011.png",intern=TRUE)) character(0) > try(system("convert tmp/5y0n21331215011.ps tmp/5y0n21331215011.png",intern=TRUE)) character(0) > try(system("convert tmp/6hi7c1331215011.ps tmp/6hi7c1331215011.png",intern=TRUE)) character(0) > try(system("convert tmp/7c4ao1331215011.ps tmp/7c4ao1331215011.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.545 0.435 1.987