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(21.1,21.0,20.4,19.5,18.6,18.8,23.7,24.8,25.0,23.6,22.3,21.8,20.8,19.7,18.3,17.4,17.0,18.1,23.9,25.6,25.3,23.6,21.9,21.4,20.6,20.5,20.2,20.6,19.7,19.3,22.8,23.5,23.8,22.6,22.0,21.7,20.7,20.2,19.1,19.5,18.7,18.6,22.2,23.2,23.5,21.3,20.0,18.7,18.9,18.3,18.4,19.9,19.2,18.5,20.9,20.5,19.4,18.1,17.0,17.0,17.3,16.7,15.5,15.3,13.7,14.1,17.3,18.1) > 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] 68 > (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] 6 6 6 6 6 6 6 6 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 21.1 20.8 20.6 20.7 18.9 17.3 [2,] 21.0 19.7 20.5 20.2 18.3 16.7 [3,] 20.4 18.3 20.2 19.1 18.4 15.5 [4,] 19.5 17.4 20.6 19.5 19.9 15.3 [5,] 18.6 17.0 19.7 18.7 19.2 13.7 [6,] 18.8 18.1 19.3 18.6 18.5 14.1 [7,] 23.7 23.9 22.8 22.2 20.9 17.3 [8,] 24.8 25.6 23.5 23.2 20.5 18.1 [9,] 25.0 25.3 23.8 23.5 19.4 NA [10,] 23.6 23.6 22.6 21.3 18.1 NA [11,] 22.3 21.9 22.0 20.0 17.0 NA [12,] 21.8 21.4 21.7 18.7 17.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1 -1.1 -0.1 -0.5 -0.6 -0.6 [2,] -0.6 -1.4 -0.3 -1.1 0.1 -1.2 [3,] -0.9 -0.9 0.4 0.4 1.5 -0.2 [4,] -0.9 -0.4 -0.9 -0.8 -0.7 -1.6 [5,] 0.2 1.1 -0.4 -0.1 -0.7 0.4 [6,] 4.9 5.8 3.5 3.6 2.4 3.2 [7,] 1.1 1.7 0.7 1.0 -0.4 0.8 [8,] 0.2 -0.3 0.3 0.3 -1.1 NA [9,] -1.4 -1.7 -1.2 -2.2 -1.3 NA [10,] -1.3 -1.7 -0.6 -1.3 -1.1 NA [11,] -0.5 -0.5 -0.3 -1.3 0.0 NA [12,] -1.0 -0.8 -1.0 0.2 0.3 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/181er1229002532.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/24onc1229002532.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/3fpd71229002532.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/4zifn1229002532.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,] 17.30 16.70 15.50 15.3 17.00 18.10 17.3 18.10 23.5 18.1 17.0 17.0 [2,] 18.90 18.30 18.30 17.4 17.00 18.10 20.9 20.50 23.5 21.3 20.0 18.7 [3,] 20.65 19.95 18.75 19.5 18.65 18.55 22.5 23.35 23.8 22.6 21.9 21.4 [4,] 20.80 20.50 20.20 19.9 19.20 18.80 23.7 24.80 25.0 23.6 22.0 21.7 [5,] 21.10 21.00 20.40 20.6 19.70 19.30 23.9 25.60 25.3 23.6 22.3 21.8 $n [1] 6 6 6 6 6 6 6 6 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19.42444 18.53093 17.52444 17.88742 17.23093 18.09848 20.69391 20.57636 [2,] 21.87556 21.36907 19.97556 21.11258 20.06907 19.00152 24.30609 26.12364 [,9] [,10] [,11] [,12] [1,] 22.74010 20.97483 20.48681 19.28021 [2,] 24.85990 24.22517 23.31319 23.51979 $out [1] 13.7 14.1 19.4 $group [1] 5 6 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17.3, 18.9, 20.65, 20.8, 21.1, 16.7, 18.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lgdb1229002532.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,] -1.10 -1.40 -0.9 -0.90 -0.70 2.40 0.7 -1.1 -2.2 -1.3 -0.5 -1.0 [2,] -0.60 -1.20 -0.9 -0.90 -0.40 3.20 0.7 -0.3 -1.7 -1.3 -0.5 -1.0 [3,] -0.55 -0.85 0.1 -0.85 0.05 3.55 0.9 0.2 -1.4 -1.3 -0.5 -0.8 [4,] -0.10 -0.30 0.4 -0.70 0.40 4.90 1.1 0.3 -1.3 -1.1 -0.3 0.2 [5,] -0.10 0.10 1.5 -0.40 1.10 5.80 1.7 0.3 -1.2 -1.1 -0.3 0.3 $n [1] 6 6 6 6 6 6 6 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.8725161 -1.4305291 -0.738542 -0.9790065 -0.4660258 2.453445 0.6419871 [2,] -0.2274839 -0.2694709 0.938542 -0.7209935 0.5660258 4.646555 1.1580129 [,8] [,9] [,10] [,11] [,12] [1,] -0.2239585 -1.682639 -1.441319 -0.6413195 -1.64791698 [2,] 0.6239585 -1.117361 -1.158681 -0.3586805 0.04791698 $out [1] -1.6 -0.4 -1.7 -0.6 -1.3 0.0 $group [1] 4 7 10 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.10000000000000, -0.600000000000001, -0.549999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/62ws31229002532.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,] 18.60 17.00 19.30 18.60 17.00 13.7 [2,] 19.95 18.20 20.35 18.90 18.20 14.7 [3,] 21.45 21.10 21.15 20.10 18.70 16.1 [4,] 23.65 23.75 22.70 21.75 19.65 17.3 [5,] 25.00 25.60 23.80 23.50 20.90 18.1 $n [1] 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 19.76241 18.56861 20.07815 18.80010 18.03865 14.64760 [2,] 23.13759 23.63139 22.22185 21.39990 19.36135 17.55240 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(18.6, 19.95, 21.45, 23.65, 25, 17, 18.2, 21.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7mle51229002532.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,] 17.81667 18.550 18.23750 [2,] 18.67500 19.125 18.99375 [3,] 20.01000 21.025 20.12500 [4,] 21.82000 22.550 22.40000 [5,] 23.40000 23.800 24.25000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 18.57554 19.46283 18.57139 [2,] 21.44446 22.58717 21.67861 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(17.8166666666667, 18.675, 20.01, 21.82, 23.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/181er1229002532.ps tmp/181er1229002532.png") > system("convert tmp/24onc1229002532.ps tmp/24onc1229002532.png") > system("convert tmp/3fpd71229002532.ps tmp/3fpd71229002532.png") > system("convert tmp/4zifn1229002532.ps tmp/4zifn1229002532.png") > system("convert tmp/5lgdb1229002532.ps tmp/5lgdb1229002532.png") > system("convert tmp/62ws31229002532.ps tmp/62ws31229002532.png") > system("convert tmp/7mle51229002532.ps tmp/7mle51229002532.png") > > > proc.time() user system elapsed 1.193 0.944 1.538