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(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] 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,] 113.5 119.3 124.8 130.5 133.2 NA [2,] 121.2 130.4 132.3 132.3 136.3 NA [3,] 130.4 126.0 126.7 140.8 151.1 NA [4,] 115.2 125.4 131.7 137.5 145.0 NA [5,] 117.9 130.5 130.9 128.6 134.4 NA [6,] 110.7 115.9 122.1 126.7 135.7 NA [7,] 107.6 108.7 113.2 120.8 128.7 NA [8,] 124.3 124.0 133.6 139.3 129.2 NA [9,] 115.1 119.4 119.2 128.6 138.6 NA [10,] 112.5 118.6 129.4 131.3 132.7 NA [11,] 127.9 131.3 131.4 136.3 132.5 NA [12,] 117.4 111.1 117.1 128.8 135.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7.7 11.1 7.5 1.8 3.1 NA [2,] 9.2 -4.4 -5.6 8.5 14.8 NA [3,] -15.2 -0.6 5.0 -3.3 -6.1 NA [4,] 2.7 5.1 -0.8 -8.9 -10.6 NA [5,] -7.2 -14.6 -8.8 -1.9 1.3 NA [6,] -3.1 -7.2 -8.9 -5.9 -7.0 NA [7,] 16.7 15.3 20.4 18.5 0.5 NA [8,] -9.2 -4.6 -14.4 -10.7 9.4 NA [9,] -2.6 -0.8 10.2 2.7 -5.9 NA [10,] 15.4 12.7 2.0 5.0 -0.2 NA [11,] -10.5 -20.2 -14.3 -7.5 2.7 NA [12,] 1.9 13.7 13.4 4.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/freestat/rcomp/tmp/1rehi1225740092.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/2qjsf1225740092.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/3ymdf1225740092.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/42ziu1225740092.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.5 130.4 126.0 115.2 128.6 110.7 107.6 124.0 115.1 112.5 131.3 111.1 [2,] 119.3 130.4 126.7 125.4 128.6 115.9 108.7 124.3 119.2 118.6 131.3 117.1 [3,] 124.8 132.3 130.4 131.7 130.5 122.1 113.2 129.2 119.4 129.4 131.4 117.4 [4,] 130.5 132.3 140.8 137.5 130.9 126.7 120.8 133.6 128.6 131.3 132.5 128.8 [5,] 133.2 132.3 151.1 145.0 130.9 135.7 128.7 139.3 138.6 132.7 132.5 135.2 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 116.8861 130.9575 120.4370 123.1502 128.8748 114.4687 104.6502 122.6286 [2,] 132.7139 133.6425 140.3630 140.2498 132.1252 129.7313 121.7498 135.7714 [,9] [,10] [,11] [,12] [1,] 112.7580 120.4262 130.5521 109.1328 [2,] 126.0420 138.3738 132.2479 125.6672 $out [1] 121.2 136.3 117.9 134.4 127.9 136.3 $group [1] 2 2 5 5 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(113.5, 119.3, 124.8, 130.5, 133.2, 130.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5agq91225740092.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,] 1.8 -5.6 -6.1 -10.6 -14.6 -8.9 15.3 -14.4 -5.9 -0.2 -20.2 1.90 [2,] 3.1 -4.4 -6.1 -8.9 -8.8 -7.2 15.3 -10.7 -2.6 2.0 -14.3 3.15 [3,] 7.5 8.5 -3.3 -0.8 -7.2 -7.0 16.7 -9.2 -0.8 5.0 -10.5 8.90 [4,] 7.7 9.2 -0.6 2.7 -1.9 -5.9 18.5 -4.6 2.7 12.7 -7.5 13.55 [5,] 11.1 14.8 5.0 5.1 1.3 -5.9 20.4 -4.6 10.2 15.4 2.7 13.70 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4.249652 -1.109726 -7.1862861 -8.996531 -12.075523 -7.918577 14.43889 [2,] 10.750348 18.109726 0.5862861 7.396531 -2.324477 -6.081423 18.96111 [,8] [,9] [,10] [,11] [,12] [1,] -13.510245 -4.544967 -2.560593 -15.304863 0.684 [2,] -4.889755 2.944967 12.560593 -5.695137 17.116 $out [1] -15.2 -3.1 0.5 9.4 $group [1] 3 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.80000000000001, 3.10000000000002, 7.50000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6owvv1225740092.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.70 113.20 120.8 128.70 NA [2,] 113.00 117.25 120.65 128.6 132.60 NA [3,] 116.30 121.70 128.05 130.9 134.80 NA [4,] 122.75 128.20 131.55 136.9 137.45 NA [5,] 130.40 131.30 133.60 140.8 138.60 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 111.8530 116.7056 123.0784 127.1143 132.5879 NA [2,] 120.7470 126.6944 133.0216 134.6857 137.0121 NA $out [1] 151.1 145.0 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(107.6, 113, 116.3, 122.75, 130.4, 108.7, 117.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7bn9e1225740092.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.750 [2,] 123.20 120.75 123.425 [3,] 126.68 129.30 126.950 [4,] 130.73 130.95 131.400 [5,] 135.00 132.30 133.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 123.2455 124.6477 123.3125 [2,] 130.1145 133.9523 130.5875 $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/1rehi1225740092.ps tmp/1rehi1225740092.png") > system("convert tmp/2qjsf1225740092.ps tmp/2qjsf1225740092.png") > system("convert tmp/3ymdf1225740092.ps tmp/3ymdf1225740092.png") > system("convert tmp/42ziu1225740092.ps tmp/42ziu1225740092.png") > system("convert tmp/5agq91225740092.ps tmp/5agq91225740092.png") > system("convert tmp/6owvv1225740092.ps tmp/6owvv1225740092.png") > system("convert tmp/7bn9e1225740092.ps tmp/7bn9e1225740092.png") > > > proc.time() user system elapsed 2.158 1.494 2.937