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(13,12,15,12,10,12,15,9,12,11,11,11,15,7,11,11,10,14,10,6,11,15,11,12,14,15,9,13,13,16,13,12,14,11,9,16,12,10,13,16,14,15,5,8,11,16,17,9,9,13,10,6,12,8,14,12,11,16,8,15,7,16,14,16,9,14,11,13,15,5,15,13,11,11,12,12,12,12,14,6,7,14,14,10,13,12,9,12,16,10,14,10,16,15,12,10,8,8,11,13,16,16,14,11,4,14,9,14,8,8,11,12,11,14,15,16,16,11,14,14,12,14,8,13,16,12,16,12,11,4,16,15,10,13,15,12,14,7,19,12,12,13,15,8,12,10,8,10,15,16,13,16,9,14,14,12) > 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] 156 > (np <- floor(n / par1)) [1] 13 > 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] 13 13 13 13 13 13 13 13 13 13 13 13 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 13 15 14 12 9 7 11 13 8 8 12 10 12 [2,] 12 7 15 10 13 16 11 12 8 8 14 13 10 [3,] 15 11 9 13 10 14 12 9 11 11 8 15 8 [4,] 12 11 13 16 6 16 12 12 13 12 13 12 10 [5,] 10 10 13 14 12 9 12 16 16 11 16 14 15 [6,] 12 14 16 15 8 14 12 10 16 14 12 7 16 [7,] 15 10 13 5 14 11 14 14 14 15 16 19 13 [8,] 9 6 12 8 12 13 6 10 11 16 12 12 16 [9,] 12 11 14 11 11 15 7 16 4 16 11 12 9 [10,] 11 15 11 16 16 5 14 15 14 11 4 13 14 [11,] 11 11 9 17 8 15 14 12 9 14 16 15 14 [12,] 11 12 16 9 15 13 10 10 14 14 15 8 12 [,14] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] -1 -8 1 -2 4 9 0 -1 0 0 2 3 -2 [2,] 3 4 -6 3 -3 -2 1 -3 3 3 -6 2 -2 [3,] -3 0 4 3 -4 2 0 3 2 1 5 -3 2 [4,] -2 -1 0 -2 6 -7 0 4 3 -1 3 2 5 [5,] 2 4 3 1 -4 5 0 -6 0 3 -4 -7 1 [6,] 3 -4 -3 -10 6 -3 2 4 -2 1 4 12 -3 [7,] -6 -4 -1 3 -2 2 -8 -4 -3 1 -4 -7 3 [8,] 3 5 2 3 -1 2 1 6 -7 0 -1 0 -7 [9,] -1 4 -3 5 5 -10 7 -1 10 -5 -7 1 5 [10,] 0 -4 -2 1 -8 10 0 -3 -5 3 12 2 0 [11,] 0 1 7 -8 7 -2 -4 -2 5 0 -1 -7 -2 [12,] 4 2 -4 0 -8 -2 3 -2 -6 -2 -5 4 NA [,14] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/1219y1289924955.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/2va8j1289924955.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/3va8j1289924955.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/451741289924955.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,] 7 7 8 11 9 8 10 6 7 5 8 8 [2,] 9 10 9 12 11 12 13 9 11 11 11 10 [3,] 12 12 11 12 13 14 14 12 11 14 14 12 [4,] 13 13 13 13 15 15 15 12 14 15 15 14 [5,] 15 16 15 13 16 16 16 16 16 16 17 16 $n [1] 13 13 13 13 13 13 13 13 13 13 13 13 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10.24715 10.68536 9.247147 11.56179 11.24715 12.68536 13.12357 10.68536 [2,] 13.75285 13.31464 12.752853 12.43821 14.75285 15.31464 14.87643 13.31464 [,9] [,10] [,11] [,12] [1,] 9.68536 12.24715 12.24715 10.24715 [2,] 12.31464 15.75285 15.75285 13.75285 $out [1] 16 6 16 10 7 5 19 4 4 $group [1] 4 4 4 4 6 7 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(7, 9, 12, 13, 15, 7, 10, 12, 13, 16, 8, 9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/551741289924955.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,] -2 -6 -4 -7 -7 -10 -8 -7 -10 -8 -4 -8.0 [2,] -1 -3 0 -1 -4 -3 -4 -1 -3 -3 -2 -4.5 [3,] 0 1 2 0 1 1 -3 1 1 0 -1 -2.0 [4,] 2 3 3 3 3 4 1 3 5 2 1 2.5 [5,] 4 4 5 6 5 12 3 6 10 3 5 4.0 $n [1] 13 13 13 13 13 13 13 13 13 13 13 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.314639 -1.629279 0.6853605 -1.752853 -2.067492 -2.067492 -5.1910658 [2,] 1.314639 3.629279 3.3146395 1.752853 4.067492 4.067492 -0.8089342 [,8] [,9] [,10] [,11] [,12] [1,] -0.7528526 -2.505705 -2.191066 -2.3146395 -5.192747 [2,] 2.7528526 4.505705 2.191066 0.3146395 1.192747 $out [1] -8 9 10 12 7 -8 7 -7 $group [1] 1 1 10 10 11 11 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2, -1, 0, 2, 4, -6, -3, 1, 3, 4, -4, 0, 2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/651741289924955.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] [,13] [,14] [1,] 9.0 6 9.0 5.0 6.0 5.0 7.0 9.0 4.0 8.0 8.0 7.0 8.0 NA [2,] 11.0 10 11.5 9.5 8.5 10.0 10.5 10.0 8.5 11.0 11.5 11.0 10.0 NA [3,] 12.0 11 13.0 12.5 11.5 13.5 12.0 12.0 12.0 13.0 12.5 12.5 12.5 NA [4,] 12.5 13 14.5 15.5 13.5 15.0 13.0 14.5 14.0 14.5 15.5 14.5 14.5 NA [5,] 13.0 15 16.0 17.0 16.0 16.0 14.0 16.0 16.0 16.0 16.0 19.0 16.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.31584 9.63168 11.63168 9.76336 9.219466 11.21947 10.85973 9.94752 [2,] 12.68416 12.36832 14.36832 15.23664 13.780534 15.78053 13.14027 14.05248 [,9] [,10] [,11] [,12] [,13] [,14] [1,] 9.491413 11.40363 10.67557 10.90363 10.44752 NA [2,] 14.508587 14.59637 14.32443 14.09637 14.55248 NA $out [1] 15 15 6 4 $group [1] 1 1 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" NA Warning message: In bxp(list(stats = c(9, 11, 12, 12.5, 13, 6, 10, 11, 13, 15, 9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7gbp71289924955.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,] 11.00000 11 10.50 [2,] 11.34615 12 11.25 [3,] 12.19231 12 12.50 [4,] 12.73077 14 13.00 [5,] 13.30769 14 14.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11.56078 11.08779 11.70181 [2,] 12.82384 12.91221 13.29819 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11, 11.3461538461538, 12.1923076923077, 12.7307692307692, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1219y1289924955.ps tmp/1219y1289924955.png",intern=TRUE)) character(0) > try(system("convert tmp/2va8j1289924955.ps tmp/2va8j1289924955.png",intern=TRUE)) character(0) > try(system("convert tmp/3va8j1289924955.ps tmp/3va8j1289924955.png",intern=TRUE)) character(0) > try(system("convert tmp/451741289924955.ps tmp/451741289924955.png",intern=TRUE)) character(0) > try(system("convert tmp/551741289924955.ps tmp/551741289924955.png",intern=TRUE)) character(0) > try(system("convert tmp/651741289924955.ps tmp/651741289924955.png",intern=TRUE)) character(0) > try(system("convert tmp/7gbp71289924955.ps tmp/7gbp71289924955.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.217 0.947 1.535