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(95.7,92.9,72.7,101.6,103.8,103,102.5,105,107.1,103.9,108.8,105.2,115.2,111.2,114.9,108.3,109,117.7,115.1,117.4,115.7,106.6,121.4,113.9,113.2,112.6,104.6,109.6,111.5,111.4,118,116.6,111,119.1,114.8,114.8,115.8,119.6,119.9,120.1,116.8,121.7,117.7,116.8,115.3,115.7,120.8,120,118.7,120.7,119.6,116.9,122.5,122.1,120.9,115.6,121.7,119.2,114.6,120.1,119.1) > 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,] 95.7 115.2 113.2 115.8 118.7 119.1 [2,] 92.9 111.2 112.6 119.6 120.7 NA [3,] 72.7 114.9 104.6 119.9 119.6 NA [4,] 101.6 108.3 109.6 120.1 116.9 NA [5,] 103.8 109.0 111.5 116.8 122.5 NA [6,] 103.0 117.7 111.4 121.7 122.1 NA [7,] 102.5 115.1 118.0 117.7 120.9 NA [8,] 105.0 117.4 116.6 116.8 115.6 NA [9,] 107.1 115.7 111.0 115.3 121.7 NA [10,] 103.9 106.6 119.1 115.7 119.2 NA [11,] 108.8 121.4 114.8 120.8 114.6 NA [12,] 105.2 113.9 114.8 120.0 120.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2.8 -4.0 -0.6 3.8 2.0 NA [2,] -20.2 3.7 -8.0 0.3 -1.1 NA [3,] 28.9 -6.6 5.0 0.2 -2.7 NA [4,] 2.2 0.7 1.9 -3.3 5.6 NA [5,] -0.8 8.7 -0.1 4.9 -0.4 NA [6,] -0.5 -2.6 6.6 -4.0 -1.2 NA [7,] 2.5 2.3 -1.4 -0.9 -5.3 NA [8,] 2.1 -1.7 -5.6 -1.5 6.1 NA [9,] -3.2 -9.1 8.1 0.4 -2.5 NA [10,] 4.9 14.8 -4.3 5.1 -4.6 NA [11,] -3.6 -7.5 0.0 -0.8 5.5 NA [12,] 10.0 -0.7 1.0 -1.3 -1.0 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/1kz291258045396.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/2ytv81258045396.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/3km2a1258045396.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/4dviu1258045396.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,] 113.2 111.2 104.6 101.6 103.8 103.0 115.1 115.6 107.1 103.9 108.8 105.2 [2,] 113.2 111.2 104.6 108.3 109.0 111.4 115.1 115.6 111.0 106.6 114.6 113.9 [3,] 115.5 112.6 114.9 109.6 111.5 117.7 117.7 116.6 115.3 115.7 114.8 114.8 [4,] 118.7 119.6 119.6 116.9 116.8 121.7 118.0 116.8 115.7 119.1 120.8 120.0 [5,] 119.1 120.7 119.9 120.1 122.5 122.1 120.9 117.4 121.7 119.2 121.4 120.1 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 111.9523 106.6646 104.3010 103.5233 105.9885 110.4220 115.6509 115.7521 [2,] 119.0477 118.5354 125.4990 115.6767 117.0115 124.9780 119.7491 117.4479 [,9] [,10] [,11] [,12] [1,] 111.979 106.8675 110.4191 110.4898 [2,] 118.621 124.5325 119.1809 119.1102 $out [1] 95.7 92.9 72.7 102.5 105.0 $group [1] 1 2 3 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(113.2, 113.2, 115.5, 118.7, 119.1, 111.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vv971258045396.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,] -4.0 -20.2 -6.6 0.7 -0.8 -4.0 -5.3 -5.6 -3.2 -4.6 -7.5 -1.3 [2,] -2.8 -8.0 -2.7 0.7 -0.4 -2.6 -1.4 -1.7 -3.2 -4.3 -3.6 -1.0 [3,] -0.6 -1.1 0.2 1.9 -0.1 -1.2 -0.9 -1.5 -2.5 4.9 -0.8 -0.7 [4,] 2.0 0.3 5.0 2.2 4.9 -0.5 2.3 2.1 0.4 5.1 0.0 1.0 [5,] 3.8 3.7 5.0 2.2 8.7 -0.5 2.5 6.1 0.4 14.8 0.0 1.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.991668 -6.964759 -5.240801 0.8401038 -3.844967 -2.6838547 -3.514411 [2,] 2.791668 4.764759 5.640801 2.9598962 3.644967 0.2838547 1.714411 [,8] [,9] [,10] [,11] [,12] [1,] -4.185070 -5.04375093 -1.742016 -3.343751 -2.113195 [2,] 1.185070 0.04375093 11.542016 1.743751 0.713195 $out [1] 28.9 -3.3 5.6 6.6 -9.1 8.1 5.5 10.0 $group [1] 3 4 4 6 9 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4, -2.800, -0.600000000000009, 2, 3.8, -20.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sp9v1258045396.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,] 92.90 106.60 104.6 115.30 114.60 119.1 [2,] 98.65 110.10 111.2 116.30 117.80 119.1 [3,] 103.40 115.00 112.9 118.65 119.85 119.1 [4,] 105.10 116.55 115.7 120.05 121.30 119.1 [5,] 108.80 121.40 119.1 121.70 122.50 119.1 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.4581 112.0581 110.8475 116.9396 118.2536 119.1 [2,] 106.3419 117.9419 114.9525 120.3604 121.4464 119.1 $out [1] 72.7 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(92.9, 98.65, 103.4, 105.1, 108.8, 106.6, 110.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/790qs1258045396.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,] 111.300 111.50 112.1000 [2,] 112.060 113.70 112.8750 [3,] 113.555 115.10 115.6188 [4,] 114.820 116.15 116.5500 [5,] 116.080 117.70 117.7000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 112.2961 113.9825 113.9426 [2,] 114.8139 116.2175 117.2949 $out [1] 106.34 109.60 $group [1] 1 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(111.3, 112.06, 113.555, 114.82, 116.08, 111.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1kz291258045396.ps tmp/1kz291258045396.png") > system("convert tmp/2ytv81258045396.ps tmp/2ytv81258045396.png") > system("convert tmp/3km2a1258045396.ps tmp/3km2a1258045396.png") > system("convert tmp/4dviu1258045396.ps tmp/4dviu1258045396.png") > system("convert tmp/5vv971258045396.ps tmp/5vv971258045396.png") > system("convert tmp/6sp9v1258045396.ps tmp/6sp9v1258045396.png") > system("convert tmp/790qs1258045396.ps tmp/790qs1258045396.png") > > > proc.time() user system elapsed 1.190 0.921 1.525