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(69.4,57.2,68,53.3,47.9,60.8,61.7,57.8,51.4,50.5,48.1,58.7,54,56.1,60.4,51.2,50.7,56.4,53.3,52.6,47.7,49.5,48.5,55.3,49.8,57.4,64.6,53,41.5,55.9,58.4,53.5,50.6,58.5,49.1,61.1,52.3,58.4,65.5,61.7,45.1,52.1,59.3,57.9,45,64.9,63.8,69.4,71.1,62.9,73.5,62.7,51.9,73.3,66.7,62.5,70.3,66.1,59.6,66.3) > 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,] 69.4 54.0 49.8 52.3 71.1 NA [2,] 57.2 56.1 57.4 58.4 62.9 NA [3,] 68.0 60.4 64.6 65.5 73.5 NA [4,] 53.3 51.2 53.0 61.7 62.7 NA [5,] 47.9 50.7 41.5 45.1 51.9 NA [6,] 60.8 56.4 55.9 52.1 73.3 NA [7,] 61.7 53.3 58.4 59.3 66.7 NA [8,] 57.8 52.6 53.5 57.9 62.5 NA [9,] 51.4 47.7 50.6 45.0 70.3 NA [10,] 50.5 49.5 58.5 64.9 66.1 NA [11,] 48.1 48.5 49.1 63.8 59.6 NA [12,] 58.7 55.3 61.1 69.4 66.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -12.2 2.1 7.6 6.1 -8.2 NA [2,] 10.8 4.3 7.2 7.1 10.6 NA [3,] -14.7 -9.2 -11.6 -3.8 -10.8 NA [4,] -5.4 -0.5 -11.5 -16.6 -10.8 NA [5,] 12.9 5.7 14.4 7.0 21.4 NA [6,] 0.9 -3.1 2.5 7.2 -6.6 NA [7,] -3.9 -0.7 -4.9 -1.4 -4.2 NA [8,] -6.4 -4.9 -2.9 -12.9 7.8 NA [9,] -0.9 1.8 7.9 19.9 -4.2 NA [10,] -2.4 -1.0 -9.4 -1.1 -6.5 NA [11,] 10.6 6.8 12.0 5.6 6.7 NA [12,] -4.7 -5.5 -8.8 1.7 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/1g1ub1258161875.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/2vzdw1258161875.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/3etye1258161875.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/4ema31258161875.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,] 49.8 56.1 60.4 51.2 41.5 52.1 58.4 52.6 45.0 49.5 48.1 55.3 [2,] 52.3 57.2 64.6 53.0 45.1 55.9 58.4 53.5 47.7 50.5 48.5 58.7 [3,] 54.0 57.4 65.5 53.3 47.9 56.4 59.3 57.8 50.6 58.5 49.1 61.1 [4,] 69.4 58.4 68.0 61.7 50.7 60.8 61.7 57.9 51.4 64.9 59.6 66.3 [5,] 71.1 58.4 68.0 62.7 51.9 60.8 61.7 62.5 51.4 66.1 63.8 69.4 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 41.91718 56.55208 63.09757 47.1526 43.94305 52.93767 56.96823 54.69097 [2,] 66.08282 58.24792 67.90243 59.4474 51.85695 59.86233 61.63177 60.90903 [,9] [,10] [,11] [,12] [1,] 47.98559 48.325 41.25677 55.72986 [2,] 53.21441 68.675 56.94323 66.47014 $out [1] 62.9 73.5 73.3 53.3 66.7 70.3 $group [1] 2 3 6 7 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(49.8, 52.3, 54, 69.4, 71.1, 56.1, 57.2, 57.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/585jt1258161875.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,] -12.2 4.3 -14.7 -16.6 5.7 -6.6 -4.9 -6.4 -4.2 -9.4 5.6 -8.80 [2,] -8.2 7.1 -11.6 -11.5 7.0 -3.1 -4.2 -6.4 -0.9 -6.5 6.7 -7.15 [3,] 2.1 7.2 -10.8 -10.8 12.9 0.9 -3.9 -4.9 1.8 -2.4 6.8 -5.10 [4,] 6.1 10.6 -9.2 -5.4 14.4 2.5 -1.4 -2.9 7.9 -1.1 10.6 -1.50 [5,] 7.6 10.8 -9.2 -0.5 21.4 7.2 -0.7 -2.9 19.9 -1.0 12.0 1.70 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -8.004344 4.726909 -12.495834 -15.110245 7.671179 -3.056946 -5.878473 [2,] 12.204344 9.673091 -9.104166 -6.489755 18.128821 4.856946 -1.921527 [,8] [,9] [,10] [,11] [,12] [1,] -7.373091 -4.418058 -6.215626 4.04427 -9.5635 [2,] -2.426909 8.018058 1.415626 9.55573 -0.6365 $out [1] -3.8 -12.9 7.8 $group [1] 3 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-12.2, -8.2, 2.1, 6.1, 7.6, 4.3, 7.1, 7.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/624wd1258161875.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,] 47.90 47.70 41.50 45.00 51.9 NA [2,] 50.95 50.10 50.20 52.20 62.6 NA [3,] 57.50 52.95 54.70 58.85 66.2 NA [4,] 61.25 55.70 58.45 64.35 70.7 NA [5,] 69.40 60.40 64.60 69.40 73.5 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 52.8021 50.3958 50.93712 53.3083 62.50554 NA [2,] 62.1979 55.5042 58.46288 64.3917 69.89446 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(47.9, 50.95, 57.5, 61.25, 69.4, 47.7, 50.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7sxll1258161875.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,] 53.00 47.90 47.900 [2,] 55.10 51.95 54.875 [3,] 58.15 56.90 57.750 [4,] 59.79 58.90 60.450 [5,] 66.40 65.50 66.300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 56.01086 53.73006 55.2072 [2,] 60.28914 60.06994 60.2928 $out [1] 47.42 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(53, 55.1, 58.15, 59.79, 66.4, 47.9, 51.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1g1ub1258161875.ps tmp/1g1ub1258161875.png") > system("convert tmp/2vzdw1258161875.ps tmp/2vzdw1258161875.png") > system("convert tmp/3etye1258161875.ps tmp/3etye1258161875.png") > system("convert tmp/4ema31258161875.ps tmp/4ema31258161875.png") > system("convert tmp/585jt1258161875.ps tmp/585jt1258161875.png") > system("convert tmp/624wd1258161875.ps tmp/624wd1258161875.png") > system("convert tmp/7sxll1258161875.ps tmp/7sxll1258161875.png") > > > proc.time() user system elapsed 1.185 0.922 1.526