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(118.3,127.3,112.3,114.9,108.2,105.4,122.1,113.5,110,125.3,114.3,115.6,127.1,123,122.2,126.4,112.7,105.8,120.9,116.3,115.7,127.9,108.3,121.1,128.6,123.1,127.7,126.6,118.4,110,129.6,115.8,125.9,128.4,114,125.6,128.5,136.6,133.1,124.6,123.5,117.2,135.5,124.8,127.8,133.1,125.7,128.4,131.9,146.3,140.6,129.5,132.4,125.9,126.9,135.8,129.5,130.2,133.8,123.3,140.6) > 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] 61 > (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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 118.3 127.1 128.6 128.5 131.9 140.6 [2,] 127.3 123.0 123.1 136.6 146.3 NA [3,] 112.3 122.2 127.7 133.1 140.6 NA [4,] 114.9 126.4 126.6 124.6 129.5 NA [5,] 108.2 112.7 118.4 123.5 132.4 NA [6,] 105.4 105.8 110.0 117.2 125.9 NA [7,] 122.1 120.9 129.6 135.5 126.9 NA [8,] 113.5 116.3 115.8 124.8 135.8 NA [9,] 110.0 115.7 125.9 127.8 129.5 NA [10,] 125.3 127.9 128.4 133.1 130.2 NA [11,] 114.3 108.3 114.0 125.7 133.8 NA [12,] 115.6 121.1 125.6 128.4 123.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 9.0 -4.1 -5.5 8.1 14.4 NA [2,] -15.0 -0.8 4.6 -3.5 -5.7 NA [3,] 2.6 4.2 -1.1 -8.5 -11.1 NA [4,] -6.7 -13.7 -8.2 -1.1 2.9 NA [5,] -2.8 -6.9 -8.4 -6.3 -6.5 NA [6,] 16.7 15.1 19.6 18.3 1.0 NA [7,] -8.6 -4.6 -13.8 -10.7 8.9 NA [8,] -3.5 -0.6 10.1 3.0 -6.3 NA [9,] 15.3 12.2 2.5 5.3 0.7 NA [10,] -11.0 -19.6 -14.4 -7.4 3.6 NA [11,] 1.3 12.8 11.6 2.7 -10.5 NA [12,] 11.5 7.5 2.9 3.5 17.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/1t9v31229352072.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/201m61229352073.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/3mmdh1229352073.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/4slqe1229352073.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,] 127.10 123.0 112.3 124.6 108.2 105.4 120.9 113.5 110.0 125.3 108.3 115.6 [2,] 127.10 123.1 122.2 124.6 112.7 105.8 122.1 115.8 115.7 127.9 114.0 121.1 [3,] 128.55 127.3 127.7 126.4 118.4 110.0 126.9 116.3 125.9 128.4 114.3 123.3 [4,] 131.90 136.6 133.1 126.6 123.5 117.2 129.6 124.8 127.8 130.2 125.7 125.6 [5,] 131.90 146.3 140.6 129.5 132.4 125.9 135.5 135.8 129.5 133.1 133.8 128.4 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 125.4538 117.7609 119.9981 124.9868 110.7687 101.9448 121.6005 109.9406 [2,] 131.6462 136.8391 135.4019 127.8132 126.0313 118.0552 132.1995 122.6594 [,9] [,10] [,11] [,12] [1,] 117.3502 126.7748 106.0328 120.1203 [2,] 134.4498 130.0252 122.5672 126.4797 $out [1] 118.3 140.6 114.9 $group [1] 1 1 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(127.1, 127.1, 128.55, 131.9, 131.9, 123, 123.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ufvy1229352073.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,] -5.5 -5.7 -11.1 -13.7 -6.9 15.1 -13.8 -6.3 0.7 -19.6 -10.5 2.9 [2,] -4.1 -5.7 -8.5 -8.2 -6.9 15.1 -10.7 -3.5 2.5 -14.4 1.3 3.5 [3,] 8.1 -3.5 -1.1 -6.7 -6.5 16.7 -8.6 -0.6 5.3 -11.0 2.7 7.5 [4,] 9.0 -0.8 2.6 -1.1 -6.3 18.3 -4.6 3.0 12.2 -7.4 11.6 11.5 [5,] 14.4 4.6 4.2 2.9 -6.3 19.6 -4.6 10.1 15.3 -7.4 12.8 17.3 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.156427 -6.96232766 -8.943232 -11.716842 -6.923958 14.43889 -12.910245 [2,] 17.356427 -0.03767234 6.743232 -1.683158 -6.076042 18.96111 -4.289755 [,8] [,9] [,10] [,11] [,12] [1,] -5.192884 -1.553996 -15.946182 -4.577954 1.84722 [2,] 3.992884 12.153996 -6.053818 9.977954 13.15278 $out [1] -15.0 -2.8 -8.4 1.0 8.9 3.6 $group [1] 2 5 5 6 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-5.5, -4.09999999999999, 8.1, 9, 14.4, -5.70000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o8jb1229352073.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,] 105.40 105.8 110.00 117.2 123.30 140.6 [2,] 111.15 114.2 117.10 124.7 128.20 140.6 [3,] 114.60 121.0 125.75 128.1 131.05 140.6 [4,] 120.20 124.7 128.05 133.1 134.80 140.6 [5,] 127.30 127.9 129.60 136.6 140.60 140.6 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 110.4722 116.2109 120.7556 124.2687 128.0397 140.6 [2,] 118.7278 125.7891 130.7444 131.9313 134.0603 140.6 $out [1] 146.3 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(105.4, 111.15, 114.6, 120.2, 127.3, 105.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7y7561229352073.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.86 110.00 111.500 [2,] 120.23 117.35 120.075 [3,] 123.60 126.15 124.475 [4,] 128.08 127.50 128.350 [5,] 131.26 128.55 129.850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 120.0196 121.5205 120.7007 [2,] 127.1804 130.7795 128.2493 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(112.86, 120.23, 123.6, 128.08, 131.26, 110, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1t9v31229352072.ps tmp/1t9v31229352072.png") > system("convert tmp/201m61229352073.ps tmp/201m61229352073.png") > system("convert tmp/3mmdh1229352073.ps tmp/3mmdh1229352073.png") > system("convert tmp/4slqe1229352073.ps tmp/4slqe1229352073.png") > system("convert tmp/5ufvy1229352073.ps tmp/5ufvy1229352073.png") > system("convert tmp/6o8jb1229352073.ps tmp/6o8jb1229352073.png") > system("convert tmp/7y7561229352073.ps tmp/7y7561229352073.png") > > > proc.time() user system elapsed 1.246 0.980 1.594