R version 2.7.0 (2008-04-22) 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(44.9,48.1,52.3,48.9,52.6,60.3,50.5,41.6,56,51.4,52.9,54.9,43.9,51,51.9,54.3,50.3,57.2,48.8,41.1,58,63,53.8,54.7,55.5,56.1,69.6,69.4,57.2,68,53.3,47.9,60.8,61.7,57.8,51.4,50.5,48.1,58.7,54,56.1,60.4,51.2,50.7,56.4,53.3,52.6,47.7,49.5,48.5,55.3,49.8,57.4,64.6,53,41.5,55.9,58.4,53.5,50.6,58.5) > 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,] 44.9 43.9 55.5 50.5 49.5 58.5 [2,] 48.1 51.0 56.1 48.1 48.5 NA [3,] 52.3 51.9 69.6 58.7 55.3 NA [4,] 48.9 54.3 69.4 54.0 49.8 NA [5,] 52.6 50.3 57.2 56.1 57.4 NA [6,] 60.3 57.2 68.0 60.4 64.6 NA [7,] 50.5 48.8 53.3 51.2 53.0 NA [8,] 41.6 41.1 47.9 50.7 41.5 NA [9,] 56.0 58.0 60.8 56.4 55.9 NA [10,] 51.4 63.0 61.7 53.3 58.4 NA [11,] 52.9 53.8 57.8 52.6 53.5 NA [12,] 54.9 54.7 51.4 47.7 50.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.2 7.1 0.6 -2.4 -1.0 NA [2,] 4.2 0.9 13.5 10.6 6.8 NA [3,] -3.4 2.4 -0.2 -4.7 -5.5 NA [4,] 3.7 -4.0 -12.2 2.1 7.6 NA [5,] 7.7 6.9 10.8 4.3 7.2 NA [6,] -9.8 -8.4 -14.7 -9.2 -11.6 NA [7,] -8.9 -7.7 -5.4 -0.5 -11.5 NA [8,] 14.4 16.9 12.9 5.7 14.4 NA [9,] -4.6 5.0 0.9 -3.1 2.5 NA [10,] 1.5 -9.2 -3.9 -0.7 -4.9 NA [11,] 2.0 0.9 -6.4 -4.9 -2.9 NA [12,] -11.0 0.8 -0.9 1.8 7.9 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/1ij2q1228471933.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/2igno1228471933.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/37p5a1228471933.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/4pawm1228471933.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,] 43.9 48.1 51.9 48.9 50.3 57.2 48.8 41.1 55.9 51.4 52.6 47.7 [2,] 44.9 48.1 52.3 49.8 52.6 60.3 50.5 41.5 56.0 53.3 52.9 50.6 [3,] 50.0 48.5 55.3 54.0 56.1 60.4 51.2 41.6 56.4 58.4 53.5 51.4 [4,] 55.5 51.0 58.7 54.3 57.2 64.6 53.0 47.9 58.0 61.7 53.8 54.7 [5,] 58.5 51.0 58.7 54.3 57.4 68.0 53.3 50.7 60.8 63.0 53.8 54.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,] 43.16266 46.45087 50.77778 50.82031 52.84965 57.36163 49.43351 37.07778 [2,] 56.83734 50.54913 59.82222 57.17969 59.35035 63.43837 52.96649 46.12222 [,9] [,10] [,11] [,12] [1,] 54.9868 52.46458 52.86406 48.50295 [2,] 57.8132 64.33542 54.13594 54.29705 $out [1] 56.1 69.6 69.4 57.8 $group [1] 2 3 4 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(43.9, 44.9, 50, 55.5, 58.5, 48.1, 48.1, 48.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fimx1228471933.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.4 0.9 -5.5 -12.2 6.9 -14.7 -11.5 12.9 -4.6 -9.2 -6.4 -0.9 [2,] -1.0 4.2 -4.7 -4.0 6.9 -11.6 -8.9 12.9 -3.1 -4.9 -4.9 -0.9 [3,] 0.6 6.8 -3.4 2.1 7.2 -9.8 -7.7 14.4 0.9 -3.9 -2.9 0.8 [4,] 3.2 10.6 -0.2 3.7 7.7 -9.2 -5.4 14.4 2.5 -0.7 0.9 1.8 [5,] 7.1 13.5 2.4 7.6 7.7 -8.4 -0.5 14.4 5.0 1.5 2.0 1.8 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.367709 2.277776 -6.5796887 -3.340801 6.634722 -11.495834 -10.173091 [2,] 3.567709 11.322224 -0.2203113 7.540801 7.765278 -8.104166 -5.226909 [,8] [,9] [,10] [,11] [,12] [1,] 13.34010 -3.056946 -6.8677094 -6.998265 -1.107813 [2,] 15.45990 4.856946 -0.9322906 1.198265 2.707813 $out [1] 10.8 4.3 16.9 5.7 -11.0 7.9 $group [1] 5 5 8 8 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.4, -1, 0.600000000000001, 3.2, 7.1, 0.899999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wso21228471933.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,] 41.60 41.10 47.90 47.70 41.50 58.5 [2,] 48.50 49.55 54.40 50.60 49.65 58.5 [3,] 51.85 52.85 57.50 52.95 53.25 58.5 [4,] 53.90 55.95 64.85 56.25 56.65 58.5 [5,] 60.30 63.00 69.60 60.40 64.60 58.5 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 49.38702 49.93092 52.73368 50.373 50.05725 58.5 [2,] 54.31298 55.76908 62.26632 55.527 56.44275 58.5 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(41.6, 48.5, 51.85, 53.9, 60.3, 41.1, 49.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/77sbq1228471933.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,] 44.56000 48.50 44.70 [2,] 50.91333 50.60 50.95 [3,] 54.42000 53.75 53.00 [4,] 57.49000 56.25 56.25 [5,] 62.10000 60.40 62.45 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 51.42034 51.173 50.58263 [2,] 57.41966 56.327 55.41737 $out [1] 41.6 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(44.56, 50.9133333333333, 54.42, 57.49, 62.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ij2q1228471933.ps tmp/1ij2q1228471933.png") > system("convert tmp/2igno1228471933.ps tmp/2igno1228471933.png") > system("convert tmp/37p5a1228471933.ps tmp/37p5a1228471933.png") > system("convert tmp/4pawm1228471933.ps tmp/4pawm1228471933.png") > system("convert tmp/5fimx1228471933.ps tmp/5fimx1228471933.png") > system("convert tmp/6wso21228471933.ps tmp/6wso21228471933.png") > system("convert tmp/77sbq1228471933.ps tmp/77sbq1228471933.png") > > > proc.time() user system elapsed 2.563 1.579 2.811