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(115.6,111.9,107,107.1,100.6,99.2,108.4,103,99.8,115,90.8,95.9,114.4,108.2,112.6,109.1,105,105,118.5,103.7,112.5,116.6,96.6,101.9,116.5,119.3,115.4,108.5,111.5,108.8,121.8,109.6,112.2,119.6,104.1,105.3,115,124.1,116.8,107.5,115.6,116.2,116.3,119,111.9,118.6,106.9,103.2,118.6,118.7,102.8,100.6,94.9,94.5,102.9,95.3,92.5,102.7,91.5,89.5) > 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,] 115.6 114.4 116.5 115.0 118.6 NA [2,] 111.9 108.2 119.3 124.1 118.7 NA [3,] 107.0 112.6 115.4 116.8 102.8 NA [4,] 107.1 109.1 108.5 107.5 100.6 NA [5,] 100.6 105.0 111.5 115.6 94.9 NA [6,] 99.2 105.0 108.8 116.2 94.5 NA [7,] 108.4 118.5 121.8 116.3 102.9 NA [8,] 103.0 103.7 109.6 119.0 95.3 NA [9,] 99.8 112.5 112.2 111.9 92.5 NA [10,] 115.0 116.6 119.6 118.6 102.7 NA [11,] 90.8 96.6 104.1 106.9 91.5 NA [12,] 95.9 101.9 105.3 103.2 89.5 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -3.7 -6.2 2.8 9.1 0.1 NA [2,] -4.9 4.4 -3.9 -7.3 -15.9 NA [3,] 0.1 -3.5 -6.9 -9.3 -2.2 NA [4,] -6.5 -4.1 3.0 8.1 -5.7 NA [5,] -1.4 0.0 -2.7 0.6 -0.4 NA [6,] 9.2 13.5 13.0 0.1 8.4 NA [7,] -5.4 -14.8 -12.2 2.7 -7.6 NA [8,] -3.2 8.8 2.6 -7.1 -2.8 NA [9,] 15.2 4.1 7.4 6.7 10.2 NA [10,] -24.2 -20.0 -15.5 -11.7 -11.2 NA [11,] 5.1 5.3 1.2 -3.7 -2.0 NA [12,] 18.5 14.6 9.7 15.4 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/1iori1258139064.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/20hvz1258139064.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/3uhgh1258139064.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/4mhhb1258139064.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,] 114.4 108.2 102.8 107.1 94.9 94.5 102.9 95.3 92.5 115.0 90.8 89.5 [2,] 115.0 111.9 107.0 107.1 100.6 99.2 108.4 103.0 99.8 115.0 91.5 95.9 [3,] 115.6 118.7 112.6 107.5 105.0 105.0 116.3 103.7 111.9 116.6 96.6 101.9 [4,] 116.5 119.3 115.4 108.5 111.5 108.8 118.5 109.6 112.2 118.6 104.1 103.2 [5,] 118.6 124.1 116.8 109.1 115.6 116.2 121.8 119.0 112.5 119.6 106.9 105.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,] 114.5401 113.4712 106.6646 106.5108 97.29809 98.21666 109.1634 99.03646 [2,] 116.6599 123.9288 118.5354 108.4892 112.70191 111.78334 123.4366 108.36354 [,9] [,10] [,11] [,12] [1,] 103.1382 114.0562 87.69687 96.74184 [2,] 120.6618 119.1438 105.50313 107.05816 $out [1] 100.6 102.7 $group [1] 4 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(114.4, 115, 115.6, 116.5, 118.6, 108.2, 111.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58d5x1258139064.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.2 -7.3 -9.3 -6.5 -2.7 8.4 -14.8 -7.1 4.1 -24.2 -3.7 9.70 [2,] -3.7 -7.3 -6.9 -5.7 -1.4 8.4 -12.2 -3.2 6.7 -20.0 -2.0 12.15 [3,] 0.1 -4.9 -3.5 -4.1 -0.4 9.2 -7.6 -2.8 7.4 -15.5 1.2 15.00 [4,] 2.8 -3.9 -2.2 3.0 0.0 13.0 -5.4 2.6 10.2 -11.7 5.1 16.95 [5,] 9.1 -3.9 0.1 8.1 0.6 13.5 2.7 8.8 15.2 -11.2 5.3 18.50 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.492884 -7.302431 -6.8210082 -10.247398 -1.3892365 5.949652 -12.404863 [2,] 4.692884 -2.497569 -0.1789918 2.047398 0.5892365 12.450348 -2.795137 [,8] [,9] [,10] [,11] [,12] [1,] -6.898265 4.926909 -21.36476 -3.816842 11.208 [2,] 1.298265 9.873091 -9.63524 6.216842 18.792 $out [1] 4.4 -15.9 0.1 $group [1] 2 2 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.2, -3.69999999999999, 0.100000000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vnlb1258139064.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,] 90.80 96.60 104.10 103.2 89.50 NA [2,] 99.50 104.35 108.65 109.7 93.50 NA [3,] 105.00 108.65 111.85 115.9 97.95 NA [4,] 110.15 113.50 117.90 117.7 102.85 NA [5,] 115.60 118.50 121.80 124.1 102.90 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.1425 104.4766 107.6310 112.2511 93.6854 NA [2,] 109.8575 112.8234 116.0690 119.5489 102.2146 NA $out [1] 118.6 118.7 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(90.8, 99.5, 105, 110.15, 115.6, 96.6, 104.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7mmje1258139064.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,] 97.98 96.60 97.800 [2,] 105.13 104.35 105.000 [3,] 106.34 109.70 107.050 [4,] 114.04 115.95 114.525 [5,] 116.44 118.70 116.800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 102.2761 104.4092 102.7056 [2,] 110.4039 114.9908 111.3944 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(97.98, 105.13, 106.34, 114.04, 116.44, 96.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1iori1258139064.ps tmp/1iori1258139064.png") > system("convert tmp/20hvz1258139064.ps tmp/20hvz1258139064.png") > system("convert tmp/3uhgh1258139064.ps tmp/3uhgh1258139064.png") > system("convert tmp/4mhhb1258139064.ps tmp/4mhhb1258139064.png") > system("convert tmp/58d5x1258139064.ps tmp/58d5x1258139064.png") > system("convert tmp/6vnlb1258139064.ps tmp/6vnlb1258139064.png") > system("convert tmp/7mmje1258139064.ps tmp/7mmje1258139064.png") > > > proc.time() user system elapsed 1.256 0.979 1.645