R version 2.8.0 (2008-10-20) 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(21.1,21,20.4,19.5,18.6,18.8,23.7,24.8,25,23.6,22.3,21.8,20.8,19.7,18.3,17.4,17,18.1,23.9,25.6,25.3,23.6,21.9,21.4,20.6,20.5,20.2,20.6,19.7,19.3,22.8,23.5,23.8,22.6,22,21.7,20.7,20.2,19.1,19.5,18.7,18.6,22.2,23.2,23.5,21.3,20,18.7,18.9,18.3,18.4,19.9,19.2,18.5,20.9,20.5,19.4,18.1,17,17) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 21.1 20.8 20.6 20.7 18.9 NA [2,] 21.0 19.7 20.5 20.2 18.3 NA [3,] 20.4 18.3 20.2 19.1 18.4 NA [4,] 19.5 17.4 20.6 19.5 19.9 NA [5,] 18.6 17.0 19.7 18.7 19.2 NA [6,] 18.8 18.1 19.3 18.6 18.5 NA [7,] 23.7 23.9 22.8 22.2 20.9 NA [8,] 24.8 25.6 23.5 23.2 20.5 NA [9,] 25.0 25.3 23.8 23.5 19.4 NA [10,] 23.6 23.6 22.6 21.3 18.1 NA [11,] 22.3 21.9 22.0 20.0 17.0 NA [12,] 21.8 21.4 21.7 18.7 17.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1 -1.1 -0.1 -0.5 -0.6 NA [2,] -0.6 -1.4 -0.3 -1.1 0.1 NA [3,] -0.9 -0.9 0.4 0.4 1.5 NA [4,] -0.9 -0.4 -0.9 -0.8 -0.7 NA [5,] 0.2 1.1 -0.4 -0.1 -0.7 NA [6,] 4.9 5.8 3.5 3.6 2.4 NA [7,] 1.1 1.7 0.7 1.0 -0.4 NA [8,] 0.2 -0.3 0.3 0.3 -1.1 NA [9,] -1.4 -1.7 -1.2 -2.2 -1.3 NA [10,] -1.3 -1.7 -0.6 -1.3 -1.1 NA [11,] -0.5 -0.5 -0.3 -1.3 0.0 NA [12,] -1.0 -0.8 -1.0 0.2 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/www/html/rcomp/tmp/1gjqt1229616014.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/2rz971229616014.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/3nvvt1229616014.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/4i6o01229616014.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,] 20.6 19.7 18.3 19.5 18.6 18.1 20.9 23.2 23.5 18.1 17.0 17.0 [2,] 20.6 19.7 18.4 19.5 18.6 18.5 22.2 23.2 23.5 21.3 20.0 18.7 [3,] 20.7 20.2 19.1 19.5 18.7 18.6 22.8 23.5 23.8 22.6 21.9 21.4 [4,] 20.8 20.5 20.2 19.9 19.2 18.8 23.7 24.8 25.0 23.6 22.0 21.7 [5,] 21.1 21.0 20.4 19.9 19.7 18.8 23.9 25.6 25.3 23.6 22.3 21.8 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 20.55868 19.63472 17.82812 19.21736 18.27604 18.38802 21.74010 22.36944 [2,] 20.84132 20.76528 20.37188 19.78264 19.12396 18.81198 23.85990 24.63056 [,9] [,10] [,11] [,12] [1,] 22.74010 20.97483 20.48681 19.28021 [2,] 24.85990 24.22517 23.31319 23.51979 $out [1] 18.9 18.3 17.4 20.6 17.0 19.3 20.5 19.4 $group [1] 1 2 4 4 5 6 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(20.6, 20.6, 20.7, 20.8, 21.1, 19.7, 19.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5g9pz1229616014.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,] -1.1 -1.4 -0.9 -0.9 -0.7 2.4 0.7 -1.1 -2.2 -1.3 -0.5 -1.0 [2,] -0.6 -1.1 -0.9 -0.9 -0.4 3.5 0.7 -0.3 -1.7 -1.3 -0.5 -1.0 [3,] -0.5 -0.6 0.4 -0.8 -0.1 3.6 1.0 0.2 -1.4 -1.3 -0.5 -0.9 [4,] -0.1 -0.3 0.4 -0.7 0.2 4.9 1.1 0.3 -1.3 -1.1 -0.3 -0.3 [5,] -0.1 0.1 1.5 -0.7 0.2 5.8 1.7 0.3 -1.2 -1.1 -0.3 0.2 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.8532987 -1.16527798 -0.5185767 -0.9413195 -0.5239585 2.610764 0.717361 [2,] -0.1467013 -0.03472202 1.3185767 -0.6586805 0.3239585 4.589236 1.282639 [,8] [,9] [,10] [,11] [,12] [1,] -0.2239585 -1.682639 -1.441319 -0.6413195 -1.453 [2,] 0.6239585 -1.117361 -1.158681 -0.3586805 -0.347 $out [1] -0.4 1.1 -0.4 -1.7 -0.6 -1.3 0.0 $group [1] 4 5 7 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(-1.10000000000000, -0.599999999999998, -0.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fz2y1229616014.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,] 18.60 17.00 19.30 18.60 17.00 NA [2,] 19.95 18.20 20.35 18.90 18.20 NA [3,] 21.45 21.10 21.15 20.10 18.70 NA [4,] 23.65 23.75 22.70 21.75 19.65 NA [5,] 25.00 25.60 23.80 23.50 20.90 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 19.76241 18.56861 20.07815 18.80010 18.03865 NA [2,] 23.13759 23.63139 22.22185 21.39990 19.36135 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(18.6, 19.95, 21.45, 23.65, 25, 17, 18.2, 21.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7nkpd1229616014.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,] 18.64 18.60 18.65 [2,] 19.33 19.30 19.50 [3,] 20.27 21.05 20.45 [4,] 22.27 22.70 22.70 [5,] 23.52 23.80 24.25 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 18.92905 19.49924 18.99046 [2,] 21.61095 22.60076 21.90954 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(18.64, 19.33, 20.27, 22.27, 23.52, 18.6, 19.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gjqt1229616014.ps tmp/1gjqt1229616014.png") > system("convert tmp/2rz971229616014.ps tmp/2rz971229616014.png") > system("convert tmp/3nvvt1229616014.ps tmp/3nvvt1229616014.png") > system("convert tmp/4i6o01229616014.ps tmp/4i6o01229616014.png") > system("convert tmp/5g9pz1229616014.ps tmp/5g9pz1229616014.png") > system("convert tmp/6fz2y1229616014.ps tmp/6fz2y1229616014.png") > system("convert tmp/7nkpd1229616014.ps tmp/7nkpd1229616014.png") > > > proc.time() user system elapsed 1.218 0.957 1.487