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(1.61,1.58,1.69,1.78,1.76,1.83,1.8,1.57,1.45,1.4,1.55,1.58,1.58,1.59,1.8,1.99,2.06,2.06,2.08,2,1.85,1.77,1.7,1.66,1.67,1.73,1.91,2.02,2.07,2.15,2.1,1.68,1.68,1.65,1.72,1.73,1.76,1.84,1.99,2.05,2.12,2.13,2.08,1.88,1.81,1.81,1.88,1.87,1.87,1.9,2.01,2.05,2.16,2.18,2.15,2.12,2.04,2.04,2.06,1.93,1.86,1.94,2.35,2.46,2.59,2.66,2.41,2.18,2.13,2.11,2.12,2.16,2.07,2.2,2.29,2.32,2.37,2.38,2.38,2.28,2.22,2.25,2.3,2.3,2.23,2.27,2.3,2.32,2.41,2.43,2.45,2.47,2.46,2.5,2.46,2.43,2.37,2.45,2.53,2.56,2.62,2.67,2.62,2.6,2.53,2.49,2.48,2.44) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 1.61 1.58 1.67 1.76 1.87 1.86 2.07 2.23 2.37 NA [2,] 1.58 1.59 1.73 1.84 1.90 1.94 2.20 2.27 2.45 NA [3,] 1.69 1.80 1.91 1.99 2.01 2.35 2.29 2.30 2.53 NA [4,] 1.78 1.99 2.02 2.05 2.05 2.46 2.32 2.32 2.56 NA [5,] 1.76 2.06 2.07 2.12 2.16 2.59 2.37 2.41 2.62 NA [6,] 1.83 2.06 2.15 2.13 2.18 2.66 2.38 2.43 2.67 NA [7,] 1.80 2.08 2.10 2.08 2.15 2.41 2.38 2.45 2.62 NA [8,] 1.57 2.00 1.68 1.88 2.12 2.18 2.28 2.47 2.60 NA [9,] 1.45 1.85 1.68 1.81 2.04 2.13 2.22 2.46 2.53 NA [10,] 1.40 1.77 1.65 1.81 2.04 2.11 2.25 2.50 2.49 NA [11,] 1.55 1.70 1.72 1.88 2.06 2.12 2.30 2.46 2.48 NA [12,] 1.58 1.66 1.73 1.87 1.93 2.16 2.30 2.43 2.44 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -0.03 0.01 0.06 0.08 0.03 0.08 0.13 0.04 0.08 NA [2,] 0.11 0.21 0.18 0.15 0.11 0.41 0.09 0.03 0.08 NA [3,] 0.09 0.19 0.11 0.06 0.04 0.11 0.03 0.02 0.03 NA [4,] -0.02 0.07 0.05 0.07 0.11 0.13 0.05 0.09 0.06 NA [5,] 0.07 0.00 0.08 0.01 0.02 0.07 0.01 0.02 0.05 NA [6,] -0.03 0.02 -0.05 -0.05 -0.03 -0.25 0.00 0.02 -0.05 NA [7,] -0.23 -0.08 -0.42 -0.20 -0.03 -0.23 -0.10 0.02 -0.02 NA [8,] -0.12 -0.15 0.00 -0.07 -0.08 -0.05 -0.06 -0.01 -0.07 NA [9,] -0.05 -0.08 -0.03 0.00 0.00 -0.02 0.03 0.04 -0.04 NA [10,] 0.15 -0.07 0.07 0.07 0.02 0.01 0.05 -0.04 -0.01 NA [11,] 0.03 -0.04 0.01 -0.01 -0.13 0.04 0.00 -0.03 -0.04 NA [12,] 0.00 0.01 0.03 0.00 -0.07 -0.09 -0.07 -0.06 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/193771260460811.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/270pj1260460811.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/33h451260460811.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/4umit1260460811.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,] 1.58 1.58 1.69 1.78 1.76 1.83 1.80 1.57 1.45 1.40 1.55 1.58 [2,] 1.67 1.73 1.91 2.02 2.07 2.13 2.08 1.88 1.81 1.77 1.72 1.73 [3,] 1.86 1.90 2.01 2.05 2.16 2.18 2.15 2.12 2.04 2.04 2.06 1.93 [4,] 2.07 2.20 2.30 2.32 2.41 2.43 2.41 2.28 2.22 2.25 2.30 2.30 [5,] 2.37 2.45 2.53 2.56 2.62 2.67 2.62 2.60 2.53 2.50 2.48 2.44 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 1.649333 1.652467 1.8046 1.892 1.980933 2.022 1.9762 1.909333 1.824067 [2,] 2.070667 2.147533 2.2154 2.208 2.339067 2.338 2.3238 2.330667 2.255933 [,10] [,11] [,12] [1,] 1.7872 1.754533 1.6298 [2,] 2.2928 2.365467 2.2302 $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(1.58, 1.67, 1.86, 2.07, 2.37, 1.58, 1.73, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53ni81260460811.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.03 0.03 0.02 0.05 0.00 -0.05 -0.42 -0.12 -0.08 -0.07 -0.04 -0.090 [2,] 0.03 0.09 0.03 0.05 0.01 -0.05 -0.23 -0.08 -0.04 -0.01 -0.04 -0.070 [3,] 0.06 0.11 0.06 0.07 0.02 -0.03 -0.10 -0.07 -0.02 0.02 -0.01 -0.030 [4,] 0.08 0.18 0.11 0.09 0.07 0.00 -0.03 -0.05 0.00 0.07 0.01 0.005 [5,] 0.13 0.21 0.19 0.13 0.08 0.02 0.02 -0.01 0.04 0.15 0.04 0.030 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.03366667 0.0626 0.01786667 0.04893333 -0.0116 -0.056333333 -0.205333333 [2,] 0.08633333 0.1574 0.10213333 0.09106667 0.0516 -0.003666667 0.005333333 [,8] [,9] [,10] [,11] [,12] [1,] -0.0858 -0.041066667 -0.02213333 -0.03633333 -0.07189608 [2,] -0.0542 0.001066667 0.06213333 0.01633333 0.01189608 $out [1] 0.41 -0.02 -0.25 -0.15 0.00 -0.13 $group [1] 2 4 6 8 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.03, 0.0299999999999998, 0.06, 0.08, 0.130000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65eg81260460811.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] [,10] [1,] 1.400 1.580 1.650 1.760 1.870 1.860 2.200 2.23 2.370 NA [2,] 1.560 1.680 1.680 1.825 1.970 2.115 2.235 2.31 2.465 NA [3,] 1.595 1.825 1.730 1.880 2.045 2.170 2.295 2.43 2.530 NA [4,] 1.770 2.030 2.045 2.065 2.135 2.435 2.345 2.46 2.610 NA [5,] 1.830 2.080 2.150 2.130 2.180 2.660 2.380 2.50 2.670 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.499218 1.665363 1.563521 1.770534 1.969742 2.024046 2.244828 2.361584 [2,] 1.690782 1.984637 1.896479 1.989466 2.120258 2.315954 2.345172 2.498416 [,9] [,10] [1,] 2.463865 NA [2,] 2.596135 NA $out [1] 2.07 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(1.4, 1.56, 1.595, 1.77, 1.83, 1.58, 1.68, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7lolt1260460811.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,] 1.891111 1.860 1.8700 [2,] 2.006667 1.970 2.0100 [3,] 2.058333 2.045 2.0475 [4,] 2.201111 2.135 2.2050 [5,] 2.276667 2.180 2.2800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.969646 1.969742 1.958559 [2,] 2.147021 2.120258 2.136441 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.89111111111111, 2.00666666666667, 2.05833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/193771260460811.ps tmp/193771260460811.png") > system("convert tmp/270pj1260460811.ps tmp/270pj1260460811.png") > system("convert tmp/33h451260460811.ps tmp/33h451260460811.png") > system("convert tmp/4umit1260460811.ps tmp/4umit1260460811.png") > system("convert tmp/53ni81260460811.ps tmp/53ni81260460811.png") > system("convert tmp/65eg81260460811.ps tmp/65eg81260460811.png") > system("convert tmp/7lolt1260460811.ps tmp/7lolt1260460811.png") > > > proc.time() user system elapsed 1.265 0.982 2.120