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(38,38,37.93,38,38.02,38.02,38.02,37.96,37.96,37.99,38,38,38,38.01,38.06,38.02,38.05,38.05,38.05,38.05,38.03,37.98,38.03,38.04,38.04,38.08,38.14,38.37,38.49,38.55,38.55,38.55,38.48,38.51,38.48,38.48,38.48,38.43,38.43,38.45,38.48,38.47,38.47,38.42,38.55,38.56,38.57,38.57,38.57,38.57,38.62,38.73,38.74,38.68,38.69,38.69,38.61,38.77,38.78,38.81,38.81,38.81,38.76,38.93,38.95,38.97,38.97,38.96,38.92,38.95,38.95,38.97,38.97,39.05,39.08,38.83,38.86,38.87,38.87,38.75,38.86,38.93,38.96,38.95) > 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,] 38.00 38.00 38.04 38.48 38.57 38.81 38.97 NA [2,] 38.00 38.01 38.08 38.43 38.57 38.81 39.05 NA [3,] 37.93 38.06 38.14 38.43 38.62 38.76 39.08 NA [4,] 38.00 38.02 38.37 38.45 38.73 38.93 38.83 NA [5,] 38.02 38.05 38.49 38.48 38.74 38.95 38.86 NA [6,] 38.02 38.05 38.55 38.47 38.68 38.97 38.87 NA [7,] 38.02 38.05 38.55 38.47 38.69 38.97 38.87 NA [8,] 37.96 38.05 38.55 38.42 38.69 38.96 38.75 NA [9,] 37.96 38.03 38.48 38.55 38.61 38.92 38.86 NA [10,] 37.99 37.98 38.51 38.56 38.77 38.95 38.93 NA [11,] 38.00 38.03 38.48 38.57 38.78 38.95 38.96 NA [12,] 38.00 38.04 38.48 38.57 38.81 38.97 38.95 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.01 0.04 -0.05 0.00 0.00 0.08 NA [2,] -0.07 0.05 0.06 0.00 0.05 -0.05 0.03 NA [3,] 0.07 -0.04 0.23 0.02 0.11 0.17 -0.25 NA [4,] 0.02 0.03 0.12 0.03 0.01 0.02 0.03 NA [5,] 0.00 0.00 0.06 -0.01 -0.06 0.02 0.01 NA [6,] 0.00 0.00 0.00 0.00 0.01 0.00 0.00 NA [7,] -0.06 0.00 0.00 -0.05 0.00 -0.01 -0.12 NA [8,] 0.00 -0.02 -0.07 0.13 -0.08 -0.04 0.11 NA [9,] 0.03 -0.05 0.03 0.01 0.16 0.03 0.07 NA [10,] 0.01 0.05 -0.03 0.01 0.01 0.00 0.03 NA [11,] 0.00 0.01 0.00 0.00 0.03 0.02 -0.01 NA [12,] 0.00 0.00 0.00 0.00 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/19ua91209925277.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/2cp5w1209925277.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/3fov51209925277.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/4jcbn1209925277.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] [1,] 38.00 38.000 37.93 38.000 38.020 38.020 38.02 37.960 37.960 37.98 38.000 [2,] 38.02 38.045 38.10 38.195 38.265 38.260 38.26 38.235 38.255 38.25 38.255 [3,] 38.48 38.430 38.43 38.450 38.490 38.550 38.55 38.550 38.550 38.56 38.570 [4,] 38.69 38.690 38.69 38.780 38.800 38.775 38.78 38.720 38.735 38.85 38.865 [5,] 38.97 39.050 39.08 38.930 38.950 38.970 38.97 38.960 38.920 38.95 38.960 [,12] [1,] 38.00 [2,] 38.26 [3,] 38.57 [4,] 38.88 [5,] 38.97 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 38.07989 38.04482 38.07766 38.10065 38.17051 38.24245 38.23946 38.26037 [2,] 38.88011 38.81518 38.78234 38.79935 38.80949 38.85755 38.86054 38.83963 [,9] [,10] [,11] [,12] [1,] 38.26335 38.20169 38.20572 38.19975 [2,] 38.83665 38.91831 38.93428 38.94025 $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(38, 38.02, 38.48, 38.69, 38.97, 38, 38.045, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50qit1209925277.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.070 -0.04 0.01 -0.010 0 -0.120 -0.080 0.01 0.000 -0.010 0 [2,] 0.000 -0.025 -0.01 0.02 -0.005 0 -0.055 -0.055 0.02 0.005 0.000 0 [3,] 0.000 0.030 0.07 0.03 0.000 0 -0.010 -0.020 0.03 0.010 0.000 0 [4,] 0.025 0.050 0.14 0.03 0.015 0 0.000 0.055 0.05 0.020 0.015 0 [5,] 0.040 0.060 0.23 0.03 0.020 0 0.000 0.130 0.07 0.030 0.030 0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01492960 -0.01478879 -0.01957758 0.02402816 -0.01194368 0 [2,] 0.01492960 0.07478879 0.15957758 0.03597184 0.01194368 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.04284511 -0.08569023 0.01208448 0.001042242 -0.008957758 0 [2,] 0.02284511 0.04569023 0.04791552 0.018957758 0.008957758 0 $out [1] -0.05 0.08 -0.25 0.12 0.06 -0.06 0.01 -0.05 0.16 0.05 -0.03 $group [1] 1 1 3 4 5 5 6 9 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0.0249999999999986, 0.0399999999999991, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6a8ia1209925277.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,] 37.930 37.980 38.040 38.420 38.570 38.760 38.750 NA [2,] 37.975 38.015 38.255 38.440 38.615 38.865 38.860 NA [3,] 38.000 38.035 38.480 38.475 38.690 38.950 38.900 NA [4,] 38.010 38.050 38.530 38.555 38.755 38.965 38.965 NA [5,] 38.020 38.060 38.550 38.570 38.810 38.970 39.080 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 37.98404 38.01904 38.35457 38.42255 38.62615 38.90439 38.85211 NA [2,] 38.01596 38.05096 38.60543 38.52745 38.75385 38.99561 38.94789 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(37.93, 37.975, 38, 38.01, 38.02, 37.98, 38.015, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7fgrs1209925277.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,] 38.41000 38.430 38.35500 [2,] 38.45357 38.465 38.43625 [3,] 38.50000 38.550 38.50625 [4,] 38.52214 38.555 38.54125 [5,] 38.54571 38.570 38.57000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 38.46872 38.50895 38.45836 [2,] 38.53128 38.59105 38.55414 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(38.41, 38.4535714285714, 38.5, 38.5221428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/19ua91209925277.ps tmp/19ua91209925277.png") > system("convert tmp/2cp5w1209925277.ps tmp/2cp5w1209925277.png") > system("convert tmp/3fov51209925277.ps tmp/3fov51209925277.png") > system("convert tmp/4jcbn1209925277.ps tmp/4jcbn1209925277.png") > system("convert tmp/50qit1209925277.ps tmp/50qit1209925277.png") > system("convert tmp/6a8ia1209925277.ps tmp/6a8ia1209925277.png") > system("convert tmp/7fgrs1209925277.ps tmp/7fgrs1209925277.png") > > > proc.time() user system elapsed 1.435 0.997 1.735