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(38,32,35,33,37,29,31,36,35,38,31,34,35,38,37,33,32,38,38,32,33,31,38,39,32,32,35,37,33,33,28,32,31,37,30,33,31,33,31,33,32,33,32,33,28,35,39,34,38,32,38,30,33,38,32,32,34,34,36,34,28,34,35,35,31,37,35,27,40,37,36,38,39,41,27,30,37,31,31,27,36,38,37,33,34,31,39,34,32,33,36,32,41,28,30,36,35,31,34,36,36,35,37,28,39,32,35,39,35,42,34,33,41,33,34,32,40,40,35,36,37,27,39,38,31,33,32,39,36,33,33,32,37,30,38,29,22,35,35,34,35,34,34,35,23,31,27,36,31,32,39,37,38,39,34,31,32,37,36,32,35,36) > 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] 162 > (np <- floor(n / par1)) [1] 13 > 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] 14 14 14 14 14 14 13 13 13 13 13 13 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 38 35 32 31 38 28 39 34 35 35 37 37 23 [2,] 32 38 32 33 32 34 41 31 31 42 27 30 31 [3,] 35 37 35 31 38 35 27 39 34 34 39 38 27 [4,] 33 33 37 33 30 35 30 34 36 33 38 29 36 [5,] 37 32 33 32 33 31 37 32 36 41 31 22 31 [6,] 29 38 33 33 38 37 31 33 35 33 33 35 32 [7,] 31 38 28 32 32 35 31 36 37 34 32 35 39 [8,] 36 32 32 33 32 27 27 32 28 32 39 34 37 [9,] 35 33 31 28 34 40 36 41 39 40 36 35 38 [10,] 38 31 37 35 34 37 38 28 32 40 33 34 39 [11,] 31 38 30 39 36 36 37 30 35 35 33 34 34 [12,] 34 39 33 34 34 38 33 36 39 36 32 35 31 [,14] [1,] 32 [2,] 37 [3,] 36 [4,] 32 [5,] 35 [6,] 36 [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] -6 3 0 2 -6 6 2 -3 -4 7 -10 -7 8 [2,] 3 -1 3 -2 6 1 -14 8 3 -8 12 8 -4 [3,] -2 -4 2 2 -8 0 3 -5 2 -1 -1 -9 9 [4,] 4 -1 -4 -1 3 -4 7 -2 0 8 -7 -7 -5 [5,] -8 6 0 1 5 6 -6 1 -1 -8 2 13 1 [6,] 2 0 -5 -1 -6 -2 0 3 2 1 -1 0 7 [7,] 5 -6 4 1 0 -8 -4 -4 -9 -2 7 -1 -2 [8,] -1 1 -1 -5 2 13 9 9 11 8 -3 1 1 [9,] 3 -2 6 7 0 -3 2 -13 -7 0 -3 -1 1 [10,] -7 7 -7 4 2 -1 -1 2 3 -5 0 0 -5 [11,] 3 1 3 -5 -2 2 -4 6 4 1 -1 1 -3 [12,] 1 -7 -2 4 -6 1 1 -1 -4 1 5 -12 1 [,14] [1,] 5 [2,] -1 [3,] -4 [4,] 3 [5,] 1 [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/1d9l61290856808.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/2d9l61290856808.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/3d9l61290856808.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/4oi2r1290856808.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,] 28 27 31 29 31.0 29 28 32 28 28 30 31 [2,] 32 31 34 32 31.0 33 32 32 34 33 33 33 [3,] 35 32 35 33 32.5 33 34 32 36 35 35 34 [4,] 37 37 38 36 36.0 36 36 34 39 38 36 36 [5,] 39 42 39 38 41.0 38 39 37 41 40 39 39 $n [1] 14 14 14 14 14 14 13 13 13 13 13 13 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 32.88864 29.46636 33.31091 31.31091 30.38864 31.73318 32.24715 31.12357 [2,] 37.11136 34.53364 36.68909 34.68909 34.61136 34.26682 35.75285 32.87643 [,9] [,10] [,11] [,12] [1,] 33.80893 32.80893 33.68536 32.68536 [2,] 38.19107 37.19107 36.31464 35.31464 $out [1] 23 27 27 22 27 27 28 39 $group [1] 1 3 3 5 8 8 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(28, 32, 35, 37, 39, 27, 31, 32, 37, 42, 31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5oi2r1290856808.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,] -10 -14 -9 -7 -8 -5 -9 -5 -7 -7 -5 -7 [2,] -6 -2 -4 -4 -1 -1 -4 -1 -3 -5 -2 -4 [3,] 1 2 -1 -1 1 0 -2 1 0 0 1 1 [4,] 5 6 2 3 5 2 1 9 2 2 3 1 [5,] 8 12 9 8 13 3 7 13 7 7 6 5 $n [1] 14 14 14 14 14 13 13 13 13 13 13 13 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.645000 -1.378182 -3.533637 -3.955909 -1.533637 -1.314639 -4.1910658 [2,] 5.645000 5.378182 1.533637 1.955909 3.533637 1.314639 0.1910658 [,8] [,9] [,10] [,11] [,12] [1,] -3.382132 -2.191066 -3.067492 -1.191066 -1.191066 [2,] 5.382132 2.191066 3.067492 3.191066 3.191066 $out [1] -6 7 -13 -12 $group [1] 6 6 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-10, -6, 1, 5, 8, -14, -2, 2, 6, 12, -9, -4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6h9ju1290856808.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] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 29.0 31.0 28.0 31.0 30 27.0 27.0 28.0 28.0 32.0 27.0 29.0 23.0 32.0 [2,] 31.5 32.5 31.5 31.5 32 32.5 30.5 31.5 33.0 33.5 32.0 32.0 31.0 32.0 [3,] 34.5 36.0 32.5 33.0 34 35.0 34.5 33.5 35.0 35.0 33.0 34.5 33.0 35.5 [4,] 36.5 38.0 34.0 33.5 37 37.0 37.5 36.0 36.5 40.0 37.5 35.0 37.5 36.0 [5,] 38.0 39.0 37.0 35.0 38 40.0 41.0 41.0 39.0 42.0 39.0 38.0 39.0 37.0 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 32.21947 33.49141 31.35973 32.08779 31.71947 32.94752 31.30725 31.44752 [2,] 36.78053 38.50859 33.64027 33.91221 36.28053 37.05248 37.69275 35.55248 [,9] [,10] [,11] [,12] [,13] [,14] [1,] 33.40363 32.03531 30.49141 33.13168 30.03531 32.91987 [2,] 36.59637 37.96469 35.50859 35.86832 35.96469 38.08013 $out [1] 28 39 22 $group [1] 4 4 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" NA Warning message: In bxp(list(stats = c(29, 31.5, 34.5, 36.5, 38, 31, 32.5, 36, 38, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7h9ju1290856808.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,] 32.38462 32.00 33.0000 [2,] 33.57143 32.75 33.8125 [3,] 33.92857 34.00 34.4375 [4,] 34.78297 35.00 35.0000 [5,] 35.84615 36.00 36.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 33.37598 32.97376 33.89587 [2,] 34.48116 35.02624 34.97913 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(32.3846153846154, 33.5714285714286, 33.9285714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d9l61290856808.ps tmp/1d9l61290856808.png",intern=TRUE)) character(0) > try(system("convert tmp/2d9l61290856808.ps tmp/2d9l61290856808.png",intern=TRUE)) character(0) > try(system("convert tmp/3d9l61290856808.ps tmp/3d9l61290856808.png",intern=TRUE)) character(0) > try(system("convert tmp/4oi2r1290856808.ps tmp/4oi2r1290856808.png",intern=TRUE)) character(0) > try(system("convert tmp/5oi2r1290856808.ps tmp/5oi2r1290856808.png",intern=TRUE)) character(0) > try(system("convert tmp/6h9ju1290856808.ps tmp/6h9ju1290856808.png",intern=TRUE)) character(0) > try(system("convert tmp/7h9ju1290856808.ps tmp/7h9ju1290856808.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.310 1.053 3.623