R version 2.6.2 (2008-02-08) 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(79.2,81.5,81.5,82,85.8,88.2,88,88.8,89,90.4,90.9,94.6,97.9,101.7,102.3,103.5,103.6,102.3,101.6,104.3,110.8,112.1,111.1,114.4,115,115.3,114.1,114.8,114.5,114.1,112.3,113,112.2,113.7,113.6,115.8,117.9,120.1,118.8,114.7,110.9,112.9,113.3,114.3,116.5,114.3,115.9,120.1,122.6,122.4,123.1,127.9,130.9,135,134.9,130.2,130.8,132.6,138.6,146.2,149.3,149.9,156.8,158.8,156.7,159.9,158.2,157.5,159.1,160.6,161.6,161.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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 79.2 97.9 115.0 117.9 122.6 149.3 NA [2,] 81.5 101.7 115.3 120.1 122.4 149.9 NA [3,] 81.5 102.3 114.1 118.8 123.1 156.8 NA [4,] 82.0 103.5 114.8 114.7 127.9 158.8 NA [5,] 85.8 103.6 114.5 110.9 130.9 156.7 NA [6,] 88.2 102.3 114.1 112.9 135.0 159.9 NA [7,] 88.0 101.6 112.3 113.3 134.9 158.2 NA [8,] 88.8 104.3 113.0 114.3 130.2 157.5 NA [9,] 89.0 110.8 112.2 116.5 130.8 159.1 NA [10,] 90.4 112.1 113.7 114.3 132.6 160.6 NA [11,] 90.9 111.1 113.6 115.9 138.6 161.6 NA [12,] 94.6 114.4 115.8 120.1 146.2 161.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.3 3.8 0.3 2.2 -0.2 0.6 NA [2,] 0.0 0.6 -1.2 -1.3 0.7 6.9 NA [3,] 0.5 1.2 0.7 -4.1 4.8 2.0 NA [4,] 3.8 0.1 -0.3 -3.8 3.0 -2.1 NA [5,] 2.4 -1.3 -0.4 2.0 4.1 3.2 NA [6,] -0.2 -0.7 -1.8 0.4 -0.1 -1.7 NA [7,] 0.8 2.7 0.7 1.0 -4.7 -0.7 NA [8,] 0.2 6.5 -0.8 2.2 0.6 1.6 NA [9,] 1.4 1.3 1.5 -2.2 1.8 1.5 NA [10,] 0.5 -1.0 -0.1 1.6 6.0 1.0 NA [11,] 3.7 3.3 2.2 4.2 7.6 -0.3 NA [12,] 3.3 0.6 2.1 2.5 3.1 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/1l8bo1208962133.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/2pdim1208962133.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/3byw01208962133.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/4jzas1208962133.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] [1,] 79.20 81.5 81.50 82.00 85.8 88.2 88.0 88.80 89.00 90.4 90.90 [2,] 97.90 101.7 102.30 103.50 103.6 102.3 101.6 104.30 110.80 112.1 111.10 [3,] 116.45 117.7 116.45 114.75 112.7 113.5 112.8 113.65 114.35 114.0 114.75 [4,] 122.60 122.4 123.10 127.90 130.9 135.0 134.9 130.20 130.80 132.6 138.60 [5,] 149.30 149.9 123.10 158.80 156.7 159.9 158.2 157.50 159.10 160.6 161.60 [,12] [1,] 94.60 [2,] 114.40 [3,] 117.95 [4,] 146.20 [5,] 161.30 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 100.5177 104.3478 103.0333 99.01121 95.09062 92.40744 91.32042 [2,] 132.3823 131.0522 129.8667 130.48879 130.30938 134.59256 134.27958 [,8] [,9] [,10] [,11] [,12] [1,] 96.94366 101.4494 100.7768 97.01161 97.43797 [2,] 130.35634 127.2506 127.2232 132.48839 138.46203 $out [1] 156.8 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(79.2, 97.9, 116.45, 122.6, 149.3, 81.5, 101.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rnub1208962133.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,] -0.2 -1.3 0.50 -3.8 -1.3 -1.80 -0.70 -0.8 1.30 -1.00 -0.3 0.6 [2,] 0.3 -1.2 0.50 -2.1 -0.4 -1.70 -0.70 0.2 1.30 -0.10 2.2 2.1 [3,] 1.4 0.3 0.95 -0.1 2.2 -0.45 0.75 1.1 1.45 0.75 3.5 2.5 [4,] 2.3 0.7 2.00 3.0 3.2 -0.10 1.00 2.2 1.50 1.60 4.2 3.1 [5,] 3.8 0.7 2.00 3.8 4.1 0.40 2.70 2.2 1.80 1.60 4.2 3.3 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.1099354 -0.9255614 -0.01754845 -3.389665 -0.1221163 -1.4820517 [2,] 2.6900646 1.5255614 1.91754845 3.189665 4.5221163 0.5820517 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.3465549 -0.1900646 1.320994 -0.3465549 2.209935 1.793403 [2,] 1.8465549 2.3900646 1.579006 1.8465549 4.790065 3.206597 $out [1] 6.9 -4.1 4.8 -4.7 6.5 -2.2 6.0 7.6 $group [1] 2 3 3 7 8 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.199999999999989, 0.299999999999997, 1.39999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vy1w1208962133.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] [1,] 79.20 97.90 112.2 110.90 122.40 156.70 NA [2,] 81.75 102.00 113.3 113.80 125.50 156.75 NA [3,] 88.10 103.55 114.1 115.30 130.85 158.50 NA [4,] 89.70 110.95 114.9 118.35 134.95 160.25 NA [5,] 94.60 114.40 115.8 120.10 146.20 161.60 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 84.47395 99.46784 113.3702 113.2247 126.5398 156.9036 NA [2,] 91.72605 107.63216 114.8298 117.3753 135.1602 160.0964 NA $out [1] 149.3 149.9 $group [1] 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(79.2, 81.75, 88.1, 89.7, 94.6, 97.9, 102, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75rq01208962133.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,] 113.6500 112.700 111.8000 [2,] 116.5250 113.575 114.5500 [3,] 118.0333 114.550 116.6187 [4,] 120.1750 116.450 119.7250 [5,] 125.4000 117.950 127.2125 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 116.3685 113.2387 114.2584 [2,] 119.6981 115.8613 118.9791 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(113.65, 116.525, 118.033333333333, 120.175, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1l8bo1208962133.ps tmp/1l8bo1208962133.png") > system("convert tmp/2pdim1208962133.ps tmp/2pdim1208962133.png") > system("convert tmp/3byw01208962133.ps tmp/3byw01208962133.png") > system("convert tmp/4jzas1208962133.ps tmp/4jzas1208962133.png") > system("convert tmp/5rnub1208962133.ps tmp/5rnub1208962133.png") > system("convert tmp/6vy1w1208962133.ps tmp/6vy1w1208962133.png") > system("convert tmp/75rq01208962133.ps tmp/75rq01208962133.png") > > > proc.time() user system elapsed 1.415 0.942 3.006