R version 2.6.2 (2008-02-08) 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(0.33,0.35,0.35,0.34,0.37,0.38,0.39,0.37,0.37,0.37,0.37,0.38,0.36,0.36,0.36,0.36,0.38,0.37,0.39,0.39,0.4,0.42,0.42,0.4,0.36,0.36,0.36,0.36,0.35,0.38,0.4,0.39,0.39,0.39,0.36,0.35,0.35,0.33,0.33,0.32,0.36,0.37,0.38,0.38,0.38,0.38,0.39,0.4,0.38,0.41,0.41,0.43,0.42,0.41,0.41,0.43,0.44,0.46,0.44,0.43,0.43,0.42,0.42,0.42,0.43,0.44,0.45,0.44,0.47,0.48,0.48,0.45,0.44,0.44,0.45,0.46,0.45,0.46,0.47,0.48,0.48,0.46,0.47,0.47,0.43,0.41,0.39,0.41,0.44,0.45,0.45,0.46,0.45,0.45,0.46,0.46) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.33 0.36 0.36 0.35 0.38 0.43 0.44 0.43 NA [2,] 0.35 0.36 0.36 0.33 0.41 0.42 0.44 0.41 NA [3,] 0.35 0.36 0.36 0.33 0.41 0.42 0.45 0.39 NA [4,] 0.34 0.36 0.36 0.32 0.43 0.42 0.46 0.41 NA [5,] 0.37 0.38 0.35 0.36 0.42 0.43 0.45 0.44 NA [6,] 0.38 0.37 0.38 0.37 0.41 0.44 0.46 0.45 NA [7,] 0.39 0.39 0.40 0.38 0.41 0.45 0.47 0.45 NA [8,] 0.37 0.39 0.39 0.38 0.43 0.44 0.48 0.46 NA [9,] 0.37 0.40 0.39 0.38 0.44 0.47 0.48 0.45 NA [10,] 0.37 0.42 0.39 0.38 0.46 0.48 0.46 0.45 NA [11,] 0.37 0.42 0.36 0.39 0.44 0.48 0.47 0.46 NA [12,] 0.38 0.40 0.35 0.40 0.43 0.45 0.47 0.46 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.02 0.00 0.00 -0.02 0.03 -0.01 0.00 -0.02 NA [2,] 0.00 0.00 0.00 0.00 0.00 0.00 0.01 -0.02 NA [3,] -0.01 0.00 0.00 -0.01 0.02 0.00 0.01 0.02 NA [4,] 0.03 0.02 -0.01 0.04 -0.01 0.01 -0.01 0.03 NA [5,] 0.01 -0.01 0.03 0.01 -0.01 0.01 0.01 0.01 NA [6,] 0.01 0.02 0.02 0.01 0.00 0.01 0.01 0.00 NA [7,] -0.02 0.00 -0.01 0.00 0.02 -0.01 0.01 0.01 NA [8,] 0.00 0.01 0.00 0.00 0.01 0.03 0.00 -0.01 NA [9,] 0.00 0.02 0.00 0.00 0.02 0.01 -0.02 0.00 NA [10,] 0.00 0.00 -0.03 0.01 -0.02 0.00 0.01 0.01 NA [11,] 0.01 -0.02 -0.01 0.01 -0.01 -0.03 0.00 0.00 NA [12,] -0.02 -0.04 0.00 -0.02 0.00 -0.01 -0.04 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/1ggyz1209232403.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/2lzja1209232403.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/3j6sk1209232403.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/43ols1209232403.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,] 0.330 0.330 0.330 0.320 0.350 0.370 0.380 0.370 0.370 0.370 0.360 0.350 [2,] 0.355 0.355 0.355 0.350 0.365 0.375 0.390 0.385 0.385 0.385 0.380 0.390 [3,] 0.370 0.385 0.375 0.385 0.400 0.395 0.405 0.410 0.420 0.435 0.430 0.415 [4,] 0.430 0.415 0.415 0.425 0.435 0.445 0.450 0.450 0.460 0.460 0.465 0.455 [5,] 0.440 0.440 0.450 0.460 0.450 0.460 0.470 0.480 0.480 0.480 0.480 0.470 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3281039 0.3514831 0.3414831 0.3431039 0.360897 0.355897 0.3714831 [2,] 0.4118961 0.4185169 0.4085169 0.4268961 0.439103 0.434103 0.4385169 [,8] [,9] [,10] [,11] [,12] [1,] 0.3736901 0.3781039 0.3931039 0.3825178 0.3786901 [2,] 0.4463099 0.4618961 0.4768961 0.4774822 0.4513099 $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(0.33, 0.355, 0.37, 0.43, 0.44, 0.33, 0.355, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5w44i1209232403.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] [1,] -0.020 0 -0.010 -0.010 -0.01 0.000 -0.02 -0.01 -0.020 -0.03 -0.030 [2,] -0.015 0 -0.005 -0.010 0.00 0.005 -0.01 0.00 0.000 -0.01 -0.015 [3,] 0.000 0 0.000 0.015 0.01 0.010 0.00 0.00 0.000 0.00 -0.005 [4,] 0.010 0 0.015 0.030 0.01 0.015 0.01 0.01 0.015 0.01 0.005 [5,] 0.030 0 0.020 0.040 0.01 0.020 0.02 0.01 0.020 0.01 0.010 [,12] [1,] -0.040 [2,] -0.030 [3,] -0.020 [4,] -0.005 [5,] 0.000 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01396536 0 -0.01117229 -0.007344574 0.004413856 0.004413856 [2,] 0.01396536 0 0.01117229 0.037344574 0.015586144 0.015586144 [,7] [,8] [,9] [,10] [,11] [1,] -0.01117229 -0.005586144 -0.008379215 -0.01117229 -0.016172287 [2,] 0.01117229 0.005586144 0.008379215 0.01117229 0.006172287 [,12] [1,] -0.034929597 [2,] -0.005070403 $out [1] 0.01 -0.02 0.03 0.03 $group [1] 2 2 5 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.02, -0.015, 0, 0.00999999999999998, 0.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6muti1209232403.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] [,8] [,9] [1,] 0.330 0.360 0.35 0.320 0.380 0.420 0.44 0.390 NA [2,] 0.350 0.360 0.36 0.340 0.410 0.425 0.45 0.420 NA [3,] 0.370 0.385 0.36 0.375 0.425 0.440 0.46 0.450 NA [4,] 0.375 0.400 0.39 0.380 0.435 0.460 0.47 0.455 NA [5,] 0.390 0.420 0.40 0.400 0.460 0.480 0.48 0.460 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3585973 0.3667557 0.3463168 0.3567557 0.4135973 0.4240363 0.4508779 [2,] 0.3814027 0.4032443 0.3736832 0.3932443 0.4364027 0.4559637 0.4691221 [,8] [,9] [1,] 0.4340363 NA [2,] 0.4659637 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.33, 0.35, 0.37, 0.375, 0.39, 0.36, 0.36, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78apg1209232403.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,] 0.38375 0.3700 0.385000 [2,] 0.38625 0.3850 0.391250 [3,] 0.41250 0.4025 0.413125 [4,] 0.42000 0.4175 0.422500 [5,] 0.42625 0.4350 0.423750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3971064 0.3876765 0.3988717 [2,] 0.4278936 0.4173235 0.4273783 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.38375, 0.38625, 0.4125, 0.42, 0.42625, 0.37, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ggyz1209232403.ps tmp/1ggyz1209232403.png") > system("convert tmp/2lzja1209232403.ps tmp/2lzja1209232403.png") > system("convert tmp/3j6sk1209232403.ps tmp/3j6sk1209232403.png") > system("convert tmp/43ols1209232403.ps tmp/43ols1209232403.png") > system("convert tmp/5w44i1209232403.ps tmp/5w44i1209232403.png") > system("convert tmp/6muti1209232403.ps tmp/6muti1209232403.png") > system("convert tmp/78apg1209232403.ps tmp/78apg1209232403.png") > > > proc.time() user system elapsed 2.549 1.574 2.820