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(161.79,161.79,161.85,161.77,161.86,161.89,161.89,161.89,162.18,162.43,162.58,162.57,162.57,162.57,162.44,162.79,163.15,163.23,163.23,163.23,163.38,163.71,163.73,163.73,163.73,163.73,163.93,164.27,164.57,164.73,164.73,164.76,165.75,165.86,165.99,166.13,166.13,166.13,166.15,166.45,166.48,166.51,166.51,166.51,166.58,166.82,167.35,167.5,167.5,167.6,167.72,167.29,166.98,166.98,166.98,166.98,167.63,167.83,167.85,167.87,167.87,167.96,167.7,169.25,168.79,168.77,168.77,169,168.92,169.23,169.28,169.29) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 161.79 162.57 163.73 166.13 167.50 167.87 NA [2,] 161.79 162.57 163.73 166.13 167.60 167.96 NA [3,] 161.85 162.44 163.93 166.15 167.72 167.70 NA [4,] 161.77 162.79 164.27 166.45 167.29 169.25 NA [5,] 161.86 163.15 164.57 166.48 166.98 168.79 NA [6,] 161.89 163.23 164.73 166.51 166.98 168.77 NA [7,] 161.89 163.23 164.73 166.51 166.98 168.77 NA [8,] 161.89 163.23 164.76 166.51 166.98 169.00 NA [9,] 162.18 163.38 165.75 166.58 167.63 168.92 NA [10,] 162.43 163.71 165.86 166.82 167.83 169.23 NA [11,] 162.58 163.73 165.99 167.35 167.85 169.28 NA [12,] 162.57 163.73 166.13 167.50 167.87 169.29 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.00 0.00 0.10 0.09 NA [2,] 0.06 -0.13 0.20 0.02 0.12 -0.26 NA [3,] -0.08 0.35 0.34 0.30 -0.43 1.55 NA [4,] 0.09 0.36 0.30 0.03 -0.31 -0.46 NA [5,] 0.03 0.08 0.16 0.03 0.00 -0.02 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 0.00 0.03 0.00 0.00 0.23 NA [8,] 0.29 0.15 0.99 0.07 0.65 -0.08 NA [9,] 0.25 0.33 0.11 0.24 0.20 0.31 NA [10,] 0.15 0.02 0.13 0.53 0.02 0.05 NA [11,] -0.01 0.00 0.14 0.15 0.02 0.01 NA [12,] 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/17tt11208868019.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/2sztd1208868019.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/3iq6g1208868019.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/4hnxz1208868019.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] [1,] 161.79 161.79 161.85 161.77 161.860 161.89 161.89 161.890 162.180 162.43 [2,] 162.57 162.57 162.44 162.79 163.150 163.23 163.23 163.230 163.380 163.71 [3,] 164.93 164.93 165.04 165.36 165.525 165.62 165.62 165.635 166.165 166.34 [4,] 167.50 167.60 167.70 167.29 166.980 166.98 166.98 166.980 167.630 167.83 [5,] 167.87 167.96 167.72 169.25 168.790 168.77 168.77 169.000 168.920 169.23 [,11] [,12] [1,] 162.58 162.570 [2,] 163.73 163.730 [3,] 166.67 166.815 [4,] 167.85 167.870 [5,] 169.28 169.290 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 161.75 161.6855 161.6471 162.4574 163.0545 163.2011 163.2011 163.2161 [2,] 168.11 168.1745 168.4329 168.2626 167.9955 168.0389 168.0389 168.0539 [,9] [,10] [,11] [,12] [1,] 163.4236 163.6825 164.0125 164.1446 [2,] 168.9064 168.9975 169.3275 169.4854 $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(161.79, 162.57, 164.93, 167.5, 167.87, 161.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5atfd1208868019.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.00 -0.26 -0.43 -0.46 -0.02 0 0.00 -0.08 0.110 0.02 -0.010 0 [2,] 0.00 -0.13 -0.08 -0.31 0.00 0 0.00 0.07 0.200 0.02 0.000 0 [3,] 0.00 0.04 0.32 0.06 0.03 0 0.00 0.22 0.245 0.09 0.015 0 [4,] 0.09 0.12 0.35 0.30 0.08 0 0.03 0.65 0.310 0.15 0.140 0 [5,] 0.10 0.20 0.35 0.36 0.16 0 0.03 0.99 0.330 0.15 0.150 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.05805291 -0.1212581 0.04263611 -0.3334697 -0.02160258 0 -0.01935097 [2,] 0.05805291 0.2012581 0.59736389 0.4534697 0.08160258 0 0.01935097 [,8] [,9] [,10] [,11] [,12] [1,] -0.1541187 0.1740464 0.006145801 -0.07530452 0 [2,] 0.5941187 0.3159536 0.173854199 0.10530452 0 $out [1] 1.55 0.23 0.53 $group [1] 3 7 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.0900000000000034, 0.0999999999999943, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6pj4s1208868019.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] [1,] 161.770 162.440 163.730 166.13 166.980 167.700 NA [2,] 161.820 162.680 164.100 166.30 166.980 168.365 NA [3,] 161.890 163.230 164.730 166.51 167.550 168.855 NA [4,] 162.305 163.545 165.805 166.70 167.775 169.240 NA [5,] 162.580 163.730 166.130 166.82 167.870 169.290 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 161.6688 162.8355 163.9523 166.3276 167.1874 168.4559 NA [2,] 162.1112 163.6245 165.5077 166.6924 167.9126 169.2541 NA $out [1] 167.35 167.50 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(161.77, 161.82, 161.89, 162.305, 162.58, 162.44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7v7mg1208868019.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,] 164.9317 164.9300 165.0087 [2,] 165.1342 165.2000 165.0913 [3,] 165.3517 165.6200 165.2337 [4,] 165.8600 166.2525 165.7912 [5,] 166.1817 166.8150 166.0537 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 165.0206 165.1399 164.9145 [2,] 165.6827 166.1001 165.5530 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(164.931666666667, 165.134166666667, 165.351666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17tt11208868019.ps tmp/17tt11208868019.png") > system("convert tmp/2sztd1208868019.ps tmp/2sztd1208868019.png") > system("convert tmp/3iq6g1208868019.ps tmp/3iq6g1208868019.png") > system("convert tmp/4hnxz1208868019.ps tmp/4hnxz1208868019.png") > system("convert tmp/5atfd1208868019.ps tmp/5atfd1208868019.png") > system("convert tmp/6pj4s1208868019.ps tmp/6pj4s1208868019.png") > system("convert tmp/7v7mg1208868019.ps tmp/7v7mg1208868019.png") > > > proc.time() user system elapsed 1.405 0.940 1.725