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(27,25,20,19,19,17,12,13,13,11,4,8,1,5,4,3,4,2,8,-2,1,0,1,7,1,0,-3,0,3,1,3,2,6,2,3,9,12,8,7,9,11,13,9,9,13,14,16,20,19,18,18,19,16,10,11,17,3,14,15,17,20,19,21,17,15,18,19,16,21,26,23,24,23,19,25,21,19,20,20,17,25,19,13,15,15,13,11,9,2,-2,-4,-2) > 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] 92 > (np <- floor(n / par1)) [1] 7 > 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] 8 8 8 8 8 8 8 8 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 27 1 1 12 19 20 23 15 [2,] 25 5 0 8 18 19 19 13 [3,] 20 4 -3 7 18 21 25 11 [4,] 19 3 0 9 19 17 21 9 [5,] 19 4 3 11 16 15 19 2 [6,] 17 2 1 13 10 18 20 -2 [7,] 12 8 3 9 11 19 20 -4 [8,] 13 -2 2 9 17 16 17 -2 [9,] 13 1 6 13 3 21 25 NA [10,] 11 0 2 14 14 26 19 NA [11,] 4 1 3 16 15 23 13 NA [12,] 8 7 9 20 17 24 15 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -2 4 -1 -4 -1 -1 -4 -2 [2,] -5 -1 -3 -1 0 2 6 -2 [3,] -1 -1 3 2 1 -4 -4 -2 [4,] 0 1 3 2 -3 -2 -2 -7 [5,] -2 -2 -2 2 -6 3 1 -4 [6,] -5 6 2 -4 1 1 0 -2 [7,] 1 -10 -1 0 6 -3 -3 2 [8,] 0 3 4 4 -14 5 8 NA [9,] -2 -1 -4 1 11 5 -6 NA [10,] -7 1 1 2 1 -3 -6 NA [11,] 4 6 6 4 2 1 2 NA [12,] -7 -6 3 -1 3 -1 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/freestat/rcomp/tmp/1i9z31227891757.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/freestat/rcomp/tmp/21so21227891757.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/freestat/rcomp/tmp/3drxc1227891757.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/freestat/rcomp/tmp/42jf51227891757.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,] 1.0 0.0 -3.0 0 2.0 -2.0 -4.0 -2.0 1.0 0.0 1.0 7.0 [2,] 6.5 6.5 5.5 6 3.5 1.5 5.5 0.0 4.5 6.5 3.5 8.5 [3,] 17.0 15.5 14.5 13 13.0 11.5 10.0 11.0 13.0 14.0 13.0 15.0 [4,] 21.5 19.0 20.5 19 17.5 17.5 15.5 16.5 17.0 16.5 15.5 18.5 [5,] 27.0 25.0 25.0 21 19.0 20.0 20.0 17.0 25.0 26.0 23.0 24.0 $n [1] 8 8 8 8 8 8 8 8 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8.620785 8.51732 6.120785 5.738013 5.179399 2.562170 4.413856 [2,] 25.379215 22.48268 22.879215 20.261987 20.820601 20.437830 15.586144 [,8] [,9] [,10] [,11] [,12] [1,] 1.782863 5.535202 8.028161 5.833794 9.028161 [2,] 20.217137 20.464798 19.971839 20.166206 20.971839 $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(1, 6.5, 17, 21.5, 27, 0, 6.5, 15.5, 19, 25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5pbaw1227891757.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,] -4.0 -5.0 -4.0 -7.0 -6.0 -5.0 -3.0 0.0 -6 -7.0 1 -7.0 [2,] -3.0 -2.5 -3.0 -2.5 -3.0 -3.0 -3.0 1.5 -3 -4.5 2 -3.5 [3,] -1.5 -1.0 -1.0 -1.0 -2.0 0.5 -0.5 4.0 -1 1.0 4 -1.0 [4,] -1.0 1.0 1.5 1.5 1.5 1.5 1.5 4.5 3 1.0 5 1.5 [5,] -1.0 6.0 3.0 3.0 3.0 6.0 6.0 8.0 11 2.0 6 3.0 $n [1] 8 8 8 8 8 8 8 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.6172287 -2.9551502 -3.513765 -3.234457 -4.5137646 -2.013765 -3.013765 [2,] -0.3827713 0.9551502 1.513765 1.234457 0.5137646 3.013765 2.013765 [,8] [,9] [,10] [,11] [,12] [1,] 2.208448 -4.583103 -2.284511 2.208448 -3.985919 [2,] 5.791552 2.583103 4.284511 5.791552 1.985919 $out [1] 4 -10 -14 $group [1] 1 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4, -3, -1.5, -1, -1, -5, -2.5, -1, 1, 6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6699w1227891757.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] [1,] 4.0 -2.0 -3.0 7.0 10.0 15.0 13.0 -4.0 [2,] 11.5 1.0 0.5 9.0 12.5 17.5 18.0 -2.0 [3,] 15.0 2.5 2.0 11.5 16.5 19.5 19.5 5.5 [4,] 19.5 4.5 3.0 13.5 18.0 22.0 22.0 12.0 [5,] 27.0 8.0 6.0 20.0 19.0 26.0 25.0 15.0 $n [1] 12 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.35115 0.9036265 0.8597332 9.44752 13.99141 17.44752 17.67557 -2.320601 [2,] 18.64885 4.0963735 3.1402668 13.55248 19.00859 21.55248 21.32443 13.320601 $out [1] 9 3 $group [1] 3 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(4, 11.5, 15, 19.5, 27, -2, 1, 2.5, 4.5, 8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7566t1227891757.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,] 8.75000 10.00 8.625 [2,] 10.29464 12.25 9.875 [3,] 11.91964 13.00 11.125 [4,] 13.12500 14.75 13.250 [5,] 14.75000 17.00 15.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.62870 11.85973 9.58564 [2,] 13.21059 14.14027 12.66436 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(8.75, 10.2946428571429, 11.9196428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1i9z31227891757.ps tmp/1i9z31227891757.png") > system("convert tmp/21so21227891757.ps tmp/21so21227891757.png") > system("convert tmp/3drxc1227891757.ps tmp/3drxc1227891757.png") > system("convert tmp/42jf51227891757.ps tmp/42jf51227891757.png") > system("convert tmp/5pbaw1227891757.ps tmp/5pbaw1227891757.png") > system("convert tmp/6699w1227891757.ps tmp/6699w1227891757.png") > system("convert tmp/7566t1227891757.ps tmp/7566t1227891757.png") > > > proc.time() user system elapsed 1.875 1.460 2.098