R version 2.7.2 (2008-08-25) 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(7.4,7.2,7.1,6.9,6.8,6.8,6.8,6.9,6.7,6.6,6.5,6.4,6.3,6.3,6.3,6.5,6.6,6.5,6.4,6.5,6.7,7.1,7.1,7.2,7.2,7.3,7.3,7.3,7.3,7.4,7.6,7.6,7.6,7.7,7.8,7.9,8.1,8.1,8.1,8.2,8.2,8.2,8.2,8.2,8.2,8.3,8.3,8.4,8.4,8.4,8.3,8,8,8.2,8.6,8.7,8.7,8.5,8.4,8.4,8.4,8.5,8.5,8.5,8.5,8.5,8.4,8.4,8.4,8.5,8.6,8.6,8.6,8.6,8.5,8.4,8.4,8.3,8.2,8.1,8.2,8.1,8,7.9,7.8,7.7,7.7,7.9,7.8,7.6,7.4,7.3,7.1,7.1,7,7,7,6.9,6.8,6.7,6.6,6.6) > 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] 102 > (np <- floor(n / par1)) [1] 8 > 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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0.1 -0.1 -0.1 NA [11,] -0.1 0.1 0.1 0.1 0.0 0.0 -0.1 0.0 NA [12,] -0.1 0.0 0.2 0.0 0.0 0.0 -0.1 0.0 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/1meza1225388085.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/2h2w11225388085.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/3l4m01225388085.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/442kw1225388085.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,] 6.3 6.3 6.3 6.5 6.6 6.5 6.4 6.50 6.7 6.6 6.50 6.4 [2,] 7.2 7.2 7.1 6.9 6.8 6.8 7.1 7.10 6.9 7.1 7.05 7.1 [3,] 7.8 7.7 7.7 7.9 7.8 7.6 7.9 7.85 7.9 7.9 7.90 7.9 [4,] 8.4 8.4 8.3 8.2 8.2 8.2 8.3 8.30 8.3 8.4 8.35 8.4 [5,] 8.6 8.6 8.5 8.5 8.5 8.5 8.6 8.70 8.7 8.5 8.60 8.6 $n [1] 9 9 9 9 9 9 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 7.168 7.068 7.068 7.215333 7.062667 6.862667 7.229663 7.179663 7.11794 [2,] 8.432 8.332 8.332 8.584667 8.537333 8.337333 8.570337 8.520337 8.68206 [,10] [,11] [,12] [1,] 7.173801 7.173801 7.173801 [2,] 8.626199 8.626199 8.626199 $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(6.3, 7.2, 7.8, 8.4, 8.6, 6.3, 7.2, 7.7, 8.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/559su1225388085.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.2 -0.1 -0.3 -0.1 -0.2 -0.20 -0.10 -0.20 -0.20 -0.10 -0.10 -0.10 [2,] -0.1 -0.1 -0.1 -0.1 -0.1 -0.10 -0.05 -0.10 -0.10 -0.10 -0.05 -0.05 [3,] 0.0 0.0 0.0 0.0 0.0 -0.05 0.00 0.00 0.05 -0.05 0.00 0.00 [4,] 0.0 0.0 0.1 0.0 0.0 0.10 0.10 0.05 0.10 0.05 0.10 0.00 [5,] 0.1 0.0 0.2 0.1 0.1 0.20 0.10 0.20 0.40 0.10 0.10 0.00 $n [1] 9 9 9 9 9 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.05266667 -0.05266667 -0.1053333 -0.05266667 -0.05266667 -0.16172287 [2,] 0.05266667 0.05266667 0.1053333 0.05266667 0.05266667 0.06172287 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.08379215 -0.08379215 -0.06172287 -0.13379215 -0.08379215 -0.02793072 [2,] 0.08379215 0.08379215 0.16172287 0.03379215 0.08379215 0.02793072 $out [1] 0.2 0.4 0.2 $group [1] 5 6 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.2, -0.0999999999999996, 0, 0, 0.0999999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6qtno1225388085.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] [1,] 6.40 6.30 7.20 8.10 8.00 8.4 7.90 7.00 6.60 [2,] 6.65 6.35 7.30 8.15 8.25 8.4 8.10 7.10 6.60 [3,] 6.80 6.50 7.50 8.20 8.40 8.5 8.25 7.50 6.75 [4,] 7.00 6.90 7.65 8.25 8.55 8.5 8.45 7.75 6.90 [5,] 7.40 7.20 7.90 8.40 8.70 8.6 8.60 7.90 7.00 $n [1] 12 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.640363 6.249141 7.340363 8.15439 8.263168 8.45439 8.090363 7.20353 [2,] 6.959637 6.750859 7.659637 8.24561 8.536832 8.54561 8.409637 7.79647 [,9] [1,] 6.55649 [2,] 6.94351 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(6.4, 6.65, 6.8, 7, 7.4, 6.3, 6.35, 6.5, 6.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/77su91225388085.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,] 7.566667 7.600 7.5000 [2,] 7.611111 7.750 7.5875 [3,] 7.694444 7.875 7.7125 [4,] 7.712500 7.900 7.7625 [5,] 7.737500 7.900 7.8000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.648200 7.806584 7.632681 [2,] 7.740689 7.943416 7.792319 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.56666666666667, 7.61111111111111, 7.69444444444444, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1meza1225388085.ps tmp/1meza1225388085.png") > system("convert tmp/2h2w11225388085.ps tmp/2h2w11225388085.png") > system("convert tmp/3l4m01225388085.ps tmp/3l4m01225388085.png") > system("convert tmp/442kw1225388085.ps tmp/442kw1225388085.png") > system("convert tmp/559su1225388085.ps tmp/559su1225388085.png") > system("convert tmp/6qtno1225388085.ps tmp/6qtno1225388085.png") > system("convert tmp/77su91225388085.ps tmp/77su91225388085.png") > > > proc.time() user system elapsed 1.412 0.961 1.661