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(40.04,40.04,40.03,40.03,41.63,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.03,42.38,42.06,42.06,42.05,42.05,42.05,42.05,44.36,44.48,44.49,44.49,44.49,44.49,44.49,44.48,44.48,44.48,44.48,44.48,44.48,44.49,44.49,44.49,44.49,44.49,44.49,44.49,44.49,45.5,45.94,45.95,45.96,45.96,45.96,45.96,45.96,45.96,45.96,45.96,45.97,46.06,47.9,47.93,47.94,47.94,47.94,47.94,47.94,47.94,47.94,47.94) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 40.04 42.03 42.05 44.48 44.49 45.97 NA [2,] 40.04 42.03 42.05 44.48 45.50 46.06 NA [3,] 40.03 42.03 42.05 44.48 45.94 47.90 NA [4,] 40.03 42.03 42.05 44.48 45.95 47.93 NA [5,] 41.63 42.03 44.36 44.48 45.96 47.94 NA [6,] 42.03 42.03 44.48 44.49 45.96 47.94 NA [7,] 42.03 42.03 44.49 44.49 45.96 47.94 NA [8,] 42.03 42.03 44.49 44.49 45.96 47.94 NA [9,] 42.03 42.03 44.49 44.49 45.96 47.94 NA [10,] 42.03 42.38 44.49 44.49 45.96 47.94 NA [11,] 42.03 42.06 44.49 44.49 45.96 47.94 NA [12,] 42.03 42.06 44.48 44.49 45.96 47.94 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.00 0.00 1.01 0.09 NA [2,] -0.01 0.00 0.00 0.00 0.44 1.84 NA [3,] 0.00 0.00 0.00 0.00 0.01 0.03 NA [4,] 1.60 0.00 2.31 0.00 0.01 0.01 NA [5,] 0.40 0.00 0.12 0.01 0.00 0.00 NA [6,] 0.00 0.00 0.01 0.00 0.00 0.00 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [8,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [9,] 0.00 0.35 0.00 0.00 0.00 0.00 NA [10,] 0.00 -0.32 0.00 0.00 0.00 0.00 NA [11,] 0.00 0.00 -0.01 0.00 0.00 0.00 NA [12,] 0.00 -0.01 0.00 0.00 0.01 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/1vj6c1243863884.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/2xm701243863884.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/3k6ww1243863884.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/4tw171243863884.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] [1,] 40.040 40.040 40.030 40.030 41.63 42.030 42.03 42.03 42.03 42.03 42.03 [2,] 42.030 42.030 42.030 42.030 42.03 42.030 42.03 42.03 42.03 42.38 42.06 [3,] 43.265 43.265 43.265 43.265 44.42 44.485 44.49 44.49 44.49 44.49 44.49 [4,] 44.490 45.500 45.940 45.950 45.96 45.960 45.96 45.96 45.96 45.96 45.96 [5,] 45.970 46.060 47.900 47.930 47.94 47.940 47.94 47.94 47.94 47.94 47.94 [,12] [1,] 42.030 [2,] 42.060 [3,] 44.485 [4,] 45.960 [5,] 47.940 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 41.67822 41.02674 40.74292 40.73647 41.88502 41.95002 41.95502 41.95502 [2,] 44.85178 45.50326 45.78708 45.79353 46.95498 47.01998 47.02498 47.02498 [,9] [,10] [,11] [,12] [1,] 41.95502 42.18078 41.97437 41.96937 [2,] 47.02498 46.79922 47.00563 47.00063 $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(40.04, 42.03, 43.265, 44.49, 45.97, 40.04, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vjgw1243863884.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,] 0.00 -0.01 0.00 0.00 0.000 0 0 0 0 0 0 0 [2,] 0.00 0.00 0.00 0.00 0.000 0 0 0 0 0 0 0 [3,] 0.00 0.00 0.00 0.01 0.005 0 0 0 0 0 0 0 [4,] 0.09 0.44 0.01 1.60 0.120 0 0 0 0 0 0 0 [5,] 0.09 0.44 0.01 2.31 0.120 0 0 0 0 0 0 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.05805291 -0.2838142 -0.006450323 -1.022052 -0.07240388 0 0 0 [2,] 0.05805291 0.2838142 0.006450323 1.042052 0.08240388 0 0 0 [,9] [,10] [,11] [,12] [1,] 0 0 0 0 [2,] 0 0 0 0 $out [1] 1.01 1.84 0.03 0.40 0.01 0.35 -0.32 -0.01 -0.01 0.01 $group [1] 1 2 3 5 6 9 10 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0.0900000000000034, 0.0900000000000034, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6evin1243863884.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] [,7] [1,] 40.03 42.030 42.05 44.48 45.940 47.900 NA [2,] 40.04 42.030 42.05 44.48 45.945 47.915 NA [3,] 42.03 42.030 44.48 44.49 45.960 47.940 NA [4,] 42.03 42.045 44.49 44.49 45.960 47.940 NA [5,] 42.03 42.060 44.49 44.49 45.960 47.940 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 41.12235 42.02316 43.3671 44.48544 45.95316 47.9286 NA [2,] 42.93765 42.03684 45.5929 44.49456 45.96684 47.9514 NA $out [1] 42.38 44.49 45.50 45.97 46.06 $group [1] 2 5 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(40.03, 40.04, 42.03, 42.03, 42.03, 42.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7289h1243863884.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,] 43.17667 43.265 43.64000 [2,] 43.74167 43.265 43.80687 [3,] 44.48917 44.485 44.11813 [4,] 44.49167 44.490 44.12375 [5,] 44.54833 44.490 44.25000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 44.14709 43.92627 43.97360 [2,] 44.83125 45.04373 44.26265 $out [1] 43.26125 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(43.1766666666667, 43.7416666666667, 44.4891666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1vj6c1243863884.ps tmp/1vj6c1243863884.png") > system("convert tmp/2xm701243863884.ps tmp/2xm701243863884.png") > system("convert tmp/3k6ww1243863884.ps tmp/3k6ww1243863884.png") > system("convert tmp/4tw171243863884.ps tmp/4tw171243863884.png") > system("convert tmp/5vjgw1243863884.ps tmp/5vjgw1243863884.png") > system("convert tmp/6evin1243863884.ps tmp/6evin1243863884.png") > system("convert tmp/7289h1243863884.ps tmp/7289h1243863884.png") > > > proc.time() user system elapsed 1.228 0.971 1.682