R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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.6,7.4,7.3,7.1,6.9,6.8,7.5,7.6,7.8,8,8.1,8.2,8.3,8.2,8,7.9,7.6,7.6,8.3,8.4,8.4,8.4,8.4,8.6,8.9,8.8,8.3,7.5,7.2,7.4,8.8,9.3,9.3,8.7,8.2,8.3,8.5,8.6,8.5,8.2,8.1,7.9,8.6,8.7,8.7,8.5,8.4,8.5,8.7,8.7,8.6,8.5,8.3,8,8.2,8.1,8.1,8,7.9,7.9,8,8,7.9,8,7.7,7.2,7.5,7.3,7,7,7,7.2,7.3,7.1,6.8,6.4,6.1,6.5,7.7,7.9,7.5,6.9,6.6,6.9,7.7,8,8,7.7,7.3,7.4,8.1,8.3,8.1,7.9,7.9,8.3,8.6,8.7,8.5,8.3,8,8,8.8,8.7,8.5,8.1,7.8,7.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] 108 > (np <- floor(n / par1)) [1] 9 > 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]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] 0.2 0.0 0.0 0.0 0.0 -0.3 -0.4 -0.2 -0.2 NA [9,] 0.2 0.0 -0.6 -0.2 -0.1 0.0 -0.6 -0.2 -0.4 NA [10,] 0.1 0.0 -0.5 -0.1 -0.1 0.0 -0.3 0.0 -0.3 NA [11,] 0.1 0.2 0.1 0.1 0.0 0.2 0.3 0.4 -0.2 NA [12,] 0.1 0.3 0.2 0.2 0.1 0.1 0.8 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/wessaorg/rcomp/tmp/12jqm1319279563.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2zqt71319279563.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/35tv11319279563.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4lojo1319279563.ps",horizontal=F,onefile=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,] 7.3 7.1 7.3 7.1 6.1 6.5 7.5 7.3 7.0 7.9 7.8 6.9 [2,] 7.7 8.0 7.9 7.5 7.2 7.2 7.7 7.9 7.8 7.9 7.8 7.6 [3,] 8.3 8.2 8.0 7.9 7.6 7.4 8.2 8.3 8.1 8.0 7.9 8.2 [4,] 8.6 8.7 8.5 8.2 8.0 7.9 8.6 8.7 8.5 8.4 8.2 8.3 [5,] 8.9 8.8 8.6 8.5 8.3 8.0 8.8 9.3 9.3 8.7 8.4 8.6 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 7.826 7.831333 7.684 7.531333 7.178667 7.031333 7.726 7.878667 7.731333 [2,] 8.774 8.568667 8.316 8.268667 8.021333 7.768667 8.674 8.721333 8.468667 [,10] [,11] [,12] [1,] 7.736667 7.689333 7.831333 [2,] 8.263333 8.110667 8.568667 $out [1] 6.8 6.4 7.0 6.9 7.0 6.6 $group [1] 3 4 10 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(7.3, 7.7, 8.3, 8.6, 8.9, 7.1, 8, 8.2, 8.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/50gh71319279563.ps",horizontal=F,onefile=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.3 -0.4 -0.4 -0.5 0.7 -0.2 -0.4 -0.6 -0.5 0.0 0.1 [2,] -0.1 -0.2 -0.3 -0.3 -0.2 0.7 -0.1 -0.2 -0.4 -0.3 0.1 0.1 [3,] 0.0 -0.1 -0.2 -0.3 0.0 0.7 0.1 0.0 -0.2 -0.1 0.1 0.2 [4,] 0.1 -0.1 -0.1 -0.2 0.1 0.8 0.2 0.0 0.0 0.0 0.2 0.3 [5,] 0.3 0.0 0.1 -0.1 0.4 0.8 0.5 0.2 0.2 0.1 0.3 0.3 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.1053333 -0.15266667 -0.30533333 -0.3526667 -0.158 0.6473333 -0.058 [2,] 0.1053333 -0.04733333 -0.09466667 -0.2473333 0.158 0.7526667 0.258 [,8] [,9] [,10] [,11] [,12] [1,] -0.1053333 -0.41066667 -0.258 0.04733333 0.08827713 [2,] 0.1053333 0.01066667 0.058 0.15266667 0.31172287 $out [1] -0.5 -0.8 1.4 0.2 0.3 1.2 0.4 -0.2 0.8 $group [1] 2 3 6 6 6 6 11 11 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.100000000000001, 0, 0.0999999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6zomb1319279563.ps",horizontal=F,onefile=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] [1,] 6.80 7.60 7.20 7.9 7.90 7.00 6.10 7.30 7.60 NA [2,] 7.20 7.95 7.85 8.3 8.00 7.10 6.55 7.70 8.00 NA [3,] 7.55 8.30 8.50 8.5 8.15 7.40 6.90 7.95 8.40 NA [4,] 7.90 8.40 8.85 8.6 8.55 7.95 7.40 8.10 8.65 NA [5,] 8.20 8.60 9.30 8.7 8.70 8.00 7.90 8.30 8.80 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.230725 8.094752 8.043893 8.363168 7.899141 7.012309 6.512309 7.767557 [2,] 7.869275 8.505248 8.956107 8.636832 8.400859 7.787691 7.287691 8.132443 [,9] [,10] [1,] 8.103531 NA [2,] 8.696469 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(6.8, 7.2, 7.55, 7.9, 8.2, 7.6, 7.95, 8.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7b7yl1319279563.ps",horizontal=F,onefile=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.422222 7.60 7.550 [2,] 7.772222 7.90 7.900 [3,] 7.966667 8.05 8.150 [4,] 8.166667 8.20 8.175 [5,] 8.255556 8.30 8.350 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.786758 7.913168 8.024571 [2,] 8.146575 8.186832 8.275429 $out [1] 7.4 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.42222222222222, 7.77222222222222, 7.96666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/12jqm1319279563.ps tmp/12jqm1319279563.png",intern=TRUE)) character(0) > try(system("convert tmp/2zqt71319279563.ps tmp/2zqt71319279563.png",intern=TRUE)) character(0) > try(system("convert tmp/35tv11319279563.ps tmp/35tv11319279563.png",intern=TRUE)) character(0) > try(system("convert tmp/4lojo1319279563.ps tmp/4lojo1319279563.png",intern=TRUE)) character(0) > try(system("convert tmp/50gh71319279563.ps tmp/50gh71319279563.png",intern=TRUE)) character(0) > try(system("convert tmp/6zomb1319279563.ps tmp/6zomb1319279563.png",intern=TRUE)) character(0) > try(system("convert tmp/7b7yl1319279563.ps tmp/7b7yl1319279563.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.522 0.360 1.896