R version 2.8.0 (2008-10-20) 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(18.33,18.22,18.21,18.06,18.26,18.21,18.05,18.25,18.27,18.28,18.13,18.01,18.02,17.97,18.06,18.08,18.23,18.06,18.23,18.17,18.27,18.33,18.18,18.29,18.33,18.31,18.44,18.63,18.37,18.59,18.72,18.75,18.87,18.83,18.89,18.78,19.27,19.19,19.43,19.36,19.39,19.07,19.31,19.19,19.06,19.05,19.49,19.25,19.76,20.35,19.61,19.33,18.95,18.97,19.28,19.41,18.99,19.37,19.63,19.53,19.86,20.13,19.47,19.49,18.95,19.33,19.65,19.44,19.73,18.89,19.56,19.56) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 18.33 18.02 18.33 19.27 19.76 19.86 NA [2,] 18.22 17.97 18.31 19.19 20.35 20.13 NA [3,] 18.21 18.06 18.44 19.43 19.61 19.47 NA [4,] 18.06 18.08 18.63 19.36 19.33 19.49 NA [5,] 18.26 18.23 18.37 19.39 18.95 18.95 NA [6,] 18.21 18.06 18.59 19.07 18.97 19.33 NA [7,] 18.05 18.23 18.72 19.31 19.28 19.65 NA [8,] 18.25 18.17 18.75 19.19 19.41 19.44 NA [9,] 18.27 18.27 18.87 19.06 18.99 19.73 NA [10,] 18.28 18.33 18.83 19.05 19.37 18.89 NA [11,] 18.13 18.18 18.89 19.49 19.63 19.56 NA [12,] 18.01 18.29 18.78 19.25 19.53 19.56 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.11 -0.05 -0.02 -0.08 0.59 0.27 NA [2,] -0.01 0.09 0.13 0.24 -0.74 -0.66 NA [3,] -0.15 0.02 0.19 -0.07 -0.28 0.02 NA [4,] 0.20 0.15 -0.26 0.03 -0.38 -0.54 NA [5,] -0.05 -0.17 0.22 -0.32 0.02 0.38 NA [6,] -0.16 0.17 0.13 0.24 0.31 0.32 NA [7,] 0.20 -0.06 0.03 -0.12 0.13 -0.21 NA [8,] 0.02 0.10 0.12 -0.13 -0.42 0.29 NA [9,] 0.01 0.06 -0.04 -0.01 0.38 -0.84 NA [10,] -0.15 -0.15 0.06 0.44 0.26 0.67 NA [11,] -0.12 0.11 -0.11 -0.24 -0.10 0.00 NA [12,] 0.01 0.04 0.49 0.51 0.33 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/1w1so1228410868.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/2r70y1228410868.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/3iisy1228410868.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/4o61b1228410868.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,] 18.02 17.97 18.060 18.06 18.23 18.06 18.05 18.17 18.27 18.28 18.13 18.010 [2,] 18.33 18.22 18.210 18.08 18.26 18.21 18.23 18.25 18.27 18.33 18.18 18.290 [3,] 18.80 18.75 18.935 18.98 18.66 18.78 19.00 18.97 18.93 18.86 19.19 19.015 [4,] 19.76 20.13 19.470 19.36 18.95 19.07 19.31 19.41 19.06 19.05 19.56 19.530 [5,] 19.86 20.35 19.610 19.49 19.39 19.33 19.65 19.44 19.73 19.37 19.63 19.560 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.87760 17.51799 18.12226 18.15436 18.21493 18.22527 18.30337 18.22176 [2,] 19.72240 19.98201 19.74774 19.80564 19.10507 19.33473 19.69663 19.71824 [,9] [,10] [,11] [,12] [1,] 18.42042 18.39558 18.29986 18.21516 [2,] 19.43958 19.32442 20.08014 19.81484 $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(18.02, 18.33, 18.8, 19.76, 19.86, 17.97, 18.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5quwu1228410868.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] [1,] -0.110 -0.74 -0.280 -0.540 -0.320 0.130 -0.210 -0.42 -4.000000e-02 -0.15 [2,] -0.080 -0.66 -0.150 -0.380 -0.170 0.130 -0.120 -0.13 -4.000000e-02 -0.15 [3,] -0.035 0.04 -0.025 -0.115 -0.015 0.205 -0.015 0.06 1.776357e-15 0.16 [4,] 0.270 0.13 0.020 0.150 0.220 0.310 0.130 0.12 6.000000e-02 0.44 [5,] 0.590 0.24 0.190 0.200 0.380 0.320 0.200 0.29 6.000000e-02 0.67 [,11] [,12] [1,] -0.240 0.01 [2,] -0.120 0.04 [3,] -0.105 0.33 [4,] 0.000 0.49 [5,] 0.110 0.51 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2607613 -0.4695755 -0.13465549 -0.4568671 -0.2665626 0.08889419 [2,] 0.1907613 0.5495755 0.08465549 0.2268671 0.2365626 0.32110581 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1762581 -0.1012581 -0.06450323 -0.2205691 -0.18240388 0.01203113 [2,] 0.1462581 0.2212581 0.06450323 0.5405691 -0.02759612 0.64796887 $out [1] -0.16 0.38 -0.84 $group [1] 6 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.109999999999999, -0.0799999999999983, -0.0350000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6z8w11228410868.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] [,7] [1,] 18.010 17.970 18.310 19.050 18.950 18.950 NA [2,] 18.095 18.060 18.405 19.130 19.135 19.385 NA [3,] 18.215 18.175 18.675 19.260 19.390 19.525 NA [4,] 18.265 18.250 18.805 19.375 19.620 19.690 NA [5,] 18.330 18.330 18.890 19.490 19.760 20.130 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 18.13746 18.08834 18.49256 19.14825 19.16879 19.38589 NA [2,] 18.29254 18.26166 18.85744 19.37175 19.61121 19.66411 NA $out [1] 20.35 18.89 $group [1] 5 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(18.01, 18.095, 18.215, 18.265, 18.33, 17.97, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7wku11228410868.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,] 18.69167 18.6600 18.61875 [2,] 18.80833 18.7900 18.73188 [3,] 18.86917 18.9325 18.84563 [4,] 18.91583 18.9900 18.94313 [5,] 19.02833 19.1900 19.06875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 18.82014 18.84128 18.74927 [2,] 18.91820 19.02372 18.94198 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(18.6916666666667, 18.8083333333333, 18.8691666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1w1so1228410868.ps tmp/1w1so1228410868.png") > system("convert tmp/2r70y1228410868.ps tmp/2r70y1228410868.png") > system("convert tmp/3iisy1228410868.ps tmp/3iisy1228410868.png") > system("convert tmp/4o61b1228410868.ps tmp/4o61b1228410868.png") > system("convert tmp/5quwu1228410868.ps tmp/5quwu1228410868.png") > system("convert tmp/6z8w11228410868.ps tmp/6z8w11228410868.png") > system("convert tmp/7wku11228410868.ps tmp/7wku11228410868.png") > > > proc.time() user system elapsed 1.211 0.955 1.560