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(0.86,0.88,0.88,0.88,0.87,0.88,0.87,0.85,0.84,0.83,0.86,0.87,0.85,0.89,0.98,1.01,1,1.01,1.05,1,0.99,1.02,1.11,1.15,1.18,1.2,1.22,1.2,1.23,1.23,1.21,1.25,1.2,1.2,1.21,1.25,1.23,1.2,1.18,1.16,1.12,1.11,1.1,1.08,1.01,1.01,0.99,1.07,1.13,1.09,0.95,0.79,0.73,0.7,0.65,0.61,0.53,0.51,0.41,0.42) > 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,] 0.86 0.85 1.18 1.23 1.13 NA [2,] 0.88 0.89 1.20 1.20 1.09 NA [3,] 0.88 0.98 1.22 1.18 0.95 NA [4,] 0.88 1.01 1.20 1.16 0.79 NA [5,] 0.87 1.00 1.23 1.12 0.73 NA [6,] 0.88 1.01 1.23 1.11 0.70 NA [7,] 0.87 1.05 1.21 1.10 0.65 NA [8,] 0.85 1.00 1.25 1.08 0.61 NA [9,] 0.84 0.99 1.20 1.01 0.53 NA [10,] 0.83 1.02 1.20 1.01 0.51 NA [11,] 0.86 1.11 1.21 0.99 0.41 NA [12,] 0.87 1.15 1.25 1.07 0.42 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.02 0.04 0.02 -0.03 -0.04 NA [2,] 0.00 0.09 0.02 -0.02 -0.14 NA [3,] 0.00 0.03 -0.02 -0.02 -0.16 NA [4,] -0.01 -0.01 0.03 -0.04 -0.06 NA [5,] 0.01 0.01 0.00 -0.01 -0.03 NA [6,] -0.01 0.04 -0.02 -0.01 -0.05 NA [7,] -0.02 -0.05 0.04 -0.02 -0.04 NA [8,] -0.01 -0.01 -0.05 -0.07 -0.08 NA [9,] -0.01 0.03 0.00 0.00 -0.02 NA [10,] 0.03 0.09 0.01 -0.02 -0.10 NA [11,] 0.01 0.04 0.04 0.08 0.01 NA [12,] -0.02 0.03 -0.02 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/13weq1258051573.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/27a5m1258051573.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/37ayr1258051573.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/4hcti1258051573.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.85 0.88 0.88 0.79 0.73 0.70 0.65 0.61 0.84 0.83 0.86 0.87 [2,] 0.86 0.89 0.95 0.88 0.87 0.88 0.87 0.85 0.84 0.83 0.86 0.87 [3,] 1.13 1.09 0.98 1.01 1.00 1.01 1.05 1.00 0.99 1.01 0.99 1.07 [4,] 1.18 1.20 1.18 1.16 1.12 1.11 1.10 1.08 1.01 1.02 1.11 1.15 [5,] 1.23 1.20 1.22 1.20 1.23 1.23 1.21 1.25 1.20 1.20 1.21 1.25 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.9038888 0.8709548 0.8174826 0.8121527 0.8233506 0.8474826 0.8874826 [2,] 1.3561112 1.3090452 1.1425174 1.2078473 1.1766494 1.1725174 1.2125174 [,8] [,9] [,10] [,11] [,12] [1,] 0.8374826 0.8698784 0.8757465 0.8133506 0.8721527 [2,] 1.1625174 1.1101216 1.1442535 1.1666494 1.2678473 $out [1] 0.53 0.51 0.41 0.42 $group [1] 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.85, 0.86, 1.13, 1.18, 1.23, 0.88, 0.89, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5pbl11258051573.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.04 -0.02 -0.02 -0.06 -0.03 -0.02 -0.05 -0.08 -0.02 -0.02 0.01 -0.020 [2,] -0.03 -0.02 -0.02 -0.04 -0.01 -0.02 -0.04 -0.07 -0.01 -0.02 0.01 -0.020 [3,] 0.02 0.00 -0.02 -0.01 0.00 -0.01 -0.02 -0.05 0.00 0.01 0.04 0.005 [4,] 0.02 0.02 0.00 -0.01 0.01 -0.01 -0.02 -0.01 0.00 0.03 0.04 0.045 [5,] 0.04 0.02 0.03 0.03 0.01 -0.01 -0.02 -0.01 0.00 0.09 0.08 0.060 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01532987 -0.0282639 -0.03413195 -0.03119792 -0.01413195 -0.017065975 [2,] 0.05532987 0.0282639 -0.00586805 0.01119792 0.01413195 -0.002934025 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.03413195 -0.092395849 -0.007065975 -0.02532987 0.01880208 -0.04635 [2,] -0.00586805 -0.007604151 0.007065975 0.04532987 0.06119792 0.05635 $out [1] 0.09 -0.14 -0.16 0.04 -0.05 0.04 0.03 -0.10 $group [1] 2 2 3 6 6 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0399999999999998, -0.03, 0.02, 0.02, 0.04, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6oi671258051573.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,] 0.830 0.980 1.18 0.990 0.410 NA [2,] 0.855 0.985 1.20 1.040 0.520 NA [3,] 0.870 1.005 1.21 1.105 0.675 NA [4,] 0.880 1.035 1.23 1.170 0.870 NA [5,] 0.880 1.110 1.25 1.230 1.130 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.8585973 0.9821947 1.196317 1.045706 0.5153627 NA [2,] 0.8814027 1.0278053 1.223683 1.164294 0.8346373 NA $out [1] 0.85 0.89 1.15 $group [1] 2 2 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(0.83, 0.855, 0.87, 0.88, 0.88, 0.98, 0.985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72mfg1258051573.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.914 0.980 0.925 [2,] 0.934 0.995 0.975 [3,] 0.981 1.010 0.995 [4,] 1.025 1.060 1.020 [5,] 1.052 1.130 1.065 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.9394943 0.980353 0.9744752 [2,] 1.0225057 1.039647 1.0155248 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.914, 0.934, 0.981, 1.025, 1.052, 0.98, 0.995, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13weq1258051573.ps tmp/13weq1258051573.png") > system("convert tmp/27a5m1258051573.ps tmp/27a5m1258051573.png") > system("convert tmp/37ayr1258051573.ps tmp/37ayr1258051573.png") > system("convert tmp/4hcti1258051573.ps tmp/4hcti1258051573.png") > system("convert tmp/5pbl11258051573.ps tmp/5pbl11258051573.png") > system("convert tmp/6oi671258051573.ps tmp/6oi671258051573.png") > system("convert tmp/72mfg1258051573.ps tmp/72mfg1258051573.png") > > > proc.time() user system elapsed 1.206 0.931 1.497