R version 2.7.0 (2008-04-22) 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.89,0.88,0.87,0.87,0.87,0.87,0.88,0.87,0.86,0.86,0.86,0.84,0.84,0.83,0.84,0.88,0.9,0.89,0.91,0.94,0.94,0.95,0.95,0.98,0.96,1,1.05,1.03,1.07,1.12,1.1,1.06,1.11,1.08,1.07,1.02,1,1.04,1.02,1.07,1.12,1.08,1.02,1.01,1.04,0.98,0.95,0.94,0.94,0.96,0.97,1.03,1.01,0.99,1,1,1.02,1.01,0.99,0.98,1.01,1.03,1.03,1,0.96,0.97,0.98,1.02,1.04,1.01,1.01,1,1.01,1.02,1.03,1.06,1.12,1.12,1.13,1.13,1.13,1.17,1.14,1.08,1.07,1.12,1.14,1.21,1.2,1.23,1.29,1.31,1.37,1.35,1.26,1.26) > 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.89 0.84 0.96 1.00 0.94 1.01 1.01 1.07 NA [2,] 0.88 0.83 1.00 1.04 0.96 1.03 1.02 1.12 NA [3,] 0.87 0.84 1.05 1.02 0.97 1.03 1.03 1.14 NA [4,] 0.87 0.88 1.03 1.07 1.03 1.00 1.06 1.21 NA [5,] 0.87 0.90 1.07 1.12 1.01 0.96 1.12 1.20 NA [6,] 0.87 0.89 1.12 1.08 0.99 0.97 1.12 1.23 NA [7,] 0.88 0.91 1.10 1.02 1.00 0.98 1.13 1.29 NA [8,] 0.87 0.94 1.06 1.01 1.00 1.02 1.13 1.31 NA [9,] 0.86 0.94 1.11 1.04 1.02 1.04 1.13 1.37 NA [10,] 0.86 0.95 1.08 0.98 1.01 1.01 1.17 1.35 NA [11,] 0.86 0.95 1.07 0.95 0.99 1.01 1.14 1.26 NA [12,] 0.84 0.98 1.02 0.94 0.98 1.00 1.08 1.26 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -0.01 -0.01 0.04 0.04 0.02 0.02 0.01 0.05 NA [2,] -0.01 0.01 0.05 -0.02 0.01 0.00 0.01 0.02 NA [3,] 0.00 0.04 -0.02 0.05 0.06 -0.03 0.03 0.07 NA [4,] 0.00 0.02 0.04 0.05 -0.02 -0.04 0.06 -0.01 NA [5,] 0.00 -0.01 0.05 -0.04 -0.02 0.01 0.00 0.03 NA [6,] 0.01 0.02 -0.02 -0.06 0.01 0.01 0.01 0.06 NA [7,] -0.01 0.03 -0.04 -0.01 0.00 0.04 0.00 0.02 NA [8,] -0.01 0.00 0.05 0.03 0.02 0.02 0.00 0.06 NA [9,] 0.00 0.01 -0.03 -0.06 -0.01 -0.03 0.04 -0.02 NA [10,] 0.00 0.00 -0.01 -0.03 -0.02 0.00 -0.03 -0.09 NA [11,] -0.02 0.03 -0.05 -0.01 -0.01 -0.01 -0.06 0.00 NA [12,] 0.00 -0.02 -0.02 0.00 0.03 0.01 -0.01 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/1ry571228334068.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/272kr1228334068.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/3ex751228334068.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/4mtt11228334068.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.840 0.830 0.840 0.870 0.87 0.870 0.880 0.870 0.86 0.860 0.860 0.84 [2,] 0.915 0.920 0.920 0.940 0.93 0.930 0.945 0.970 0.98 0.965 0.950 0.96 [3,] 0.980 1.010 1.025 1.030 1.04 1.035 1.010 1.015 1.04 1.010 1.000 0.99 [4,] 1.010 1.035 1.040 1.065 1.12 1.120 1.115 1.095 1.12 1.125 1.105 1.05 [5,] 1.070 1.120 1.140 1.210 1.20 1.230 1.290 1.130 1.13 1.350 1.260 1.08 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.9269316 0.9457593 0.9579663 0.9601732 0.9338633 0.9288633 0.9150356 [2,] 1.0330684 1.0742407 1.0920337 1.0998268 1.1461367 1.1411367 1.1049644 [,8] [,9] [,10] [,11] [,12] [1,] 0.9451732 0.961794 0.9206217 0.9134148 0.9397247 [2,] 1.0848268 1.118206 1.0993783 1.0865852 1.0402753 $out [1] 1.31 1.37 1.26 $group [1] 8 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.84, 0.915, 0.98, 1.01, 1.07, 0.83, 0.92, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5y5xi1228334068.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.01 -0.020 -0.030 -0.040 -0.040 -0.020 -0.040 -0.01 -0.060 -0.030 -0.060 [2,] 0.00 -0.005 -0.010 -0.015 -0.015 -0.005 -0.010 0.00 -0.030 -0.030 -0.035 [3,] 0.02 0.010 0.035 0.010 0.000 0.010 0.000 0.02 -0.015 -0.015 -0.010 [4,] 0.04 0.015 0.055 0.045 0.020 0.015 0.025 0.04 0.005 0.000 -0.005 [5,] 0.05 0.020 0.070 0.060 0.050 0.020 0.040 0.06 0.040 0.000 0.030 [,12] [1,] -0.020 [2,] -0.015 [3,] 0.000 [4,] 0.005 [5,] 0.030 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.002344574 -0.001172287 -0.001309933 -0.02351686 -0.01955150 [2,] 0.042344574 0.021172287 0.071309933 0.04351686 0.01955150 [,6] [,7] [,8] [,9] [,10] [1,] -0.001172287 -0.01955150 -0.002344574 -0.034551502 -0.031758431 [2,] 0.021172287 0.01955150 0.042344574 0.004551502 0.001758431 [,11] [,12] [1,] -0.026758431 -0.01194368 [2,] 0.006758431 0.01194368 $out [1] 0.05 -0.06 0.06 -0.09 $group [1] 2 6 6 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, 0, 0.02, 0.04, 0.05, -0.02, -0.005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yfdt1228334068.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.840 0.830 0.960 0.940 0.940 0.960 1.010 1.070 NA [2,] 0.860 0.860 1.025 0.990 0.975 0.990 1.045 1.170 NA [3,] 0.870 0.905 1.065 1.020 0.995 1.010 1.120 1.245 NA [4,] 0.875 0.945 1.090 1.055 1.010 1.025 1.130 1.300 NA [5,] 0.890 0.980 1.120 1.120 1.030 1.040 1.170 1.370 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.8631584 0.866231 1.035353 0.990353 0.9790363 0.9940363 1.081231 1.185706 [2,] 0.8768416 0.943769 1.094647 1.049647 1.0109637 1.0259637 1.158769 1.304294 [,9] [1,] NA [2,] 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.84, 0.86, 0.87, 0.875, 0.89, 0.83, 0.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7g5o01228334068.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.965000 0.9800 0.96875 [2,] 1.003125 1.0050 0.99625 [3,] 1.030000 1.0125 1.02500 [4,] 1.040625 1.0325 1.03500 [5,] 1.063750 1.0400 1.05750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.012896 0.999957 1.007326 [2,] 1.047104 1.025043 1.042674 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.965, 1.003125, 1.03, 1.040625, 1.06375, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ry571228334068.ps tmp/1ry571228334068.png") > system("convert tmp/272kr1228334068.ps tmp/272kr1228334068.png") > system("convert tmp/3ex751228334068.ps tmp/3ex751228334068.png") > system("convert tmp/4mtt11228334068.ps tmp/4mtt11228334068.png") > system("convert tmp/5y5xi1228334068.ps tmp/5y5xi1228334068.png") > system("convert tmp/6yfdt1228334068.ps tmp/6yfdt1228334068.png") > system("convert tmp/7g5o01228334068.ps tmp/7g5o01228334068.png") > > > proc.time() user system elapsed 2.581 1.584 2.827