R version 2.7.1 (2008-06-23) 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.91,0.9,0.89,0.89,0.89,0.89,0.89,0.89,0.88,0.88,0.88,0.86,0.85,0.85,0.86,0.9,0.92,0.91,0.93,0.96,0.96,0.97,0.98,1.01,0.99,1.03,1.08,1.06,1.1,1.17,1.16,1.12,1.17,1.13,1.12,1.07,1.04,1.08,1.06,1.12,1.18,1.13,1.08,1.06,1.09,1.02,1.01,1.01,1,1.01,1.03,1.09,1.07,1.05,1.06,1.06,1.08,1.07,1.04,1.04,1.06,1.09,1.09,1.05,1.01,1.02,1.03,1.06,1.08,1.05,1.05,1.05,1.04,1.05,1.07,1.1,1.16,1.16,1.17,1.17,1.18,1.21,1.18,1.13,1.12,1.17,1.19,1.26,1.25,1.28,1.35,1.39,1.45,1.41,1.32,1.31) > 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.91 0.85 0.99 1.04 1.00 1.06 1.04 1.12 NA [2,] 0.90 0.85 1.03 1.08 1.01 1.09 1.05 1.17 NA [3,] 0.89 0.86 1.08 1.06 1.03 1.09 1.07 1.19 NA [4,] 0.89 0.90 1.06 1.12 1.09 1.05 1.10 1.26 NA [5,] 0.89 0.92 1.10 1.18 1.07 1.01 1.16 1.25 NA [6,] 0.89 0.91 1.17 1.13 1.05 1.02 1.16 1.28 NA [7,] 0.89 0.93 1.16 1.08 1.06 1.03 1.17 1.35 NA [8,] 0.89 0.96 1.12 1.06 1.06 1.06 1.17 1.39 NA [9,] 0.88 0.96 1.17 1.09 1.08 1.08 1.18 1.45 NA [10,] 0.88 0.97 1.13 1.02 1.07 1.05 1.21 1.41 NA [11,] 0.88 0.98 1.12 1.01 1.04 1.05 1.18 1.32 NA [12,] 0.86 1.01 1.07 1.01 1.04 1.05 1.13 1.31 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -0.01 0.00 0.04 0.04 0.01 0.03 0.01 0.05 NA [2,] -0.01 0.01 0.05 -0.02 0.02 0.00 0.02 0.02 NA [3,] 0.00 0.04 -0.02 0.06 0.06 -0.04 0.03 0.07 NA [4,] 0.00 0.02 0.04 0.06 -0.02 -0.04 0.06 -0.01 NA [5,] 0.00 -0.01 0.07 -0.05 -0.02 0.01 0.00 0.03 NA [6,] 0.00 0.02 -0.01 -0.05 0.01 0.01 0.01 0.07 NA [7,] 0.00 0.03 -0.04 -0.02 0.00 0.03 0.00 0.04 NA [8,] -0.01 0.00 0.05 0.03 0.02 0.02 0.01 0.06 NA [9,] 0.00 0.01 -0.04 -0.07 -0.01 -0.03 0.03 -0.04 NA [10,] 0.00 0.01 -0.01 -0.01 -0.03 0.00 -0.03 -0.09 NA [11,] -0.02 0.03 -0.05 0.00 0.00 0.00 -0.05 -0.01 NA [12,] -0.01 -0.02 -0.03 -0.01 0.02 -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/19m8x1218792097.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/2nf581218792097.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/33uws1218792097.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/4iefu1218792097.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.850 0.860 0.890 0.890 0.890 0.890 0.890 0.880 0.880 0.880 1.010 [2,] 0.95 0.955 0.960 0.975 0.965 0.965 0.980 1.010 1.020 0.995 0.995 1.010 [3,] 1.02 1.040 1.065 1.075 1.085 1.090 1.070 1.060 1.085 1.060 1.045 1.045 [4,] 1.05 1.085 1.085 1.110 1.170 1.165 1.165 1.145 1.175 1.170 1.150 1.100 [5,] 1.12 1.170 1.190 1.260 1.250 1.280 1.350 1.170 1.180 1.410 1.320 1.130 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.9641386 0.9673801 0.9951732 0.999587 0.970484 0.9782771 0.9666563 [2,] 1.0758614 1.1126199 1.1348268 1.150413 1.199516 1.2017229 1.1733437 [,8] [,9] [,10] [,11] [,12] [1,] 0.984587 0.9984148 0.9622425 0.9584148 0.9947247 [2,] 1.135413 1.1715852 1.1577575 1.1315852 1.0952753 $out [1] 1.39 1.45 0.86 1.31 $group [1] 8 9 12 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.95, 1.02, 1.05, 1.12, 0.85, 0.955, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/583ee1218792097.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.010 -0.020 -0.040 -0.040 -0.050 -0.010 -0.04 -0.010 -0.070 -0.03 -0.050 [2,] 0.005 -0.005 -0.010 -0.015 -0.015 -0.005 -0.01 0.005 -0.040 -0.03 -0.035 [3,] 0.020 0.015 0.035 0.010 0.000 0.010 0.00 0.020 -0.020 -0.01 -0.005 [4,] 0.040 0.020 0.060 0.050 0.020 0.015 0.03 0.040 0.005 0.00 0.000 [5,] 0.050 0.050 0.070 0.060 0.070 0.020 0.04 0.060 0.030 0.01 0.030 [,12] [1,] -0.020 [2,] -0.015 [3,] -0.010 [4,] -0.010 [5,] -0.010 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0004484975 0.001034641 -0.004103005 -0.02630993 -0.01955150 -0.001172287 [2,] 0.0395515025 0.028965359 0.074103005 0.04630993 0.01955150 0.021172287 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.02234457 0.0004484975 -0.045137646 -0.026758431 -0.02455150 -0.01298592 [2,] 0.02234457 0.0395515025 0.005137646 0.006758431 0.01455150 -0.00701408 $out [1] -0.05 0.07 -0.09 -0.03 0.02 $group [1] 6 6 10 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, 0.005, 0.02, 0.04, 0.0499999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o51n1218792097.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.88 0.850 0.990 1.010 1.000 1.01 1.040 1.120 NA [2,] 0.88 0.880 1.065 1.030 1.035 1.04 1.085 1.220 NA [3,] 0.89 0.925 1.110 1.070 1.055 1.05 1.160 1.295 NA [4,] 0.89 0.965 1.145 1.105 1.070 1.07 1.175 1.370 NA [5,] 0.90 1.010 1.170 1.180 1.090 1.09 1.210 1.450 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.885439 0.886231 1.073511 1.035792 1.039036 1.036317 1.118950 1.226584 [2,] 0.894561 0.963769 1.146489 1.104208 1.070964 1.063683 1.201050 1.363416 [,9] [1,] NA [2,] NA $out [1] 0.91 0.86 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.88, 0.88, 0.89, 0.89, 0.9, 0.85, 0.88, 0.925, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7dxe11218792097.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.00125 1.0200 1.007500 [2,] 1.04625 1.0450 1.043125 [3,] 1.07250 1.0625 1.072500 [4,] 1.08625 1.0800 1.081250 [5,] 1.11125 1.0900 1.111250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.054256 1.046536 1.055111 [2,] 1.090744 1.078464 1.089889 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.00125, 1.04625, 1.0725, 1.08625, 1.11125, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/19m8x1218792097.ps tmp/19m8x1218792097.png") > system("convert tmp/2nf581218792097.ps tmp/2nf581218792097.png") > system("convert tmp/33uws1218792097.ps tmp/33uws1218792097.png") > system("convert tmp/4iefu1218792097.ps tmp/4iefu1218792097.png") > system("convert tmp/583ee1218792097.ps tmp/583ee1218792097.png") > system("convert tmp/6o51n1218792097.ps tmp/6o51n1218792097.png") > system("convert tmp/7dxe11218792097.ps tmp/7dxe11218792097.png") > > > proc.time() user system elapsed 1.426 0.951 3.670