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(80.2,74.8,77.8,73,72,75.8,72.6,71.9,74.8,72.9,72.9,79.9,74,76,69.6,77.3,75.2,75.8,77.6,76.7,77,77.9,76.7,71.9,73.4,72.5,73.7,69.5,74.7,72.5,72.1,70.7,71.4,69.5,73.5,72.4,74.5,72.2,73,73.3,71.3,73.6,71.3,71.2,81.4,76.1,71.1,75.7,70,68.5,56.7,57.9,58.8,59.3,61.3,62.9,61.4,64.5,63.8,61.6,64.7) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 80.2 74.0 73.4 74.5 70.0 64.7 [2,] 74.8 76.0 72.5 72.2 68.5 NA [3,] 77.8 69.6 73.7 73.0 56.7 NA [4,] 73.0 77.3 69.5 73.3 57.9 NA [5,] 72.0 75.2 74.7 71.3 58.8 NA [6,] 75.8 75.8 72.5 73.6 59.3 NA [7,] 72.6 77.6 72.1 71.3 61.3 NA [8,] 71.9 76.7 70.7 71.2 62.9 NA [9,] 74.8 77.0 71.4 81.4 61.4 NA [10,] 72.9 77.9 69.5 76.1 64.5 NA [11,] 72.9 76.7 73.5 71.1 63.8 NA [12,] 79.9 71.9 72.4 75.7 61.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -5.4 2.0 -0.9 -2.3 -1.5 NA [2,] 3.0 -6.4 1.2 0.8 -11.8 NA [3,] -4.8 7.7 -4.2 0.3 1.2 NA [4,] -1.0 -2.1 5.2 -2.0 0.9 NA [5,] 3.8 0.6 -2.2 2.3 0.5 NA [6,] -3.2 1.8 -0.4 -2.3 2.0 NA [7,] -0.7 -0.9 -1.4 -0.1 1.6 NA [8,] 2.9 0.3 0.7 10.2 -1.5 NA [9,] -1.9 0.9 -1.9 -5.3 3.1 NA [10,] 0.0 -1.2 4.0 -5.0 -0.7 NA [11,] 7.0 -4.8 -1.1 4.6 -2.2 NA [12,] -5.9 1.5 2.1 -5.7 3.1 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/1lfgu1258118600.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/2wgnk1258118600.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/35bnk1258118600.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/4rtrq1258118600.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,] 64.7 68.5 69.6 69.5 71.3 72.5 71.3 70.7 71.4 64.5 71.1 71.9 [2,] 70.0 72.2 69.6 69.5 71.3 72.5 71.3 70.7 71.4 69.5 71.1 71.9 [3,] 73.7 72.5 73.0 73.0 72.0 73.6 72.1 71.2 74.8 72.9 72.9 72.4 [4,] 74.5 74.8 73.7 73.3 74.7 75.8 72.6 71.9 77.0 76.1 73.5 75.7 [5,] 80.2 76.0 77.8 77.3 75.2 75.8 72.6 71.9 81.4 77.9 76.7 79.9 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 70.79735 70.66285 70.10295 70.31493 69.59757 71.26823 71.18142 70.35208 [2,] 76.60265 74.33715 75.89705 75.68507 74.40243 75.93177 73.01858 72.04792 [,9] [,10] [,11] [,12] [1,] 70.84305 68.23646 71.20417 69.71493 [2,] 78.75695 77.56354 74.59583 75.08507 $out [1] 56.7 57.9 58.8 59.3 77.6 61.3 76.7 62.9 61.4 63.8 61.6 $group [1] 3 4 5 6 7 7 8 8 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(64.7, 70, 73.7, 74.5, 80.2, 68.5, 72.2, 72.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5k4sm1258118600.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,] -2.3 -11.8 -4.8 -2.1 0.5 -3.2 -1.4 -1.5 -5.3 -1.2 -4.8 -5.9 [2,] -2.3 -6.4 -4.2 -2.0 0.5 -2.3 -0.9 0.3 -1.9 -1.2 -2.2 -5.7 [3,] -1.5 0.8 0.3 -1.0 0.6 -0.4 -0.7 0.7 -1.9 -0.7 -1.1 1.5 [4,] -0.9 1.2 1.2 0.9 2.3 1.8 -0.1 2.9 0.9 0.0 4.6 2.1 [5,] -0.9 3.0 7.7 5.2 3.8 2.0 -0.1 2.9 3.1 0.0 7.0 3.1 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.4892365 -4.570141 -3.515626 -3.049133 -0.6718755 -3.297050 -1.2652780 [2,] -0.5107635 6.170141 4.115626 1.049133 1.8718755 2.497050 -0.1347220 [,8] [,9] [,10] [,11] [,12] [1,] -1.137153 -3.87847295 -1.5479170 -5.904863 -4.01146 [2,] 2.537153 0.07847295 0.1479170 3.704863 7.01146 $out [1] -5.4 2.0 -2.2 1.6 10.2 4.0 -5.0 $group [1] 1 1 5 7 8 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.30000000000000, -2.30000000000000, -1.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65ss31258118600.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] [1,] 71.90 71.90 69.50 71.10 56.70 64.7 [2,] 72.75 74.60 71.05 71.30 59.05 64.7 [3,] 73.90 76.35 72.45 73.15 61.50 64.7 [4,] 76.80 77.15 73.45 75.10 64.15 64.7 [5,] 80.20 77.90 74.70 76.10 70.00 64.7 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 72.05277 75.18693 71.35534 71.4168 59.17386 64.7 [2,] 75.74723 77.51307 73.54466 74.8832 63.82614 64.7 $out [1] 69.6 81.4 $group [1] 2 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(71.9, 72.75, 73.9, 76.8, 80.2, 71.9, 74.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/796l81258118600.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,] 70.16 71.20 71.30000 [2,] 70.54 72.25 71.80000 [3,] 71.50 72.90 72.70625 [4,] 72.55 73.30 73.65000 [5,] 73.20 74.80 74.20000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 70.58323 72.42109 71.86245 [2,] 72.41677 73.37891 73.55005 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(70.16, 70.54, 71.5, 72.55, 73.2, 71.2, 72.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1lfgu1258118600.ps tmp/1lfgu1258118600.png") > system("convert tmp/2wgnk1258118600.ps tmp/2wgnk1258118600.png") > system("convert tmp/35bnk1258118600.ps tmp/35bnk1258118600.png") > system("convert tmp/4rtrq1258118600.ps tmp/4rtrq1258118600.png") > system("convert tmp/5k4sm1258118600.ps tmp/5k4sm1258118600.png") > system("convert tmp/65ss31258118600.ps tmp/65ss31258118600.png") > system("convert tmp/796l81258118600.ps tmp/796l81258118600.png") > > > proc.time() user system elapsed 1.215 0.963 1.799