R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(117.8,113.5,121.2,130.4,115.2,117.9,110.7,107.6,124.3,115.1,112.5,127.9,117.4,119.3,130.4,126,125.4,130.5,115.9,108.7,124,119.4,118.6,131.3,111.1,124.8,132.3,126.7,131.7,130.9,122.1,113.2,133.6,119.2,129.4,131.4,117.1,130.5,132.3,140.8,137.5,128.6,126.7,120.8,139.3,128.6,131.3,136.3,128.8,133.2,136.3,151.1,145,134.4,135.7,128.7,129.2,138.6,132.7,132.5,135.2) > 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,] 117.8 117.4 111.1 117.1 128.8 135.2 [2,] 113.5 119.3 124.8 130.5 133.2 NA [3,] 121.2 130.4 132.3 132.3 136.3 NA [4,] 130.4 126.0 126.7 140.8 151.1 NA [5,] 115.2 125.4 131.7 137.5 145.0 NA [6,] 117.9 130.5 130.9 128.6 134.4 NA [7,] 110.7 115.9 122.1 126.7 135.7 NA [8,] 107.6 108.7 113.2 120.8 128.7 NA [9,] 124.3 124.0 133.6 139.3 129.2 NA [10,] 115.1 119.4 119.2 128.6 138.6 NA [11,] 112.5 118.6 129.4 131.3 132.7 NA [12,] 127.9 131.3 131.4 136.3 132.5 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -4.3 1.9 13.7 13.4 4.4 NA [2,] 7.7 11.1 7.5 1.8 3.1 NA [3,] 9.2 -4.4 -5.6 8.5 14.8 NA [4,] -15.2 -0.6 5.0 -3.3 -6.1 NA [5,] 2.7 5.1 -0.8 -8.9 -10.6 NA [6,] -7.2 -14.6 -8.8 -1.9 1.3 NA [7,] -3.1 -7.2 -8.9 -5.9 -7.0 NA [8,] 16.7 15.3 20.4 18.5 0.5 NA [9,] -9.2 -4.6 -14.4 -10.7 9.4 NA [10,] -2.6 -0.8 10.2 2.7 -5.9 NA [11,] 15.4 12.7 2.0 5.0 -0.2 NA [12,] -10.5 -20.2 -14.3 -7.5 2.7 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/freestat/rcomp/tmp/13vy21225539790.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/freestat/rcomp/tmp/2vu3z1225539790.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/freestat/rcomp/tmp/3oj5b1225539790.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/freestat/rcomp/tmp/4k8ml1225539790.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,] 111.1 113.5 130.4 126.0 115.2 128.6 110.7 107.6 124.0 115.1 112.5 131.3 [2,] 117.1 119.3 130.4 126.7 125.4 128.6 115.9 108.7 124.3 119.2 118.6 131.3 [3,] 117.6 124.8 132.3 130.4 131.7 130.5 122.1 113.2 129.2 119.4 129.4 131.4 [4,] 128.8 130.5 132.3 140.8 137.5 130.9 126.7 120.8 133.6 128.6 131.3 132.5 [5,] 135.2 133.2 132.3 151.1 145.0 130.9 135.7 128.7 139.3 138.6 132.7 132.5 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 110.0531 116.8861 130.9575 120.4370 123.1502 128.8748 114.4687 104.6502 [2,] 125.1469 132.7139 133.6425 140.3630 140.2498 132.1252 129.7313 121.7498 [,9] [,10] [,11] [,12] [1,] 122.6286 112.7580 120.4262 130.5521 [2,] 135.7714 126.0420 138.3738 132.2479 $out [1] 121.2 136.3 117.9 134.4 127.9 136.3 $group [1] 3 3 6 6 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(111.1, 117.1, 117.6, 128.8, 135.2, 113.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5dxro1225539790.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.3 1.8 -5.6 -6.1 -10.6 -14.6 -8.9 15.3 -14.4 -5.9 -0.2 -20.2 [2,] 1.9 3.1 -4.4 -6.1 -8.9 -8.8 -7.2 15.3 -10.7 -2.6 2.0 -14.3 [3,] 4.4 7.5 8.5 -3.3 -0.8 -7.2 -7.0 16.7 -9.2 -0.8 5.0 -10.5 [4,] 13.4 7.7 9.2 -0.6 2.7 -1.9 -5.9 18.5 -4.6 2.7 12.7 -7.5 [5,] 13.7 11.1 14.8 5.0 5.1 1.3 -5.9 20.4 -4.6 10.2 15.4 2.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.725871 4.249652 -1.109726 -7.1862861 -8.996531 -12.075523 -7.918577 [2,] 12.525871 10.750348 18.109726 0.5862861 7.396531 -2.324477 -6.081423 [,8] [,9] [,10] [,11] [,12] [1,] 14.43889 -13.510245 -4.544967 -2.560593 -15.304863 [2,] 18.96111 -4.889755 2.944967 12.560593 -5.695137 $out [1] -15.2 -3.1 0.5 9.4 $group [1] 4 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4.3, 1.89999999999999, 4.39999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/62r6e1225539790.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,] 107.60 108.7 111.10 117.10 128.70 135.2 [2,] 113.00 118.0 120.65 127.65 130.85 135.2 [3,] 116.50 121.7 128.05 130.90 133.80 135.2 [4,] 122.75 128.2 131.55 136.90 137.45 135.2 [5,] 130.40 131.3 133.60 140.80 145.00 135.2 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 112.0530 117.0477 123.0784 126.6810 130.7897 135.2 [2,] 120.9470 126.3523 133.0216 135.1190 136.8103 135.2 $out [1] 151.1 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(107.6, 113, 116.5, 122.75, 130.4, 108.7, 118, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7ckkb1225539790.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,] 115.80 113.20 114.7500 [2,] 123.20 120.75 122.7562 [3,] 126.68 129.30 126.9500 [4,] 130.73 130.95 131.4000 [5,] 135.00 132.30 133.7500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 123.2455 124.6477 123.0075 [2,] 130.1145 133.9523 130.8925 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(115.8, 123.2, 126.68, 130.73, 135, 113.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13vy21225539790.ps tmp/13vy21225539790.png") > system("convert tmp/2vu3z1225539790.ps tmp/2vu3z1225539790.png") > system("convert tmp/3oj5b1225539790.ps tmp/3oj5b1225539790.png") > system("convert tmp/4k8ml1225539790.ps tmp/4k8ml1225539790.png") > system("convert tmp/5dxro1225539790.ps tmp/5dxro1225539790.png") > system("convert tmp/62r6e1225539790.ps tmp/62r6e1225539790.png") > system("convert tmp/7ckkb1225539790.ps tmp/7ckkb1225539790.png") > > > proc.time() user system elapsed 2.151 1.480 2.463