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(97.5,97.1,97.5,98.5,100.5,102.8,105.2,107.4,108.0,107.6,107.0,105.8,104.3,103.8,104.4,106.2,108.5,109.8,110.3,109.7,108.7,108.9,109.7,110.4,111.4,112.6,113.6,113.8,113.2,113.6,113.9,113.4,113.8,116.0,118.3,120.5,121.9,121.2,120.2,120.6,110.2,109.2,108.7,109.9,112.2,114.5,114.7,113.2,112.1,112.6,113.6,114.0,114.5,115.0,114.9,114.8,114.3,113.7,114.5,116.0,116.6,116.2,115.7,115.6,115.2,115.0,115.7,115.9,115.6,115.9,117.0,117.9,118.8,119.9) > 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] 74 > (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] 7 7 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.5 104.3 111.4 121.9 112.1 116.6 118.8 [2,] 97.1 103.8 112.6 121.2 112.6 116.2 119.9 [3,] 97.5 104.4 113.6 120.2 113.6 115.7 NA [4,] 98.5 106.2 113.8 120.6 114.0 115.6 NA [5,] 100.5 108.5 113.2 110.2 114.5 115.2 NA [6,] 102.8 109.8 113.6 109.2 115.0 115.0 NA [7,] 105.2 110.3 113.9 108.7 114.9 115.7 NA [8,] 107.4 109.7 113.4 109.9 114.8 115.9 NA [9,] 108.0 108.7 113.8 112.2 114.3 115.6 NA [10,] 107.6 108.9 116.0 114.5 113.7 115.9 NA [11,] 107.0 109.7 118.3 114.7 114.5 117.0 NA [12,] 105.8 110.4 120.5 113.2 116.0 117.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.4 -0.5 1.2 -0.7 0.5 -0.4 1.1 [2,] 0.4 0.6 1.0 -1.0 1.0 -0.5 NA [3,] 1.0 1.8 0.2 0.4 0.4 -0.1 NA [4,] 2.0 2.3 -0.6 -10.4 0.5 -0.4 NA [5,] 2.3 1.3 0.4 -1.0 0.5 -0.2 NA [6,] 2.4 0.5 0.3 -0.5 -0.1 0.7 NA [7,] 2.2 -0.6 -0.5 1.2 -0.1 0.2 NA [8,] 0.6 -1.0 0.4 2.3 -0.5 -0.3 NA [9,] -0.4 0.2 2.2 2.3 -0.6 0.3 NA [10,] -0.6 0.8 2.3 0.2 0.8 1.1 NA [11,] -1.2 0.7 2.2 -1.5 1.5 0.9 NA [12,] -1.5 1.0 1.4 -1.1 0.6 0.9 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/1yilv1230119466.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/23fic1230119466.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/3t2sl1230119466.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/4dex21230119466.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,] 97.50 97.10 97.5 98.5 100.5 102.8 105.2 107.40 108.0 107.6 107.0 105.8 [2,] 107.85 108.20 104.4 106.2 108.5 109.2 108.7 109.70 108.7 108.9 109.7 110.4 [3,] 112.10 112.60 113.6 113.9 111.7 111.7 112.1 111.65 113.0 114.1 114.6 114.6 [4,] 117.70 118.05 115.7 115.6 114.5 115.0 114.9 114.80 114.3 115.9 117.0 117.9 [5,] 121.90 121.20 120.2 120.6 115.2 115.0 115.7 115.90 115.6 116.0 118.3 120.5 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 106.2177 106.7177 106.3111 107.8367 107.8298 107.9588 108.1008 108.3603 [2,] 117.9823 118.4823 120.8889 119.9633 115.5702 115.4412 116.0992 114.9397 [,9] [,10] [,11] [,12] [1,] 109.3878 109.5848 109.8913 109.7623 [2,] 116.6122 118.6152 119.3087 119.4377 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(97.5, 107.85, 112.1, 117.7, 121.9, 97.1, 108.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59fdr1230119466.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.70 -1.0 -0.1 -0.60 -1.00 -0.5 -0.60 -1.00 -0.60 -0.6 -1.5 -1.50 [2,] -0.45 -0.5 0.2 -0.60 -0.20 -0.1 -0.50 -0.50 -0.40 0.2 -1.2 -1.10 [3,] -0.40 0.5 0.4 0.05 0.45 0.4 0.05 0.05 0.25 0.8 0.8 0.75 [4,] 0.80 1.0 1.0 2.00 1.30 0.7 1.20 0.60 2.20 1.1 1.5 1.00 [5,] 1.20 1.0 1.8 2.30 2.30 0.7 2.20 0.60 2.30 2.3 2.2 1.40 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.1464798 -0.4675484 -0.1160258 -1.627084 -0.5175484 -0.1160258 -1.046555 [2,] 0.3464798 1.4675484 0.9160258 1.727084 1.4175484 0.9160258 1.146555 [,8] [,9] [,10] [,11] [,12] [1,] -0.6595355 -1.427084 0.2194709 -0.9415872 -0.6045678 [2,] 0.7595355 1.927084 1.3805291 2.5415872 2.1045678 $out [1] -10.4 2.4 2.3 $group [1] 4 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.700000000000003, -0.450000000000003, -0.399999999999991, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/674au1230119466.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,] 97.1 103.80 111.40 108.70 112.10 115.0 118.80 [2,] 98.0 105.30 113.30 110.05 113.65 115.6 118.80 [3,] 104.0 108.80 113.70 113.85 114.40 115.8 119.35 [4,] 107.2 109.75 114.95 120.40 114.85 116.4 119.90 [5,] 108.0 110.40 116.00 121.90 116.00 117.0 119.90 $n [1] 12 12 12 12 12 12 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 99.80382 106.7703 112.9474 109.1293 113.8527 115.4351 118.1210 [2,] 108.19618 110.8297 114.4526 118.5707 114.9473 116.1649 120.5790 $out [1] 118.3 120.5 117.9 $group [1] 3 3 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(97.1, 98, 104, 107.2, 108, 103.8, 105.3, 108.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7s9a61230119466.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,] 110.3500 111.65 110.9375 [2,] 111.1750 111.90 111.7625 [3,] 111.8250 112.80 112.0500 [4,] 112.4333 114.00 112.9750 [5,] 113.9667 114.60 114.2625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 111.2511 111.8422 111.4970 [2,] 112.3989 113.7578 112.6030 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(110.35, 111.175, 111.825, 112.433333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yilv1230119466.ps tmp/1yilv1230119466.png") > system("convert tmp/23fic1230119466.ps tmp/23fic1230119466.png") > system("convert tmp/3t2sl1230119466.ps tmp/3t2sl1230119466.png") > system("convert tmp/4dex21230119466.ps tmp/4dex21230119466.png") > system("convert tmp/59fdr1230119466.ps tmp/59fdr1230119466.png") > system("convert tmp/674au1230119466.ps tmp/674au1230119466.png") > system("convert tmp/7s9a61230119466.ps tmp/7s9a61230119466.png") > > > proc.time() user system elapsed 1.189 0.939 2.006