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(1.5291,1.5358,1.5355,1.5287,1.5334,1.5225,1.5135,1.5144,1.4913,1.4793,1.4663,1.4749,1.4745,1.4775,1.4678,1.4658,1.4572,1.4721,1.4624,1.4636,1.4649,1.465,1.4673,1.4679,1.4621,1.4674,1.4695,1.4964,1.5155,1.5411,1.5476,1.54,1.5474,1.5485,1.559,1.5544,1.5657,1.5734,1.567,1.5547,1.54,1.5192,1.527,1.5387,1.5431,1.5426,1.5216,1.5364,1.5469,1.5501,1.5494,1.5475,1.5448,1.5391,1.5578,1.5528,1.5496,1.549,1.5449,1.5479) > 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,] 1.5291 1.4745 1.4621 1.5657 1.5469 NA [2,] 1.5358 1.4775 1.4674 1.5734 1.5501 NA [3,] 1.5355 1.4678 1.4695 1.5670 1.5494 NA [4,] 1.5287 1.4658 1.4964 1.5547 1.5475 NA [5,] 1.5334 1.4572 1.5155 1.5400 1.5448 NA [6,] 1.5225 1.4721 1.5411 1.5192 1.5391 NA [7,] 1.5135 1.4624 1.5476 1.5270 1.5578 NA [8,] 1.5144 1.4636 1.5400 1.5387 1.5528 NA [9,] 1.4913 1.4649 1.5474 1.5431 1.5496 NA [10,] 1.4793 1.4650 1.5485 1.5426 1.5490 NA [11,] 1.4663 1.4673 1.5590 1.5216 1.5449 NA [12,] 1.4749 1.4679 1.5544 1.5364 1.5479 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0067 0.0030 0.0053 0.0077 0.0032 NA [2,] -0.0003 -0.0097 0.0021 -0.0064 -0.0007 NA [3,] -0.0068 -0.0020 0.0269 -0.0123 -0.0019 NA [4,] 0.0047 -0.0086 0.0191 -0.0147 -0.0027 NA [5,] -0.0109 0.0149 0.0256 -0.0208 -0.0057 NA [6,] -0.0090 -0.0097 0.0065 0.0078 0.0187 NA [7,] 0.0009 0.0012 -0.0076 0.0117 -0.0050 NA [8,] -0.0231 0.0013 0.0074 0.0044 -0.0032 NA [9,] -0.0120 0.0001 0.0011 -0.0005 -0.0006 NA [10,] -0.0130 0.0023 0.0105 -0.0210 -0.0041 NA [11,] 0.0086 0.0006 -0.0046 0.0148 0.0030 NA [12,] -0.0004 -0.0058 0.0113 0.0105 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/12e9l1257772080.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/2z9nt1257772080.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/39yce1257772080.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/4ak551257772080.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] [1,] 1.4621 1.4674 1.4678 1.4658 1.5155 1.5192 1.4624 1.5144 1.4649 1.4650 [2,] 1.4745 1.4775 1.4695 1.4964 1.5155 1.5192 1.5135 1.5144 1.4913 1.4793 [3,] 1.5291 1.5358 1.5355 1.5287 1.5334 1.5225 1.5270 1.5387 1.5431 1.5426 [4,] 1.5469 1.5501 1.5494 1.5475 1.5400 1.5391 1.5476 1.5400 1.5474 1.5485 [5,] 1.5657 1.5734 1.5670 1.5547 1.5448 1.5411 1.5578 1.5528 1.5496 1.5490 [,11] [,12] [1,] 1.4663 1.4679 [2,] 1.4673 1.4749 [3,] 1.5216 1.5364 [4,] 1.5449 1.5479 [5,] 1.5590 1.5544 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.477942 1.484501 1.479043 1.492593 1.516088 1.508439 1.502905 1.520611 [2,] 1.580258 1.587099 1.591957 1.564807 1.550712 1.536561 1.551095 1.556789 [,9] [,10] [,11] [,12] [1,] 1.50346 1.493703 1.466768 1.484818 [2,] 1.58274 1.591497 1.576432 1.587982 $out [1] 1.4572 1.4721 1.4636 $group [1] 5 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.4621, 1.4745, 1.5291, 1.5469, 1.5657, 1.4674, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54qfb1257772080.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] [1,] 0.0030 -0.0097 -0.0123 -0.0147 -0.0208 -0.0097 -0.0076 -0.0032 -0.0006 [2,] 0.0032 -0.0064 -0.0068 -0.0086 -0.0109 -0.0090 -0.0050 -0.0032 -0.0006 [3,] 0.0053 -0.0007 -0.0020 -0.0027 -0.0057 0.0065 0.0009 0.0013 -0.0005 [4,] 0.0067 -0.0003 -0.0019 0.0047 0.0149 0.0078 0.0012 0.0044 0.0001 [5,] 0.0077 0.0021 -0.0019 0.0191 0.0256 0.0187 0.0012 0.0074 0.0011 [,10] [,11] [,12] [1,] -0.0210 -0.0046 -0.00580 [2,] -0.0130 0.0006 -0.00310 [3,] -0.0041 0.0030 0.00505 [4,] 0.0023 0.0086 0.01090 [5,] 0.0105 0.0148 0.01130 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [1,] 0.002826909 -0.005010245 -0.005462328 -0.012097746 -0.02393022 [2,] 0.007773091 0.003610245 0.001462328 0.006697746 0.01253022 [,6] [,7] [,8] [,9] [,10] [1,] -0.005370838 -0.003480904 -0.004070141 -9.946182e-04 -0.014910941 [2,] 0.018370838 0.005280904 0.006670141 -5.381763e-06 0.006710941 [,11] [,12] [1,] -0.00265278 -0.00601 [2,] 0.00865278 0.01611 $out [1] 0.0269 0.0117 -0.0231 -0.0120 $group [1] 3 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.00300000000000011, 0.00320000000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6b5n31257772080.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,] 1.46630 1.45720 1.46210 1.5192 1.54480 NA [2,] 1.48530 1.46425 1.48295 1.5317 1.54590 NA [3,] 1.51845 1.46655 1.54055 1.5413 1.54845 NA [4,] 1.53125 1.47000 1.54805 1.5602 1.54985 NA [5,] 1.53580 1.47750 1.55900 1.5734 1.55280 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.497492 1.463927 1.510857 1.528301 1.546648 NA [2,] 1.539408 1.469173 1.570243 1.554299 1.550252 NA $out [1] 1.5391 1.5578 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.4663, 1.4853, 1.51845, 1.53125, 1.5358, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7iaxv1257772080.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,] 1.51182 1.52160 1.506100 [2,] 1.51659 1.52785 1.511050 [3,] 1.51840 1.53445 1.516625 [4,] 1.52005 1.53755 1.527475 [5,] 1.52190 1.54310 1.530550 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.516822 1.530026 1.509133 [2,] 1.519978 1.538874 1.524117 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.51182, 1.51659, 1.5184, 1.52005, 1.5219, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/12e9l1257772080.ps tmp/12e9l1257772080.png") > system("convert tmp/2z9nt1257772080.ps tmp/2z9nt1257772080.png") > system("convert tmp/39yce1257772080.ps tmp/39yce1257772080.png") > system("convert tmp/4ak551257772080.ps tmp/4ak551257772080.png") > system("convert tmp/54qfb1257772080.ps tmp/54qfb1257772080.png") > system("convert tmp/6b5n31257772080.ps tmp/6b5n31257772080.png") > system("convert tmp/7iaxv1257772080.ps tmp/7iaxv1257772080.png") > > > proc.time() user system elapsed 1.236 0.971 1.667