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(1.12,1.12,1.12,1.13,1.13,1.13,1.14,1.14,1.14,1.14,1.14,1.15,1.15,1.17,1.17,1.18,1.18,1.18,1.18,1.18,1.18,1.19,1.19,1.19,1.19,1.19,1.2,1.21,1.21,1.21,1.21,1.21,1.23,1.24,1.24,1.24,1.27,1.28,1.29,1.29,1.3,1.31,1.31,1.31,1.32,1.32,1.33,1.33,1.34,1.35,1.36,1.37,1.37,1.37,1.37,1.37,1.38,1.38,1.39,1.39,1.39,1.41,1.42,1.42,1.42,1.43,1.43,1.44,1.46,1.46,1.47,1.47,1.47,1.48,1.49,1.49,1.5,1.5,1.51,1.52,1.53,1.53,1.53,1.54) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.12 1.15 1.19 1.27 1.34 1.39 1.47 NA [2,] 1.12 1.17 1.19 1.28 1.35 1.41 1.48 NA [3,] 1.12 1.17 1.20 1.29 1.36 1.42 1.49 NA [4,] 1.13 1.18 1.21 1.29 1.37 1.42 1.49 NA [5,] 1.13 1.18 1.21 1.30 1.37 1.42 1.50 NA [6,] 1.13 1.18 1.21 1.31 1.37 1.43 1.50 NA [7,] 1.14 1.18 1.21 1.31 1.37 1.43 1.51 NA [8,] 1.14 1.18 1.21 1.31 1.37 1.44 1.52 NA [9,] 1.14 1.18 1.23 1.32 1.38 1.46 1.53 NA [10,] 1.14 1.19 1.24 1.32 1.38 1.46 1.53 NA [11,] 1.14 1.19 1.24 1.33 1.39 1.47 1.53 NA [12,] 1.15 1.19 1.24 1.33 1.39 1.47 1.54 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.02 0.00 0.01 0.01 0.02 0.01 NA [2,] 0.00 0.00 0.01 0.01 0.01 0.01 0.01 NA [3,] 0.01 0.01 0.01 0.00 0.01 0.00 0.00 NA [4,] 0.00 0.00 0.00 0.01 0.00 0.00 0.01 NA [5,] 0.00 0.00 0.00 0.01 0.00 0.01 0.00 NA [6,] 0.01 0.00 0.00 0.00 0.00 0.00 0.01 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.01 0.01 NA [8,] 0.00 0.00 0.02 0.01 0.01 0.02 0.01 NA [9,] 0.00 0.01 0.01 0.00 0.00 0.00 0.00 NA [10,] 0.00 0.00 0.00 0.01 0.01 0.01 0.00 NA [11,] 0.01 0.00 0.00 0.00 0.00 0.00 0.01 NA [12,] 0.00 0.00 0.03 0.01 0.00 0.00 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/184771209043814.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/28zl41209043814.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/3fplx1209043814.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/4tcbe1209043814.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.120 1.12 1.120 1.130 1.130 1.130 1.140 1.140 1.140 1.140 1.140 1.150 [2,] 1.170 1.18 1.185 1.195 1.195 1.195 1.195 1.195 1.205 1.215 1.215 1.215 [3,] 1.270 1.28 1.290 1.290 1.300 1.310 1.310 1.310 1.320 1.320 1.330 1.330 [4,] 1.365 1.38 1.390 1.395 1.395 1.400 1.400 1.405 1.420 1.420 1.430 1.430 [5,] 1.470 1.48 1.490 1.490 1.500 1.500 1.510 1.520 1.530 1.530 1.530 1.540 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.153549 1.160563 1.167577 1.170563 1.180563 1.187577 1.187577 1.184591 [2,] 1.386451 1.399437 1.412423 1.409437 1.419437 1.432423 1.432423 1.435409 [,9] [,10] [,11] [,12] [1,] 1.191605 1.197577 1.201605 1.201605 [2,] 1.448395 1.442423 1.458395 1.458395 $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.12, 1.17, 1.27, 1.365, 1.47, 1.12, 1.18, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5g5r51209043814.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.000 0.000 0.00 0.000 0.000 0.000 0.000 0.000 0.000 0.00 0.000 0.00 [2,] 0.005 0.005 0.00 0.000 0.000 0.000 0.000 0.005 0.000 0.00 0.000 0.00 [3,] 0.010 0.010 0.01 0.000 0.000 0.000 0.000 0.010 0.000 0.00 0.000 0.00 [4,] 0.015 0.010 0.01 0.005 0.005 0.005 0.005 0.015 0.005 0.01 0.005 0.01 [5,] 0.020 0.010 0.01 0.010 0.010 0.010 0.010 0.020 0.010 0.01 0.010 0.01 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.004028161 0.00701408 0.004028161 -0.002985919 -0.002985919 -0.002985919 [2,] 0.015971839 0.01298592 0.015971839 0.002985919 0.002985919 0.002985919 [,7] [,8] [,9] [,10] [,11] [1,] -0.002985919 0.004028161 -0.002985919 -0.005971839 -0.002985919 [2,] 0.002985919 0.015971839 0.002985919 0.005971839 0.002985919 [,12] [1,] -0.006450323 [2,] 0.006450323 $out [1] 0.03 $group [1] 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.005, 0.01, 0.015, 0.02, 0, 0.005, 0.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6n6db1209043814.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] [1,] 1.120 1.170 1.190 1.27 1.350 1.39 1.470 NA [2,] 1.125 1.175 1.205 1.29 1.365 1.42 1.490 NA [3,] 1.135 1.180 1.210 1.31 1.370 1.43 1.505 NA [4,] 1.140 1.185 1.235 1.32 1.380 1.46 1.530 NA [5,] 1.150 1.190 1.240 1.33 1.390 1.47 1.540 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.128158 1.175439 1.196317 1.296317 1.363158 1.411756 1.486756 NA [2,] 1.141842 1.184561 1.223683 1.323683 1.376842 1.448244 1.523244 NA $out [1] 1.15 1.34 $group [1] 2 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.12, 1.125, 1.135, 1.14, 1.15, 1.17, 1.175, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ipy71209043814.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.275714 1.27 1.26750 [2,] 1.295714 1.29 1.29125 [3,] 1.305714 1.31 1.29750 [4,] 1.321429 1.32 1.31500 [5,] 1.330000 1.33 1.32250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.293986 1.296317 1.286667 [2,] 1.317443 1.323683 1.308333 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.27571428571429, 1.29571428571429, 1.30571428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/184771209043814.ps tmp/184771209043814.png") > system("convert tmp/28zl41209043814.ps tmp/28zl41209043814.png") > system("convert tmp/3fplx1209043814.ps tmp/3fplx1209043814.png") > system("convert tmp/4tcbe1209043814.ps tmp/4tcbe1209043814.png") > system("convert tmp/5g5r51209043814.ps tmp/5g5r51209043814.png") > system("convert tmp/6n6db1209043814.ps tmp/6n6db1209043814.png") > system("convert tmp/7ipy71209043814.ps tmp/7ipy71209043814.png") > > > proc.time() user system elapsed 2.553 1.570 2.800