R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(99.2,93.6,104.2,95.3,102.7,103.1,100,107.2,107,119,110.4,101.7,102.4,98.8,105.6,104.4,106.3,107.2,108.5,106.9,114.2,125.9,110.6,110.5,106.7,104.7,107.4,109.8,103.4,114.8,114.3,109.6,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) > 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,] 99.2 102.4 106.7 108.2 112.7 NA [2,] 93.6 98.8 104.7 105.4 105.8 NA [3,] 104.2 105.6 107.4 122.1 120.9 NA [4,] 95.3 104.4 109.8 113.5 116.3 NA [5,] 102.7 106.3 103.4 110.0 115.7 NA [6,] 103.1 107.2 114.8 125.3 127.9 NA [7,] 100.0 108.5 114.3 114.3 108.3 NA [8,] 107.2 106.9 109.6 115.6 121.1 NA [9,] 107.0 114.2 118.3 127.1 128.6 NA [10,] 119.0 125.9 127.3 123.0 123.1 NA [11,] 110.4 110.6 112.3 122.2 127.7 NA [12,] 101.7 110.5 114.9 126.4 126.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -5.6 -3.6 -2.0 -2.8 -6.9 NA [2,] 10.6 6.8 2.7 16.7 15.1 NA [3,] -8.9 -1.2 2.4 -8.6 -4.6 NA [4,] 7.4 1.9 -6.4 -3.5 -0.6 NA [5,] 0.4 0.9 11.4 15.3 12.2 NA [6,] -3.1 1.3 -0.5 -11.0 -19.6 NA [7,] 7.2 -1.6 -4.7 1.3 12.8 NA [8,] -0.2 7.3 8.7 11.5 7.5 NA [9,] 12.0 11.7 9.0 -4.1 -5.5 NA [10,] -8.6 -15.3 -15.0 -0.8 4.6 NA [11,] -8.7 -0.1 2.6 4.2 -1.1 NA [12,] 0.7 -3.8 -6.7 -13.7 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/1qf3q1258046275.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/2hm971258046275.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/3pst61258046275.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/4v8ze1258046275.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,] 99.2 93.6 104.2 95.3 102.7 103.1 100.0 106.9 107.0 119.0 110.4 101.7 [2,] 102.4 98.8 105.6 104.4 103.4 107.2 108.3 107.2 114.2 123.0 110.6 110.5 [3,] 106.7 104.7 107.4 109.8 106.3 114.8 108.5 109.6 118.3 123.1 112.3 114.9 [4,] 108.2 105.4 120.9 113.5 110.0 125.3 114.3 115.6 127.1 125.9 122.2 126.4 [5,] 112.7 105.8 122.1 116.3 115.7 127.9 114.3 121.1 128.6 127.3 127.7 126.6 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 102.6017 100.0365 96.58906 103.3700 101.6365 102.0106 104.2604 103.6646 [2,] 110.7983 109.3635 118.21094 116.2300 110.9635 127.5894 112.7396 115.5354 [,9] [,10] [,11] [,12] [1,] 109.1849 121.0509 104.1035 103.6651 [2,] 127.4151 125.1491 120.4965 126.1349 $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(99.2, 102.4, 106.7, 108.2, 112.7, 93.6, 98.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5akta1258046275.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.9 2.7 -8.9 -6.4 0.4 -19.6 -4.7 7.3 -5.5 -15.3 -1.1 -13.70 [2,] -5.6 6.8 -8.6 -3.5 0.9 -11.0 -1.6 7.3 -4.1 -15.0 -1.1 -10.20 [3,] -3.6 10.6 -4.6 -0.6 11.4 -3.1 1.3 7.5 9.0 -8.6 -0.1 -5.25 [4,] -2.8 15.1 -1.2 1.9 12.2 -0.5 7.2 8.7 11.7 -0.8 2.6 -1.55 [5,] -2.0 16.7 2.4 7.4 15.3 1.3 12.8 8.7 12.0 4.6 4.2 0.70 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5.578473 4.735241 -9.8288214 -4.415626 3.415448 -10.519274 -4.918058 [2,] -1.621527 16.464759 0.6288214 3.215626 19.384552 4.319274 7.518058 [,8] [,9] [,10] [,11] [,12] [1,] 6.510764 -2.16424 -18.633684 -2.714411 -12.0835 [2,] 8.489236 20.16424 1.433684 2.514411 1.5835 $out [1] -0.2 11.5 -8.7 $group [1] 8 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.9, -5.60000000000001, -3.60000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yy1k1258046275.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,] 93.6 98.80 103.40 105.40 105.80 NA [2,] 99.6 105.00 107.05 111.75 114.20 NA [3,] 102.9 107.05 111.05 118.85 121.00 NA [4,] 107.1 110.55 114.85 124.15 127.15 NA [5,] 110.4 114.20 118.30 127.10 128.60 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.4792 104.5186 107.4924 113.1943 115.0934 NA [2,] 106.3208 109.5814 114.6076 124.5057 126.9066 NA $out [1] 119.0 125.9 127.3 $group [1] 1 2 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(93.6, 99.6, 102.9, 107.1, 110.4, 98.8, 105, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7neo21258046275.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,] 101.66 104.70 102.100 [2,] 107.74 107.05 107.825 [3,] 112.06 109.70 112.325 [4,] 116.33 114.85 117.425 [5,] 123.66 123.10 124.450 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 108.1420 106.1424 107.9464 [2,] 115.9780 113.2576 116.7036 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(101.66, 107.74, 112.06, 116.33, 123.66, 104.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qf3q1258046275.ps tmp/1qf3q1258046275.png") > system("convert tmp/2hm971258046275.ps tmp/2hm971258046275.png") > system("convert tmp/3pst61258046275.ps tmp/3pst61258046275.png") > system("convert tmp/4v8ze1258046275.ps tmp/4v8ze1258046275.png") > system("convert tmp/5akta1258046275.ps tmp/5akta1258046275.png") > system("convert tmp/6yy1k1258046275.ps tmp/6yy1k1258046275.png") > system("convert tmp/7neo21258046275.ps tmp/7neo21258046275.png") > > > proc.time() user system elapsed 1.226 0.972 1.518