R version 2.6.1 (2007-11-26) Copyright (C) 2007 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(59.9,59.9,59.9,60.9,60.9,60.9,61.1,61.1,61.1,60.2,60.2,60.2,60.1,60.1,60.1,59.7,59.7,59.7,60.5,60.5,60.5,59.5,59.5,59.5,59.5,59.5,59.5,59.7,59.7,59.7,60.4,60.4,60.4,60,60,60,59,59,59,59.3,59.3,59.3,59.7,59.7,59.7,60.4,60.4,60.4,59.9,59.9,59.9,60.5,60.5,60.5,60.4,60.4,60.4,60.6,60.6,60.6,60.9,60.9,60.9,61,61,61,61.2,61.2,61.2,61.2,61.2,61.2,60.3,60.3,60.3,60.4,60.4,60.4,61.2,61.2,61.2,62.1,62.1,62.1,61.7,61.7,61.7,61.6,61.6,61.6) > par1 = '8' > #'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] 90 > (np <- floor(n / par1)) [1] 11 > 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] 12 12 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 59.9 61.1 59.7 59.5 60.4 59.3 59.9 60.4 61.0 60.3 61.2 61.6 [2,] 59.9 60.2 59.7 59.5 60.0 59.3 59.9 60.6 61.0 60.3 62.1 61.6 [3,] 59.9 60.2 60.5 59.5 60.0 59.7 59.9 60.6 61.2 60.3 62.1 NA [4,] 60.9 60.2 60.5 59.7 60.0 59.7 60.5 60.6 61.2 60.4 62.1 NA [5,] 60.9 60.1 60.5 59.7 59.0 59.7 60.5 60.9 61.2 60.4 61.7 NA [6,] 60.9 60.1 59.5 59.7 59.0 60.4 60.5 60.9 61.2 60.4 61.7 NA [7,] 61.1 60.1 59.5 60.4 59.0 60.4 60.4 60.9 61.2 61.2 61.7 NA [8,] 61.1 59.7 59.5 60.4 59.3 60.4 60.4 61.0 61.2 61.2 61.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.0 -0.9 0.0 0.0 -0.4 0.0 0.0 0.2 0.0 0.0 0.9 0 [2,] 0.0 0.0 0.8 0.0 0.0 0.4 0.0 0.0 0.2 0.0 0.0 NA [3,] 1.0 0.0 0.0 0.2 0.0 0.0 0.6 0.0 0.0 0.1 0.0 NA [4,] 0.0 -0.1 0.0 0.0 -1.0 0.0 0.0 0.3 0.0 0.0 -0.4 NA [5,] 0.0 0.0 -1.0 0.0 0.0 0.7 0.0 0.0 0.0 0.0 0.0 NA [6,] 0.2 0.0 0.0 0.7 0.0 0.0 -0.1 0.0 0.0 0.8 0.0 NA [7,] 0.0 -0.4 0.0 0.0 0.3 0.0 0.0 0.1 0.0 0.0 -0.1 NA [8,] 0.0 0.0 0.0 0.0 0.0 -0.5 0.0 0.0 -0.9 0.0 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/1ubij1199639577.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/2ifxc1199639577.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/3q9jb1199639577.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/40xu11199639577.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] [1,] 59.30 59.3 59.50 59.70 59.0 59.0 59.00 59.30 [2,] 59.80 59.8 59.90 60.10 59.9 59.9 60.25 60.05 [3,] 60.35 60.1 60.20 60.50 60.5 60.4 60.40 60.40 [4,] 61.05 60.8 60.55 60.75 60.9 60.9 61.15 61.15 [5,] 61.60 62.1 61.20 61.20 61.7 61.7 61.70 61.60 $n [1] 12 12 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 59.77987 59.64389 59.89035 60.19035 60.02361 59.92361 59.97125 59.87597 [2,] 60.92013 60.55611 60.50965 60.80965 60.97639 60.87639 60.82875 60.92403 $out [1] 62.1 62.1 $group [1] 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" Warning message: In bxp(list(stats = c(59.3, 59.8, 60.35, 61.05, 61.6, 59.3, 59.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5nxdq1199639577.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] [1,] 0 0.0 0.00 -0.10 0 -0.1 0 0 [2,] 0 0.0 0.00 -0.05 0 0.0 0 0 [3,] 0 0.0 0.00 0.00 0 0.0 0 0 [4,] 0 0.1 0.15 0.00 0 0.1 0 0 [5,] 0 0.2 0.20 0.00 0 0.2 0 0 $n [1] 12 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0 -0.04763879 -0.07145819 -0.02381940 0 -0.04763879 0 0 [2,] 0 0.04763879 0.07145819 0.02381940 0 0.04763879 0 0 $out [1] -0.9 -0.4 0.2 0.9 0.8 0.4 1.0 0.6 -1.0 0.3 -0.4 -1.0 0.7 0.7 0.8 [16] -0.4 0.3 0.1 -0.1 -0.5 -0.9 $group [1] 1 1 1 1 2 2 3 3 4 4 4 5 5 6 6 7 7 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, 0, 0, 0, 0.100000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63b3u1199639577.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] [,10] [,11] [,12] [1,] 59.9 60.10 59.5 59.50 59.00 59.3 59.9 60.40 61.0 60.3 61.20 61.6 [2,] 59.9 60.10 59.5 59.50 59.00 59.5 59.9 60.60 61.1 60.3 61.65 61.6 [3,] 60.9 60.15 59.7 59.70 59.65 59.7 60.4 60.75 61.2 60.4 61.70 61.6 [4,] 61.0 60.20 60.5 60.05 60.00 60.4 60.5 60.90 61.2 60.8 62.10 61.6 [5,] 61.1 60.20 60.5 60.40 60.40 60.4 60.5 61.00 61.2 61.2 62.10 61.6 $n [1] 8 8 8 8 8 8 8 8 8 8 8 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 60.28552 60.09414 59.14139 59.39276 59.09139 59.19725 60.06483 60.58242 [2,] 61.51448 60.20586 60.25861 60.00724 60.20861 60.20275 60.73517 60.91758 [,9] [,10] [,11] [,12] [1,] 61.14414 60.12069 61.44862 61.6 [2,] 61.25586 60.67931 61.95138 61.6 $out [1] 61.1 59.7 $group [1] 2 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(59.9, 59.9, 60.9, 61, 61.1, 60.1, 60.1, 60.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7kin81199639577.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,] 60.34167 60.100 60.22500 [2,] 60.35644 60.275 60.33750 [3,] 60.40455 60.400 60.41250 [4,] 60.52727 60.450 60.51875 [5,] 60.53636 60.500 60.70000 $n [1] 8 8 8 $conf [,1] [,2] [,3] [1,] 60.30912 60.30224 60.31125 [2,] 60.49998 60.49776 60.51375 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(60.3416666666667, 60.3564393939394, 60.4045454545455, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ubij1199639577.ps tmp/1ubij1199639577.png") > system("convert tmp/2ifxc1199639577.ps tmp/2ifxc1199639577.png") > system("convert tmp/3q9jb1199639577.ps tmp/3q9jb1199639577.png") > system("convert tmp/40xu11199639577.ps tmp/40xu11199639577.png") > system("convert tmp/5nxdq1199639577.ps tmp/5nxdq1199639577.png") > system("convert tmp/63b3u1199639577.ps tmp/63b3u1199639577.png") > system("convert tmp/7kin81199639577.ps tmp/7kin81199639577.png") > > > proc.time() user system elapsed 1.496 0.983 2.188