R version 2.6.0 (2007-10-03) Copyright (C) 2007 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(108.1,105.4,114.6,106.9,115.9,109.8,101.8,114.2,110.8,108.4,127.5,128.6,116.6,127.4,105.0,108.3,125.0,111.6,106.5,130.3,115.0,116.1,134.0,126.5,125.8,136.4,114.9,110.9,125.5,116.8,116.8,125.5,104.2,115.1,132.8,123.3,124.8,122.0,117.4,117.9,137.4,114.6,124.7,129.6,109.4,120.9,134.9,136.3,133.2,127.2,122.7,120.5,137.8,119.1,124.3,134.4,121.1,121.0,127.0,133.4) > 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,] 108.1 116.6 125.8 124.8 133.2 NA [2,] 105.4 127.4 136.4 122.0 127.2 NA [3,] 114.6 105.0 114.9 117.4 122.7 NA [4,] 106.9 108.3 110.9 117.9 120.5 NA [5,] 115.9 125.0 125.5 137.4 137.8 NA [6,] 109.8 111.6 116.8 114.6 119.1 NA [7,] 101.8 106.5 116.8 124.7 124.3 NA [8,] 114.2 130.3 125.5 129.6 134.4 NA [9,] 110.8 115.0 104.2 109.4 121.1 NA [10,] 108.4 116.1 115.1 120.9 121.0 NA [11,] 127.5 134.0 132.8 134.9 127.0 NA [12,] 128.6 126.5 123.3 136.3 133.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2.7 10.8 10.6 -2.8 -6.0 NA [2,] 9.2 -22.4 -21.5 -4.6 -4.5 NA [3,] -7.7 3.3 -4.0 0.5 -2.2 NA [4,] 9.0 16.7 14.6 19.5 17.3 NA [5,] -6.1 -13.4 -8.7 -22.8 -18.7 NA [6,] -8.0 -5.1 0.0 10.1 5.2 NA [7,] 12.4 23.8 8.7 4.9 10.1 NA [8,] -3.4 -15.3 -21.3 -20.2 -13.3 NA [9,] -2.4 1.1 10.9 11.5 -0.1 NA [10,] 19.1 17.9 17.7 14.0 6.0 NA [11,] 1.1 -7.5 -9.5 1.4 6.4 NA [12,] -12.0 -0.7 1.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/13xs41198163445.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/2sq011198163445.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/32uhf1198163445.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/4udhu1198163445.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,] 108.1 122.0 114.6 106.9 115.9 109.8 101.8 125.5 104.2 108.4 127.0 123.3 [2,] 116.6 122.0 114.6 108.3 125.0 111.6 106.5 125.5 109.4 115.1 127.5 126.5 [3,] 124.8 127.2 114.9 110.9 125.5 114.6 116.8 129.6 110.8 116.1 132.8 128.6 [4,] 125.8 127.4 117.4 117.9 137.4 116.8 124.3 130.3 115.0 120.9 134.0 133.4 [5,] 133.2 127.4 117.4 120.5 137.8 119.1 124.7 134.4 121.1 121.0 134.9 136.3 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 118.2993 123.3844 112.9215 104.1167 116.7382 110.9257 104.2226 126.2083 [2,] 131.3007 131.0156 116.8785 117.6833 134.2618 118.2743 129.3774 132.9917 [,9] [,10] [,11] [,12] [1,] 106.8431 112.0017 128.2071 123.7245 [2,] 114.7569 120.1983 137.3929 133.4755 $out [1] 105.4 136.4 105.0 122.7 114.2 $group [1] 2 2 3 3 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(108.1, 116.6, 124.8, 125.8, 133.2, 122, 122, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gemi1198163445.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,] -6.0 -22.4 -7.7 14.6 -22.8 -8.0 4.9 -21.3 -2.4 14.0 -9.5 -12.00 [2,] -2.8 -21.5 -4.0 14.6 -18.7 -5.1 8.7 -20.2 -0.1 14.0 -7.5 -7.55 [3,] -2.7 -4.6 -2.2 16.7 -13.4 0.0 10.1 -15.3 1.1 17.7 1.1 -1.90 [4,] 10.6 -4.5 0.5 17.3 -8.7 5.2 12.4 -13.3 10.9 17.9 1.4 0.40 [5,] 10.8 9.2 3.3 19.5 -6.1 10.1 12.4 -3.4 11.5 19.1 6.4 1.50 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -12.168406 -16.612157 -5.3796887 14.79219 -20.465975 -7.277954 7.48559 [2,] 6.768406 7.412157 0.9796887 18.60781 -6.334025 7.277954 12.71441 [,8] [,9] [,10] [,11] [,12] [1,] -20.17552 -6.672572 14.94427 -5.188718 -8.1805 [2,] -10.42448 8.872572 20.45573 7.388718 4.3805 $out [1] 9.0 23.8 6.0 $group [1] 4 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-5.99999999999999, -2.800, -2.69999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ldft1198163445.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,] 101.80 105.00 104.20 109.40 119.10 NA [2,] 107.50 109.95 115.00 117.65 121.05 NA [3,] 110.30 116.35 120.05 123.35 125.65 NA [4,] 115.25 126.95 125.65 132.25 133.30 NA [5,] 115.90 134.00 136.40 137.40 137.80 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 106.7652 108.5962 115.1925 116.6908 120.0627 NA [2,] 113.8348 124.1038 124.9075 130.0092 131.2373 NA $out [1] 127.5 128.6 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(101.8, 107.5, 110.3, 115.25, 115.9, 105, 109.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70lks1198163445.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,] 112.10 110.80 112.200 [2,] 114.60 114.75 114.800 [3,] 119.00 120.80 119.600 [4,] 127.56 127.90 128.925 [5,] 131.24 132.80 131.200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 113.0889 114.8022 113.1575 [2,] 124.9111 126.7978 126.0425 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(112.1, 114.6, 119, 127.56, 131.24, 110.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13xs41198163445.ps tmp/13xs41198163445.png") > system("convert tmp/2sq011198163445.ps tmp/2sq011198163445.png") > system("convert tmp/32uhf1198163445.ps tmp/32uhf1198163445.png") > system("convert tmp/4udhu1198163445.ps tmp/4udhu1198163445.png") > system("convert tmp/5gemi1198163445.ps tmp/5gemi1198163445.png") > system("convert tmp/6ldft1198163445.ps tmp/6ldft1198163445.png") > system("convert tmp/70lks1198163445.ps tmp/70lks1198163445.png") > > > proc.time() user system elapsed 1.478 0.971 1.931