R version 2.6.2 (2008-02-08) 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(71.42,71.47,71.64,71.55,71.62,71.65,71.65,71.65,71.6,71.7,71.73,71.83,71.83,71.87,71.91,71.99,72.1,72.12,72.12,72.12,72.25,72.59,72.72,72.76,72.76,72.91,73,73.16,73.16,73.11,73.11,73.33,73.51,73.66,73.65,73.65,73.65,73.65,73.71,73.73,73.85,73.77,73.77,73.78,73.88,74.3,74.53,74.71,74.71,74.78,74.9,74.65,74.65,74.53,74.53,74.53,74.65,74.85,74.96,74.96,74.96,75.19,74.98,75.54,75.61,75.59,75.58,75.44,75.37,75.22,75.33,75.33) > 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,] 71.42 71.83 72.76 73.65 74.71 74.96 NA [2,] 71.47 71.87 72.91 73.65 74.78 75.19 NA [3,] 71.64 71.91 73.00 73.71 74.90 74.98 NA [4,] 71.55 71.99 73.16 73.73 74.65 75.54 NA [5,] 71.62 72.10 73.16 73.85 74.65 75.61 NA [6,] 71.65 72.12 73.11 73.77 74.53 75.59 NA [7,] 71.65 72.12 73.11 73.77 74.53 75.58 NA [8,] 71.65 72.12 73.33 73.78 74.53 75.44 NA [9,] 71.60 72.25 73.51 73.88 74.65 75.37 NA [10,] 71.70 72.59 73.66 74.30 74.85 75.22 NA [11,] 71.73 72.72 73.65 74.53 74.96 75.33 NA [12,] 71.83 72.76 73.65 74.71 74.96 75.33 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.05 0.04 0.15 0.00 0.07 0.23 NA [2,] 0.17 0.04 0.09 0.06 0.12 -0.21 NA [3,] -0.09 0.08 0.16 0.02 -0.25 0.56 NA [4,] 0.07 0.11 0.00 0.12 0.00 0.07 NA [5,] 0.03 0.02 -0.05 -0.08 -0.12 -0.02 NA [6,] 0.00 0.00 0.00 0.00 0.00 -0.01 NA [7,] 0.00 0.00 0.22 0.01 0.00 -0.14 NA [8,] -0.05 0.13 0.18 0.10 0.12 -0.07 NA [9,] 0.10 0.34 0.15 0.42 0.20 -0.15 NA [10,] 0.03 0.13 -0.01 0.23 0.11 0.11 NA [11,] 0.10 0.04 0.00 0.18 0.00 0.00 NA [12,] 0.00 0.00 0.00 0.00 0.00 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/1v0bb1209295265.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/2dhor1209295265.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/3dhyo1209295265.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/45lir1209295265.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,] 71.420 71.47 71.640 71.550 71.620 71.65 71.65 71.650 71.600 71.70 71.73 [2,] 71.830 71.87 71.910 71.990 72.100 72.12 72.12 72.120 72.250 72.59 72.72 [3,] 73.205 73.28 73.355 73.445 73.505 73.44 73.44 73.555 73.695 73.98 74.09 [4,] 74.710 74.78 74.900 74.650 74.650 74.53 74.53 74.530 74.650 74.85 74.96 [5,] 74.960 75.19 74.980 75.540 75.610 75.59 75.58 75.440 75.370 75.22 75.33 [,12] [1,] 71.83 [2,] 72.76 [3,] 74.18 [4,] 74.96 [5,] 75.33 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 71.3473 71.40296 71.42635 71.72921 71.86017 71.88547 71.88547 72.00047 [2,] 75.0627 75.15704 75.28365 75.16079 75.14983 74.99453 74.99453 75.10953 [,9] [,10] [,11] [,12] [1,] 72.14692 72.52223 72.64513 72.76093 [2,] 75.24308 75.43777 75.53487 75.59907 $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(71.42, 71.83, 73.205, 74.71, 74.96, 71.47, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58vlo1209295265.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.00 0.040 -0.25 0.00 -0.120 0 0.00 -0.07 -0.150 -0.01 0.00 0 [2,] 0.04 0.040 -0.09 0.00 -0.080 0 0.00 -0.05 0.100 0.03 0.00 0 [3,] 0.06 0.075 0.05 0.07 -0.035 0 0.00 0.11 0.175 0.11 0.02 0 [4,] 0.15 0.120 0.16 0.11 0.020 0 0.01 0.13 0.340 0.13 0.10 0 [5,] 0.23 0.170 0.16 0.12 0.030 0 0.01 0.18 0.420 0.23 0.18 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01095355 0.02339742 -0.1112581 -0.0009535529 -0.09950323 0 [2,] 0.13095355 0.12660258 0.2112581 0.1409535529 0.02950323 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.006450323 -0.006105814 0.02019225 0.04549677 -0.04450323 0 [2,] 0.006450323 0.226105814 0.32980775 0.17450323 0.08450323 0 $out [1] -0.21 0.56 -0.01 0.22 -0.14 $group [1] 2 3 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.0400000000000063, 0.0600000000000023, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fcij1209295265.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,] 71.470 71.83 72.760 73.650 74.530 74.960 NA [2,] 71.575 71.95 73.055 73.720 74.590 75.205 NA [3,] 71.645 72.12 73.160 73.775 74.680 75.350 NA [4,] 71.675 72.42 73.580 74.090 74.875 75.560 NA [5,] 71.730 72.76 73.660 74.530 74.960 75.610 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 71.59939 71.90563 72.92054 73.60624 74.55001 75.18808 NA [2,] 71.69061 72.33437 73.39946 73.94376 74.80999 75.51192 NA $out [1] 71.42 71.83 74.71 $group [1] 1 1 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(71.47, 71.575, 71.645, 71.675, 71.73, 71.83, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70qgm1209295265.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,] 73.22167 73.2050 73.25375 [2,] 73.39667 73.3975 73.35250 [3,] 73.46833 73.4750 73.38750 [4,] 73.63167 73.8375 73.64812 [5,] 73.87333 74.1800 73.94000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 73.36115 73.27431 73.25266 [2,] 73.57552 73.67569 73.52234 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(73.2216666666667, 73.3966666666667, 73.4683333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1v0bb1209295265.ps tmp/1v0bb1209295265.png") > system("convert tmp/2dhor1209295265.ps tmp/2dhor1209295265.png") > system("convert tmp/3dhyo1209295265.ps tmp/3dhyo1209295265.png") > system("convert tmp/45lir1209295265.ps tmp/45lir1209295265.png") > system("convert tmp/58vlo1209295265.ps tmp/58vlo1209295265.png") > system("convert tmp/6fcij1209295265.ps tmp/6fcij1209295265.png") > system("convert tmp/70qgm1209295265.ps tmp/70qgm1209295265.png") > > > proc.time() user system elapsed 1.521 1.026 3.559