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(66.2,66.2,66.2,66.08,66.31,66.39,66.37,66.23,66.27,66.27,66.27,66.28,66.28,66.28,66.26,66.13,65.86,65.9,65.94,65.94,65.91,65.95,65.91,66.08,66.47,66.47,66.56,66.78,67.08,67.28,67.27,67.27,67.26,67.37,67.5,67.63,67.64,67.64,67.71,67.87,67.93,68.33,68.39,68.39,68.58,68.44,68.49,68.52,68.54,68.54,68.54,68.62,68.75,68.71,68.72,68.72,68.72,68.92,68.9,69.12,69.09,69.09,69.1,69.16,68.83,68.52,68.53,68.53,68.51,68.38,68.44,68.41,68.42,68.42,68.45,68.63,68.84,68.72,68.37,68.37,68.47,68.69,68.46,68.17,68.17) > 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] 85 > (np <- floor(n / par1)) [1] 7 > 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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.20 66.28 66.47 67.64 68.54 69.09 68.42 68.17 [2,] 66.20 66.28 66.47 67.64 68.54 69.09 68.42 NA [3,] 66.20 66.26 66.56 67.71 68.54 69.10 68.45 NA [4,] 66.08 66.13 66.78 67.87 68.62 69.16 68.63 NA [5,] 66.31 65.86 67.08 67.93 68.75 68.83 68.84 NA [6,] 66.39 65.90 67.28 68.33 68.71 68.52 68.72 NA [7,] 66.37 65.94 67.27 68.39 68.72 68.53 68.37 NA [8,] 66.23 65.94 67.27 68.39 68.72 68.53 68.37 NA [9,] 66.27 65.91 67.26 68.58 68.72 68.51 68.47 NA [10,] 66.27 65.95 67.37 68.44 68.92 68.38 68.69 NA [11,] 66.27 65.91 67.50 68.49 68.90 68.44 68.46 NA [12,] 66.28 66.08 67.63 68.52 69.12 68.41 68.17 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] 0.00 -0.02 0.09 0.07 0.00 0.01 0.03 NA [3,] -0.12 -0.13 0.22 0.16 0.08 0.06 0.18 NA [4,] 0.23 -0.27 0.30 0.06 0.13 -0.33 0.21 NA [5,] 0.08 0.04 0.20 0.40 -0.04 -0.31 -0.12 NA [6,] -0.02 0.04 -0.01 0.06 0.01 0.01 -0.35 NA [7,] -0.14 0.00 0.00 0.00 0.00 0.00 0.00 NA [8,] 0.04 -0.03 -0.01 0.19 0.00 -0.02 0.10 NA [9,] 0.00 0.04 0.11 -0.14 0.20 -0.13 0.22 NA [10,] 0.00 -0.04 0.13 0.05 -0.02 0.06 -0.23 NA [11,] 0.01 0.17 0.13 0.03 0.22 -0.03 -0.29 NA [12,] 0.00 0.39 0.01 0.02 -0.03 0.01 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/12ezp1242240307.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/2ogbv1242240307.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/3accd1242240307.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/4y9k41242240307.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] [1,] 66.200 66.200 66.200 66.080 65.860 65.900 65.94 65.94 65.910 65.950 65.910 [2,] 66.375 66.375 66.410 66.455 66.695 66.835 66.82 66.75 66.765 66.820 66.885 [3,] 67.905 67.640 67.710 67.870 67.930 68.330 68.37 68.37 68.470 68.380 68.440 [4,] 68.480 68.480 68.495 68.625 68.790 68.615 68.46 68.46 68.545 68.565 68.475 [5,] 69.090 69.090 69.100 69.160 68.840 68.720 68.72 68.72 68.720 68.920 68.900 [,12] [1,] 66.080 [2,] 66.955 [3,] 68.170 [4,] 68.465 [5,] 69.120 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.72912 66.38293 66.46487 66.57411 66.6789 67.26701 67.39062 67.34882 [2,] 69.08088 68.89707 68.95513 69.16589 69.1811 69.39299 69.34938 69.39118 [,9] [,10] [,11] [,12] [1,] 67.40701 67.33791 67.49048 67.26825 [2,] 69.53299 69.42209 69.38952 69.07175 $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(66.2, 66.375, 67.905, 68.48, 69.09, 66.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57t9u1242240307.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] [,11] [,12] [1,] 0 -0.02 -0.13 -0.330 -0.31 -0.020 0 -0.030 -0.140 -0.040 -0.03 0.000 [2,] 0 0.00 -0.03 -0.105 -0.08 -0.015 0 -0.015 -0.065 -0.030 -0.01 0.000 [3,] 0 0.01 0.08 0.130 0.04 0.010 0 0.000 0.040 0.000 0.03 0.010 [4,] 0 0.05 0.17 0.220 0.14 0.025 0 0.070 0.155 0.055 0.15 0.015 [5,] 0 0.09 0.22 0.300 0.40 0.060 0 0.190 0.220 0.130 0.22 0.020 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 -0.01985919 -0.03943677 -0.06408476 -0.09138045 -0.01388735 0 [2,] 0 0.03985919 0.19943677 0.32408476 0.17138045 0.03388735 0 [,8] [,9] [,10] [,11] [,12] [1,] -0.05076063 -0.09138045 -0.05076063 -0.06554942 0.001042242 [2,] 0.05076063 0.17138045 0.05076063 0.12554942 0.018957758 $out [1] -0.35 -0.14 -0.23 -0.29 0.39 -0.03 $group [1] 6 7 10 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, -0.019999999999996, 0, 0.0099999999999909, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/672g51242240308.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] [,8] [1,] 66.080 65.860 66.470 67.640 68.540 68.380 68.170 68.17 [2,] 66.200 65.910 66.670 67.790 68.580 68.475 68.395 68.17 [3,] 66.270 65.945 67.265 68.360 68.720 68.530 68.455 68.17 [4,] 66.295 66.195 67.325 68.465 68.825 69.090 68.660 68.17 [5,] 66.390 66.280 67.630 68.580 69.120 69.160 68.840 68.17 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.22667 65.81501 66.96625 68.05213 68.60825 68.2495 68.33413 68.17 [2,] 66.31333 66.07499 67.56375 68.66787 68.83175 68.8105 68.57587 68.17 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(66.08, 66.2, 66.27, 66.295, 66.39, 65.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7walp1242240308.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,] 67.52000 67.6400 67.42750 [2,] 67.60563 67.8875 67.49625 [3,] 67.65643 68.2500 67.64750 [4,] 67.70143 68.3750 67.70125 [5,] 67.74429 68.4700 67.74250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 67.61273 68.02765 67.554 [2,] 67.70013 68.47235 67.741 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(67.52, 67.605625, 67.6564285714286, 67.7014285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/12ezp1242240307.ps tmp/12ezp1242240307.png") > system("convert tmp/2ogbv1242240307.ps tmp/2ogbv1242240307.png") > system("convert tmp/3accd1242240307.ps tmp/3accd1242240307.png") > system("convert tmp/4y9k41242240307.ps tmp/4y9k41242240307.png") > system("convert tmp/57t9u1242240307.ps tmp/57t9u1242240307.png") > system("convert tmp/672g51242240308.ps tmp/672g51242240308.png") > system("convert tmp/7walp1242240308.ps tmp/7walp1242240308.png") > > > proc.time() user system elapsed 1.172 0.912 1.818