R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(12.3,14.6,17.7,15.2,22.3,14.8,10,2.9,5.6,16.1,23.7,26.5,20.9,15.9,13,7.8,17.5,24.4,33.7,32.3,33.4,22.2,21.7,12.8,15.2,17.1,17.6,17.5,14.7,12.9,12,11.1,12.3,18.9,24,29.6,30.9,33,34.9,40.1,30.8,31,23.8,30.8,27.6,30.2,22.2,19.9,18.3,15.2,10.1,6.5,1.9,2,4.3,4.8,4.9,2.1,5.5,10.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] 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,] 12.3 20.9 15.2 30.9 18.3 NA [2,] 14.6 15.9 17.1 33.0 15.2 NA [3,] 17.7 13.0 17.6 34.9 10.1 NA [4,] 15.2 7.8 17.5 40.1 6.5 NA [5,] 22.3 17.5 14.7 30.8 1.9 NA [6,] 14.8 24.4 12.9 31.0 2.0 NA [7,] 10.0 33.7 12.0 23.8 4.3 NA [8,] 2.9 32.3 11.1 30.8 4.8 NA [9,] 5.6 33.4 12.3 27.6 4.9 NA [10,] 16.1 22.2 18.9 30.2 2.1 NA [11,] 23.7 21.7 24.0 22.2 5.5 NA [12,] 26.5 12.8 29.6 19.9 10.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.3 -5.0 1.9 2.1 -3.1 NA [2,] 3.1 -2.9 0.5 1.9 -5.1 NA [3,] -2.5 -5.2 -0.1 5.2 -3.6 NA [4,] 7.1 9.7 -2.8 -9.3 -4.6 NA [5,] -7.5 6.9 -1.8 0.2 0.1 NA [6,] -4.8 9.3 -0.9 -7.2 2.3 NA [7,] -7.1 -1.4 -0.9 7.0 0.5 NA [8,] 2.7 1.1 1.2 -3.2 0.1 NA [9,] 10.5 -11.2 6.6 2.6 -2.8 NA [10,] 7.6 -0.5 5.1 -8.0 3.4 NA [11,] 2.8 -8.9 5.6 -2.3 5.1 NA [12,] -5.6 2.4 1.3 -1.6 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/1fwlh1258147410.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/2f02z1258147410.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/3ka0d1258147410.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/4kgly1258147410.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,] 12.3 14.6 10.1 6.5 14.7 2.0 4.3 2.9 4.9 16.1 21.7 10.6 [2,] 15.2 15.2 13.0 7.8 14.7 12.9 10.0 4.8 5.6 16.1 21.7 12.8 [3,] 18.3 15.9 17.6 15.2 17.5 14.8 12.0 11.1 12.3 18.9 22.2 19.9 [4,] 20.9 17.1 17.7 17.5 22.3 24.4 23.8 30.8 27.6 22.2 23.7 26.5 [5,] 20.9 17.1 17.7 17.5 30.8 31.0 33.7 32.3 33.4 30.2 24.0 29.6 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.27239 14.55746 14.27899 8.346004 12.12986 6.674129 2.248955 [2,] 22.32761 17.24254 20.92101 22.053996 22.87014 22.925871 21.751045 [,8] [,9] [,10] [,11] [,12] [1,] -7.271535 -3.245145 14.58976 20.78681 10.21961 [2,] 29.471535 27.845145 23.21024 23.61319 29.58039 $out [1] 30.9 33.0 34.9 40.1 1.9 2.1 5.5 $group [1] 1 2 3 4 5 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(12.3, 15.2, 18.3, 20.9, 20.9, 14.6, 15.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5q7521258147410.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,] -5.0 -5.1 -5.2 -9.3 -1.8 -7.2 -1.4 0.1 -11.2 -8.0 -8.9 -5.60 [2,] -3.1 -2.9 -3.6 -4.6 -1.8 -4.8 -1.4 0.1 -2.8 -0.5 -2.3 -3.60 [3,] 1.9 0.5 -2.5 -2.8 0.1 -0.9 -0.9 1.1 2.6 3.4 2.8 -0.15 [4,] 2.1 1.9 -0.1 7.1 0.2 2.3 0.5 1.2 6.6 5.1 5.1 1.85 [5,] 2.3 3.1 -0.1 9.7 0.2 9.3 0.5 2.7 10.5 7.6 5.6 2.40 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.774307 -2.891668 -4.97309118 -11.06719 -1.313195 -5.916842 -2.2425352 [2,] 5.574307 3.891668 -0.02690882 5.46719 1.513195 4.116842 0.4425352 [,8] [,9] [,10] [,11] [,12] [1,] 0.3227428 -4.042016 -0.5569459 -2.428821 -4.4555 [2,] 1.8772572 9.242016 7.3569459 8.028821 4.1555 $out [1] 5.2 -7.5 6.9 -7.1 7.0 -3.2 $group [1] 3 5 5 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-5, -3.1, 1.90000000000000, 2.1, 2.3, -5.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/643fl1258147410.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,] 2.90 7.80 11.10 19.9 1.90 NA [2,] 11.15 14.45 12.60 25.7 3.20 NA [3,] 15.00 21.30 16.15 30.8 5.20 NA [4,] 20.00 28.35 18.25 32.0 10.35 NA [5,] 26.50 33.70 24.00 40.1 18.30 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10.96346 14.96012 13.57300 27.92653 1.938837 NA [2,] 19.03654 27.63988 18.72700 33.67347 8.461163 NA $out [1] 29.6 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2.9, 11.15, 15, 20, 26.5, 7.8, 14.45, 21.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7num91258147410.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,] 16.38 11.10 12.650 [2,] 16.89 13.55 16.375 [3,] 17.67 16.70 17.925 [4,] 19.29 18.60 18.900 [5,] 19.88 22.20 19.650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16.57534 14.39666 16.77333 [2,] 18.76466 19.00334 19.07667 $out [1] 22.7 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16.38, 16.89, 17.67, 19.29, 19.88, 11.1, 13.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fwlh1258147410.ps tmp/1fwlh1258147410.png") > system("convert tmp/2f02z1258147410.ps tmp/2f02z1258147410.png") > system("convert tmp/3ka0d1258147410.ps tmp/3ka0d1258147410.png") > system("convert tmp/4kgly1258147410.ps tmp/4kgly1258147410.png") > system("convert tmp/5q7521258147410.ps tmp/5q7521258147410.png") > system("convert tmp/643fl1258147410.ps tmp/643fl1258147410.png") > system("convert tmp/7num91258147410.ps tmp/7num91258147410.png") > > > proc.time() user system elapsed 1.243 0.995 1.583