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(20.7,21.2,20.7,19.6,18.6,18.7,23.8,24.9,24.8,23.8,22.3,21.7,20.7,19.7,18.4,17.4,17,18,23.8,25.5,25.6,23.7,22,21.3,20.7,20.4,20.3,20.4,19.8,19.5,23.1,23.5,23.5,22.9,21.9,21.5,20.5,20.2,19.4,19.2,18.8,18.8,22.6,23.3,23,21.4,19.9,18.8,18.6,18.4,18.6,19.9,19.2,18.4,21.1,20.5,19.1,18.1,17,17.1,17.4,16.8,15.3,14.3,13.4,15.3,22.1,23.7,22.2,19.5,16.6,17.3) > 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,] 20.7 20.7 20.7 20.5 18.6 17.4 NA [2,] 21.2 19.7 20.4 20.2 18.4 16.8 NA [3,] 20.7 18.4 20.3 19.4 18.6 15.3 NA [4,] 19.6 17.4 20.4 19.2 19.9 14.3 NA [5,] 18.6 17.0 19.8 18.8 19.2 13.4 NA [6,] 18.7 18.0 19.5 18.8 18.4 15.3 NA [7,] 23.8 23.8 23.1 22.6 21.1 22.1 NA [8,] 24.9 25.5 23.5 23.3 20.5 23.7 NA [9,] 24.8 25.6 23.5 23.0 19.1 22.2 NA [10,] 23.8 23.7 22.9 21.4 18.1 19.5 NA [11,] 22.3 22.0 21.9 19.9 17.0 16.6 NA [12,] 21.7 21.3 21.5 18.8 17.1 17.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.5 -1.0 -0.3 -0.3 -0.2 -0.6 NA [2,] -0.5 -1.3 -0.1 -0.8 0.2 -1.5 NA [3,] -1.1 -1.0 0.1 -0.2 1.3 -1.0 NA [4,] -1.0 -0.4 -0.6 -0.4 -0.7 -0.9 NA [5,] 0.1 1.0 -0.3 0.0 -0.8 1.9 NA [6,] 5.1 5.8 3.6 3.8 2.7 6.8 NA [7,] 1.1 1.7 0.4 0.7 -0.6 1.6 NA [8,] -0.1 0.1 0.0 -0.3 -1.4 -1.5 NA [9,] -1.0 -1.9 -0.6 -1.6 -1.0 -2.7 NA [10,] -1.5 -1.7 -1.0 -1.5 -1.1 -2.9 NA [11,] -0.6 -0.7 -0.4 -1.1 0.1 0.7 NA [12,] -1.0 -0.6 -1.0 -0.2 0.3 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/1c5fw1258138486.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/2l9fi1258138486.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/3f1jo1258138486.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/4c2l21258138486.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,] 17.4 16.80 18.4 14.3 17.0 18.00 21.10 23.3 19.10 18.10 16.6 17.10 [2,] 18.6 18.40 18.4 17.4 17.0 18.00 22.10 23.3 22.20 19.50 17.0 17.30 [3,] 20.6 19.95 19.0 19.4 18.7 18.55 22.85 23.6 23.25 22.15 20.9 20.05 [4,] 20.7 20.40 20.3 19.9 19.2 18.80 23.80 24.9 24.80 23.70 22.0 21.50 [5,] 20.7 21.20 20.7 20.4 19.8 19.50 23.80 25.5 25.60 23.80 22.3 21.70 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19.24543 18.65994 17.77444 17.78742 17.28093 18.03397 21.75345 22.56795 [2,] 21.95457 21.24006 20.22556 21.01258 20.11907 19.06603 23.94655 24.63205 [,9] [,10] [,11] [,12] [1,] 21.57292 19.44086 17.67484 17.34086 [2,] 24.92708 24.85914 24.12516 22.75914 $out [1] 15.3 13.4 15.3 20.5 $group [1] 3 5 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17.4, 18.6, 20.6, 20.7, 20.7, 16.8, 18.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5aybm1258138486.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,] -1.0 -1.50 -1.1 -1.00 -0.80 2.70 -0.6 -1.5 -2.7 -1.7 -1.1 -1.0 [2,] -0.6 -1.30 -1.0 -0.90 -0.30 3.60 0.4 -1.4 -1.9 -1.7 -0.7 -1.0 [3,] -0.3 -0.65 -0.6 -0.65 0.05 4.45 0.9 -0.2 -1.3 -1.5 -0.5 -0.6 [4,] -0.2 -0.10 0.1 -0.40 1.00 5.80 1.6 0.0 -1.0 -1.1 0.1 -0.2 [5,] -0.2 0.20 1.3 -0.40 1.90 6.80 1.7 0.1 -0.6 -1.0 0.7 0.3 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.55801292 -1.4240388 -1.3095355 -0.9725161 -0.788542 3.030929 0.1259612 [2,] -0.04198708 0.1240388 0.1095355 -0.3274839 0.888542 5.869071 1.6740388 [,8] [,9] [,10] [,11] [,12] [1,] -1.1030452 -1.880529 -1.887019 -1.01602584 -1.16527798 [2,] 0.7030452 -0.719471 -1.112981 0.01602584 -0.03472202 $out [1] 0.5 -2.9 $group [1] 1 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, -0.599999999999998, -0.300000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vvto1258138486.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.60 17.00 19.50 18.80 17.00 13.40 NA [2,] 20.15 18.20 20.35 19.00 18.25 15.30 NA [3,] 21.45 21.00 21.10 20.05 18.60 17.05 NA [4,] 23.80 23.75 23.00 22.00 19.55 20.80 NA [5,] 24.90 25.60 23.50 23.30 21.10 23.70 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 19.78521 18.46861 19.89132 18.68168 18.00706 14.54141 NA [2,] 23.11479 23.53139 22.30868 21.41832 19.19294 19.55859 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(18.6, 20.15, 21.45, 23.8, 24.9, 17, 18.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7il781258138486.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,] 17.80000 18.550 18.25000 [2,] 18.62500 19.200 19.05000 [3,] 19.69167 20.325 19.70625 [4,] 22.15833 22.500 22.33125 [5,] 23.56667 23.600 23.97500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 18.08009 18.81985 18.20965 [2,] 21.30324 21.83015 21.20285 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(17.8, 18.625, 19.6916666666667, 22.1583333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1c5fw1258138486.ps tmp/1c5fw1258138486.png") > system("convert tmp/2l9fi1258138486.ps tmp/2l9fi1258138486.png") > system("convert tmp/3f1jo1258138486.ps tmp/3f1jo1258138486.png") > system("convert tmp/4c2l21258138486.ps tmp/4c2l21258138486.png") > system("convert tmp/5aybm1258138486.ps tmp/5aybm1258138486.png") > system("convert tmp/6vvto1258138486.ps tmp/6vvto1258138486.png") > system("convert tmp/7il781258138486.ps tmp/7il781258138486.png") > > > proc.time() user system elapsed 1.222 1.007 1.714