R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(11.8,11.87,11.86,12.11,11.92,12.61,13.34,13.31,13.47,13.24,13.18,13.3,13.15,13.47,13.65,13.52,14.13,14.84,15.29,15.51,15.43,15.42,15.56,15.43,15.36,15.18,15.41,15.15,15.21,15.09,15.09,15.5,15.41,15.42,15.47,15.23,15.59,15.22,15.45,15.02,15.5,15.59,15.98,15.76,15.43,15.45,15.32,15.4,15.42,15.54,15.6,15.67,15.61,16.01,16.06,16.15,15.87,15.89,15.73,15.78,16.07,16.2,16.42,16.61,16.89,17.62,17.83,17.94,18.07,17.85,17.86,17.85) > 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,] 11.80 13.15 15.36 15.59 15.42 16.07 NA [2,] 11.87 13.47 15.18 15.22 15.54 16.20 NA [3,] 11.86 13.65 15.41 15.45 15.60 16.42 NA [4,] 12.11 13.52 15.15 15.02 15.67 16.61 NA [5,] 11.92 14.13 15.21 15.50 15.61 16.89 NA [6,] 12.61 14.84 15.09 15.59 16.01 17.62 NA [7,] 13.34 15.29 15.09 15.98 16.06 17.83 NA [8,] 13.31 15.51 15.50 15.76 16.15 17.94 NA [9,] 13.47 15.43 15.41 15.43 15.87 18.07 NA [10,] 13.24 15.42 15.42 15.45 15.89 17.85 NA [11,] 13.18 15.56 15.47 15.32 15.73 17.86 NA [12,] 13.30 15.43 15.23 15.40 15.78 17.85 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.07 0.32 -0.18 -0.37 0.12 0.13 NA [2,] -0.01 0.18 0.23 0.23 0.06 0.22 NA [3,] 0.25 -0.13 -0.26 -0.43 0.07 0.19 NA [4,] -0.19 0.61 0.06 0.48 -0.06 0.28 NA [5,] 0.69 0.71 -0.12 0.09 0.40 0.73 NA [6,] 0.73 0.45 0.00 0.39 0.05 0.21 NA [7,] -0.03 0.22 0.41 -0.22 0.09 0.11 NA [8,] 0.16 -0.08 -0.09 -0.33 -0.28 0.13 NA [9,] -0.23 -0.01 0.01 0.02 0.02 -0.22 NA [10,] -0.06 0.14 0.05 -0.13 -0.16 0.01 NA [11,] 0.12 -0.13 -0.24 0.08 0.05 -0.01 NA [12,] -0.15 -0.07 0.36 0.02 0.29 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/wessaorg/rcomp/tmp/1zyy71326664986.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2buwk1326664986.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/378bc1326664986.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4nx401326664986.ps",horizontal=F,onefile=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,] 11.80 11.87 11.86 12.110 11.920 14.84 15.090 15.500 15.41 15.420 15.320 [2,] 13.15 13.47 13.65 13.520 14.130 14.84 15.090 15.500 15.41 15.420 15.320 [3,] 15.39 15.20 15.43 15.085 15.355 15.34 15.635 15.635 15.43 15.435 15.515 [4,] 15.59 15.54 15.60 15.670 15.610 16.01 16.060 16.150 15.87 15.890 15.730 [5,] 16.07 16.20 16.42 16.610 16.890 17.62 16.060 16.150 15.87 15.890 15.730 [,12] [1,] 15.230 [2,] 15.230 [3,] 15.415 [4,] 15.780 [5,] 15.780 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13.81612 13.86478 14.17219 13.69818 14.40035 14.58531 15.00932 15.21573 [2,] 16.96388 16.53522 16.68781 16.47182 16.30965 16.09469 16.26068 16.05427 [,9] [,10] [,11] [,12] [1,] 15.13329 15.13183 15.25054 15.06023 [2,] 15.72671 15.73817 15.77946 15.76977 $out [1] 12.61 13.34 17.83 13.31 17.94 13.47 18.07 13.24 17.85 13.18 17.86 13.30 [13] 17.85 $group [1] 6 7 7 8 8 9 9 10 10 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.8, 13.15, 15.39, 15.59, 16.07, 11.87, 13.47, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5j0k41326664986.ps",horizontal=F,onefile=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.370 -0.01 -0.43 -0.19 -0.120 0.00 -0.22 -0.330 -0.23 -0.160 -0.24 -0.15 [2,] -0.180 0.06 -0.26 -0.06 0.090 0.05 -0.03 -0.280 -0.22 -0.130 -0.13 -0.07 [3,] 0.095 0.20 -0.03 0.17 0.545 0.30 0.10 -0.085 0.00 -0.025 0.02 0.02 [4,] 0.130 0.23 0.19 0.48 0.710 0.45 0.22 0.130 0.02 0.050 0.08 0.29 [5,] 0.320 0.23 0.25 0.61 0.730 0.73 0.41 0.160 0.02 0.140 0.12 0.36 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.10496 0.09034451 -0.3202645 -0.1783174 0.14508 0.04198708 -0.06125807 [2,] 0.29496 0.30965549 0.2602645 0.5183174 0.94492 0.55801292 0.26125807 [,8] [,9] [,10] [,11] [,12] [1,] -0.3494632 -0.1548078 -0.14110581 -0.1154568 -0.2343751 [2,] 0.1794632 0.1548078 0.09110581 0.1554568 0.2743751 $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(-0.369999999999999, -0.18, 0.0949999999999989, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6uhf91326664986.ps",horizontal=F,onefile=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,] 11.800 13.150 15.090 15.02 15.420 16.070 NA [2,] 11.895 13.585 15.165 15.36 15.605 16.515 NA [3,] 12.895 15.065 15.295 15.45 15.755 17.725 NA [4,] 13.305 15.430 15.415 15.59 15.950 17.855 NA [5,] 13.470 15.560 15.500 15.76 16.150 18.070 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 12.25189 14.22348 15.18097 15.3451 15.59764 17.11382 NA [2,] 13.53811 15.90652 15.40903 15.5549 15.91236 18.33618 NA $out [1] 15.98 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(11.8, 11.895, 12.895, 13.305, 13.47, 13.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/70xcm1326664986.ps",horizontal=F,onefile=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,] 14.56500 15.2000 14.62500 [2,] 14.70583 15.3475 14.77187 [3,] 15.39583 15.4225 15.44312 [4,] 15.57167 15.4750 15.58875 [5,] 15.69500 15.6350 15.77750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.00092 15.36435 15.07054 [2,] 15.79075 15.48065 15.81571 $out [1] 15.085 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(14.565, 14.7058333333333, 15.3958333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zyy71326664986.ps tmp/1zyy71326664986.png",intern=TRUE)) character(0) > try(system("convert tmp/2buwk1326664986.ps tmp/2buwk1326664986.png",intern=TRUE)) character(0) > try(system("convert tmp/378bc1326664986.ps tmp/378bc1326664986.png",intern=TRUE)) character(0) > try(system("convert tmp/4nx401326664986.ps tmp/4nx401326664986.png",intern=TRUE)) character(0) > try(system("convert tmp/5j0k41326664986.ps tmp/5j0k41326664986.png",intern=TRUE)) character(0) > try(system("convert tmp/6uhf91326664986.ps tmp/6uhf91326664986.png",intern=TRUE)) character(0) > try(system("convert tmp/70xcm1326664986.ps tmp/70xcm1326664986.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.597 0.407 2.010