R version 2.7.0 (2008-04-22) 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(102.9,102.9,102.9,102.9,104.2,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,106,107,107,107,107,107,107,107,107,107,107,107,107.6,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,110.6,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,121.27,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,128.35,128.35,128.35,128.35,128.35,128.35,128.35) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [2,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [3,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [4,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [5,] 104.2 106.0 107.6 110.6 114.30 121.27 123.54 125.24 NA [6,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [7,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [8,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [9,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [10,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [11,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [12,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [2,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [3,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [4,] 1.3 1.3 0.6 0.7 0.00 2.26 0.0 0.00 NA [5,] 0.5 1.0 2.3 3.7 4.71 2.27 1.7 3.11 NA [6,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [7,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [8,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [9,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [10,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [11,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 0.00 NA [12,] 0.0 0.0 0.0 0.0 0.00 0.00 0.0 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/12g1l1228341811.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/2chmu1228341811.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/308w01228341811.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/4kqy21228341811.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] [1,] 102.900 102.900 102.900 102.900 104.200 104.700 104.700 104.700 104.700 [2,] 105.850 105.850 105.850 105.850 106.800 108.450 108.450 108.450 108.450 [3,] 112.100 112.100 112.100 112.100 112.450 116.655 116.655 116.655 116.655 [4,] 121.275 121.275 121.275 121.275 122.405 124.390 124.390 124.390 124.390 [5,] 125.240 125.240 125.240 125.240 125.240 128.350 128.350 128.350 128.350 [,10] [,11] [,12] [1,] 104.700 104.700 104.700 [2,] 108.450 108.450 108.450 [3,] 116.655 116.655 116.655 [4,] 124.390 124.390 124.390 [5,] 128.350 128.350 128.350 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.4834 103.4834 103.4834 103.4834 103.7328 107.7507 107.7507 107.7507 [2,] 120.7166 120.7166 120.7166 120.7166 121.1672 125.5593 125.5593 125.5593 [,9] [,10] [,11] [,12] [1,] 107.7507 107.7507 107.7507 107.7507 [2,] 125.5593 125.5593 125.5593 125.5593 $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(102.9, 105.85, 112.1, 121.275, 125.24, 102.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51swz1228341811.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 0 0 0.00 0.500 0 0 0 0 0 0 0 [2,] 0 0 0 0.00 1.350 0 0 0 0 0 0 0 [3,] 0 0 0 0.65 2.285 0 0 0 0 0 0 0 [4,] 0 0 0 1.30 3.405 0 0 0 0 0 0 0 [5,] 0 0 0 2.26 4.710 0 0 0 0 0 0 0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0 0 0 -0.07619866 1.137047 0 0 0 0 0 0 0 [2,] 0 0 0 1.37619866 3.432953 0 0 0 0 0 0 0 $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(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66y2k1228341811.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] [,8] [,9] [1,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [2,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [3,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [4,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [5,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.879 105.9510 108.5773 112.2931 116.8617 121.4738 124.4646 126.9315 [2,] 105.521 108.0490 111.2227 116.3069 121.1583 125.6062 126.0154 129.7685 [,9] [1,] NA [2,] NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(102.9, 102.9, 104.7, 104.7, 104.7, 104.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7q7ck1228341811.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.3238 112.100 113.2837 [2,] 113.3238 112.100 113.2837 [3,] 116.5050 116.655 116.5700 [4,] 116.5050 116.655 116.5700 [5,] 116.5050 116.655 116.5700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 115.054 114.5774 115.0711 [2,] 117.956 118.7326 118.0689 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(113.32375, 113.32375, 116.505, 116.505, 116.505, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/12g1l1228341811.ps tmp/12g1l1228341811.png") > system("convert tmp/2chmu1228341811.ps tmp/2chmu1228341811.png") > system("convert tmp/308w01228341811.ps tmp/308w01228341811.png") > system("convert tmp/4kqy21228341811.ps tmp/4kqy21228341811.png") > system("convert tmp/51swz1228341811.ps tmp/51swz1228341811.png") > system("convert tmp/66y2k1228341811.ps tmp/66y2k1228341811.png") > system("convert tmp/7q7ck1228341811.ps tmp/7q7ck1228341811.png") > > > proc.time() user system elapsed 2.573 1.592 2.816