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(93.5,98.8,106.2,98.3,102.1,117.1,101.5,80.5,105.9,109.5,97.2,114.5,93.5,100.9,121.1,116.5,109.3,118.1,108.3,105.4,116.2,111.2,105.8,122.7,99.5,107.9,124.6,115,110.3,132.7,99.7,96.5,118.7,112.9,130.5,137.9,115,116.8,140.9,120.7,134.2,147.3,112.4,107.1,128.4,137.7,135,151,137.4,132.4,161.3,139.8,146,166.5,143.3,121,152.6,154.4,154.6,158) > 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,] 93.5 93.5 99.5 115.0 137.4 NA [2,] 98.8 100.9 107.9 116.8 132.4 NA [3,] 106.2 121.1 124.6 140.9 161.3 NA [4,] 98.3 116.5 115.0 120.7 139.8 NA [5,] 102.1 109.3 110.3 134.2 146.0 NA [6,] 117.1 118.1 132.7 147.3 166.5 NA [7,] 101.5 108.3 99.7 112.4 143.3 NA [8,] 80.5 105.4 96.5 107.1 121.0 NA [9,] 105.9 116.2 118.7 128.4 152.6 NA [10,] 109.5 111.2 112.9 137.7 154.4 NA [11,] 97.2 105.8 130.5 135.0 154.6 NA [12,] 114.5 122.7 137.9 151.0 158.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.3 7.4 8.4 1.8 -5.0 NA [2,] 7.4 20.2 16.7 24.1 28.9 NA [3,] -7.9 -4.6 -9.6 -20.2 -21.5 NA [4,] 3.8 -7.2 -4.7 13.5 6.2 NA [5,] 15.0 8.8 22.4 13.1 20.5 NA [6,] -15.6 -9.8 -33.0 -34.9 -23.2 NA [7,] -21.0 -2.9 -3.2 -5.3 -22.3 NA [8,] 25.4 10.8 22.2 21.3 31.6 NA [9,] 3.6 -5.0 -5.8 9.3 1.8 NA [10,] -12.3 -5.4 17.6 -2.7 0.2 NA [11,] 17.3 16.9 7.4 16.0 3.4 NA [12,] -21.0 -23.2 -22.9 -13.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/1pnb91228246415.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/2yi5d1228246415.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/3l3pg1228246415.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/4zzvn1228246415.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,] 93.5 98.8 106.2 115.0 102.1 117.1 99.7 96.5 105.9 109.5 97.2 114.5 [2,] 93.5 100.9 121.1 115.0 109.3 118.1 101.5 96.5 116.2 111.2 105.8 122.7 [3,] 99.5 107.9 124.6 116.5 110.3 132.7 108.3 105.4 118.7 112.9 130.5 137.9 [4,] 115.0 116.8 140.9 120.7 134.2 147.3 112.4 107.1 128.4 137.7 135.0 151.0 [5,] 137.4 132.4 161.3 120.7 146.0 166.5 112.4 121.0 128.4 154.4 154.6 158.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 84.30815 96.6651 110.6094 112.4724 92.70572 112.0674 100.5981 97.91007 [2,] 114.69185 119.1349 138.5906 120.5276 127.89428 153.3326 116.0019 112.88993 [,9] [,10] [,11] [,12] [1,] 110.0795 94.17517 109.8674 117.9033 [2,] 127.3205 131.62483 151.1326 157.8967 $out [1] 98.3 139.8 143.3 80.5 152.6 $group [1] 4 4 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(93.5, 93.5, 99.5, 115, 137.4, 98.8, 100.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5m0pb1228246415.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 7.4 -21.5 -7.2 8.8 -34.9 -22.3 21.3 -5.8 -12.3 3.4 -23.20 [2,] 1.8 16.7 -20.2 -4.7 13.1 -33.0 -21.0 21.3 -5.0 -5.4 7.4 -23.05 [3,] 5.3 20.2 -9.6 3.8 15.0 -23.2 -5.3 22.2 1.8 -2.7 16.0 -21.95 [4,] 7.4 24.1 -7.9 6.2 20.5 -15.6 -3.2 25.4 3.6 0.2 16.9 -17.30 [5,] 8.4 28.9 -4.6 13.5 22.4 -9.8 -2.9 25.4 9.3 0.2 17.3 -13.60 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.343054 14.97118 -18.291149 -3.901913 9.771179 -35.49480 -17.877435 [2,] 9.256946 25.42882 -0.908851 11.501913 20.228821 -10.90520 7.277435 [,8] [,9] [,10] [,11] [,12] [1,] 19.30295 -4.276738 -6.656946 9.287324 -26.4925 [2,] 25.09705 7.876738 1.256946 22.712676 -17.4075 $out [1] 10.8 31.6 17.6 $group [1] 8 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-5, 1.80000000000000, 5.3, 7.4, 8.4, 7.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6inv31228246415.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,] 93.50 93.50 96.50 107.1 121.0 NA [2,] 97.75 105.60 103.80 115.9 138.6 NA [3,] 101.80 110.25 113.95 131.3 149.3 NA [4,] 107.85 117.30 127.55 139.3 156.3 NA [5,] 117.10 122.70 137.90 151.0 166.5 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.19332 104.9136 103.1175 120.6271 141.2269 NA [2,] 106.40668 115.5864 124.7825 141.9729 157.3731 NA $out [1] 80.5 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(93.5, 97.75, 101.8, 107.85, 117.1, 93.5, 105.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7un7w1228246415.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,] 102.10 99.50 101.800 [2,] 112.20 108.10 107.900 [3,] 122.37 114.70 121.075 [4,] 127.98 127.55 127.725 [5,] 136.82 137.90 136.850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 115.1726 105.8287 112.0327 [2,] 129.5674 123.5713 130.1173 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.1, 112.2, 122.37, 127.98, 136.82, 99.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1pnb91228246415.ps tmp/1pnb91228246415.png") > system("convert tmp/2yi5d1228246415.ps tmp/2yi5d1228246415.png") > system("convert tmp/3l3pg1228246415.ps tmp/3l3pg1228246415.png") > system("convert tmp/4zzvn1228246415.ps tmp/4zzvn1228246415.png") > system("convert tmp/5m0pb1228246415.ps tmp/5m0pb1228246415.png") > system("convert tmp/6inv31228246415.ps tmp/6inv31228246415.png") > system("convert tmp/7un7w1228246415.ps tmp/7un7w1228246415.png") > > > proc.time() user system elapsed 1.206 0.938 1.511