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(15.13,15.25,15.33,15.36,15.4,15.4,15.41,15.47,15.54,15.55,15.59,15.65,15.75,15.86,15.89,15.94,15.93,15.95,15.99,15.99,16.06,16.08,16.07,16.11,16.15,16.18,16.3,16.42,16.49,16.5,16.58,16.64,16.66,16.81,16.91,16.92,16.95,17.11,17.16,17.16,17.27,17.34,17.39,17.43,17.45,17.5,17.56,17.65,17.62,17.7,17.72,17.71,17.74,17.75,17.78,17.8,17.86,17.88,17.89,17.94) > 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,] 15.13 15.75 16.15 16.95 17.62 NA [2,] 15.25 15.86 16.18 17.11 17.70 NA [3,] 15.33 15.89 16.30 17.16 17.72 NA [4,] 15.36 15.94 16.42 17.16 17.71 NA [5,] 15.40 15.93 16.49 17.27 17.74 NA [6,] 15.40 15.95 16.50 17.34 17.75 NA [7,] 15.41 15.99 16.58 17.39 17.78 NA [8,] 15.47 15.99 16.64 17.43 17.80 NA [9,] 15.54 16.06 16.66 17.45 17.86 NA [10,] 15.55 16.08 16.81 17.50 17.88 NA [11,] 15.59 16.07 16.91 17.56 17.89 NA [12,] 15.65 16.11 16.92 17.65 17.94 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.12 0.11 0.03 0.16 0.08 NA [2,] 0.08 0.03 0.12 0.05 0.02 NA [3,] 0.03 0.05 0.12 0.00 -0.01 NA [4,] 0.04 -0.01 0.07 0.11 0.03 NA [5,] 0.00 0.02 0.01 0.07 0.01 NA [6,] 0.01 0.04 0.08 0.05 0.03 NA [7,] 0.06 0.00 0.06 0.04 0.02 NA [8,] 0.07 0.07 0.02 0.02 0.06 NA [9,] 0.01 0.02 0.15 0.05 0.02 NA [10,] 0.04 -0.01 0.10 0.06 0.01 NA [11,] 0.06 0.04 0.01 0.09 0.05 NA [12,] 0.10 0.04 0.03 -0.03 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/100ek1331214915.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/2h8421331214915.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/38yf11331214915.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/4fucq1331214915.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.13 15.25 15.33 15.36 15.40 15.40 15.41 15.47 15.54 15.55 15.59 15.65 [2,] 15.75 15.86 15.89 15.94 15.93 15.95 15.99 15.99 16.06 16.08 16.07 16.11 [3,] 16.15 16.18 16.30 16.42 16.49 16.50 16.58 16.64 16.66 16.81 16.91 16.92 [4,] 16.95 17.11 17.16 17.16 17.27 17.34 17.39 17.43 17.45 17.50 17.56 17.65 [5,] 17.62 17.70 17.72 17.71 17.74 17.75 17.78 17.80 17.86 17.88 17.89 17.94 $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.30208 15.29675 15.40262 15.55795 15.54316 15.51783 15.59076 15.6225 [2,] 16.99792 17.06325 17.19738 17.28205 17.43684 17.48217 17.56924 17.6575 [,9] [,10] [,11] [,12] [1,] 15.67783 15.80663 15.85717 15.83184 [2,] 17.64217 17.81337 17.96283 18.00816 $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(15.13, 15.75, 16.15, 16.95, 17.62, 15.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5isuc1331214915.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.03 0.02 -0.01 -0.01 0.00 0.01 0.00 0.02 0.01 -0.01 0.01 -0.030 [2,] 0.08 0.03 0.00 0.03 0.01 0.03 0.02 0.02 0.02 0.01 0.04 0.000 [3,] 0.11 0.05 0.03 0.04 0.01 0.04 0.04 0.06 0.02 0.04 0.05 0.035 [4,] 0.12 0.08 0.05 0.07 0.02 0.05 0.06 0.07 0.05 0.06 0.06 0.070 [5,] 0.16 0.12 0.12 0.11 0.02 0.08 0.06 0.07 0.05 0.10 0.09 0.100 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0817361 0.01467013 -0.005329874 0.0117361 0.002934025 0.02586805 [2,] 0.1382639 0.08532987 0.065329874 0.0682639 0.017065975 0.05413195 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.0117361 0.02467013 -0.001197924 0.004670126 0.03586805 -0.0203 [2,] 0.0682639 0.09532987 0.041197924 0.075329874 0.06413195 0.0903 $out [1] 0.07 0.15 $group [1] 5 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0300000000000011, 0.0799999999999983, 0.109999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6izsg1331214915.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,] 15.130 15.750 16.150 16.950 17.620 NA [2,] 15.345 15.910 16.360 17.160 17.715 NA [3,] 15.405 15.970 16.540 17.365 17.765 NA [4,] 15.545 16.065 16.735 17.475 17.870 NA [5,] 15.650 16.110 16.920 17.650 17.940 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.31378 15.8993 16.36896 17.22133 17.6943 NA [2,] 15.49622 16.0407 16.71104 17.50867 17.8357 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15.13, 15.345, 15.405, 15.545, 15.65, 15.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7209b1331214915.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,] 16.320 16.150 16.3500 [2,] 16.499 16.360 16.5375 [3,] 16.609 16.540 16.6675 [4,] 16.739 16.735 16.7725 [5,] 16.854 16.920 16.8800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16.49953 16.36896 16.56031 [2,] 16.71847 16.71104 16.77469 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16.32, 16.499, 16.609, 16.739, 16.854, 16.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/100ek1331214915.ps tmp/100ek1331214915.png",intern=TRUE)) character(0) > try(system("convert tmp/2h8421331214915.ps tmp/2h8421331214915.png",intern=TRUE)) character(0) > try(system("convert tmp/38yf11331214915.ps tmp/38yf11331214915.png",intern=TRUE)) character(0) > try(system("convert tmp/4fucq1331214915.ps tmp/4fucq1331214915.png",intern=TRUE)) character(0) > try(system("convert tmp/5isuc1331214915.ps tmp/5isuc1331214915.png",intern=TRUE)) character(0) > try(system("convert tmp/6izsg1331214915.ps tmp/6izsg1331214915.png",intern=TRUE)) character(0) > try(system("convert tmp/7209b1331214915.ps tmp/7209b1331214915.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.698 0.420 2.126