R version 2.8.1 (2008-12-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(3.42,3.42,3.43,3.47,3.51,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.58,3.6,3.61,3.61,3.61,3.63,3.68,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.78,3.79,3.79,3.8,3.8,3.8,3.8,3.81,3.95,3.99,4,4.06,4.16,4.19,4.2,4.2,4.2,4.2,4.2,4.23,4.38,4.43,4.44,4.44,4.44,4.44,4.44,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.46,4.46,4.46,4.48,4.58,4.67,4.68,4.68) > par1 = '6' > #'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] 12 > 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] 12 12 12 12 12 12 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 3.42 3.52 3.52 3.61 3.69 3.79 3.81 4.19 4.23 4.44 4.45 4.46 NA [2,] 3.42 3.52 3.52 3.63 3.69 3.79 3.95 4.20 4.38 4.44 4.45 4.48 NA [3,] 3.43 3.52 3.58 3.68 3.69 3.80 3.99 4.20 4.43 4.45 4.45 4.58 NA [4,] 3.47 3.52 3.60 3.69 3.69 3.80 4.00 4.20 4.44 4.45 4.45 4.67 NA [5,] 3.51 3.52 3.61 3.69 3.69 3.80 4.06 4.20 4.44 4.45 4.46 4.68 NA [6,] 3.52 3.52 3.61 3.69 3.78 3.80 4.16 4.20 4.44 4.45 4.46 4.68 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 0.00 0 0.00 0.02 0.00 0.00 0.14 0.01 0.15 0.00 0.00 0.02 NA [2,] 0.01 0 0.06 0.05 0.00 0.01 0.04 0.00 0.05 0.01 0.00 0.10 NA [3,] 0.04 0 0.02 0.01 0.00 0.00 0.01 0.00 0.01 0.00 0.00 0.09 NA [4,] 0.04 0 0.01 0.00 0.00 0.00 0.06 0.00 0.00 0.00 0.01 0.01 NA [5,] 0.01 0 0.00 0.00 0.09 0.00 0.10 0.00 0.00 0.00 0.00 0.00 NA [6,] 0.00 0 0.00 0.00 0.01 0.01 0.03 0.03 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/111h81240665101.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/2nzj01240665101.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/38ttf1240665101.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/4ko4q1240665101.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] [1,] 3.420 3.420 3.430 3.470 3.510 3.520 [2,] 3.565 3.575 3.630 3.645 3.650 3.650 [3,] 3.800 3.870 3.895 3.900 3.930 3.980 [4,] 4.335 4.410 4.440 4.445 4.445 4.445 [5,] 4.460 4.480 4.580 4.670 4.680 4.680 $n [1] 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.448798 3.489151 3.525554 3.535115 3.567395 3.617395 [2,] 4.151202 4.250849 4.264446 4.264885 4.292605 4.342605 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" Warning message: In bxp(list(stats = c(3.42, 3.565, 3.8, 4.335, 4.46, 3.42, 3.575, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vz2u1240665101.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] [1,] 0.00 0.00 0.000 0.00 0.000 0.00 [2,] 0.00 0.00 0.000 0.00 0.000 0.00 [3,] 0.00 0.01 0.005 0.00 0.000 0.00 [4,] 0.02 0.05 0.015 0.01 0.005 0.01 [5,] 0.02 0.10 0.020 0.01 0.010 0.01 $n [1] 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.009122134 -0.01280534 -0.001841601 -0.004561067 -0.002280534 [2,] 0.009122134 0.03280534 0.011841601 0.004561067 0.002280534 [,6] [1,] -0.004763879 [2,] 0.004763879 $out [1] 0.14 0.15 0.04 0.09 0.04 0.06 0.09 0.10 0.03 0.03 $group [1] 1 1 3 3 4 4 5 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" Warning message: In bxp(list(stats = c(0, 0, 0, 0.0200000000000002, 0.0200000000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6x7sg1240665101.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] [,10] [,11] [,12] [,13] [1,] 3.42 3.52 3.52 3.610 3.69 3.79 3.810 4.2 4.380 4.44 4.45 4.460 NA [2,] 3.42 3.52 3.52 3.630 3.69 3.79 3.950 4.2 4.380 4.44 4.45 4.480 NA [3,] 3.45 3.52 3.59 3.685 3.69 3.80 3.995 4.2 4.435 4.45 4.45 4.625 NA [4,] 3.51 3.52 3.61 3.690 3.69 3.80 4.060 4.2 4.440 4.45 4.46 4.680 NA [5,] 3.52 3.52 3.61 3.690 3.69 3.80 4.160 4.2 4.440 4.45 4.46 4.680 NA $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3.391947 3.52 3.531947 3.646298 3.69 3.79355 3.924046 4.2 4.396298 [2,] 3.508053 3.52 3.648053 3.723702 3.69 3.80645 4.065954 4.2 4.473702 [,10] [,11] [,12] [,13] [1,] 4.44355 4.44355 4.495994 NA [2,] 4.45645 4.45645 4.754006 NA $out [1] 3.78 4.19 4.23 $group [1] 5 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" NA Warning message: In bxp(list(stats = c(3.42, 3.42, 3.45, 3.51, 3.52, 3.52, 3.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7tdbg1240665101.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,] 3.927500 3.8000 3.93500 [2,] 3.955833 3.8700 3.99875 [3,] 3.990833 3.8975 4.05000 [4,] 4.009167 3.9300 4.05625 [5,] 4.025833 3.9800 4.05625 $n [1] 6 6 6 $conf [,1] [,2] [,3] [1,] 3.956432 3.858798 4.012911 [2,] 4.025235 3.936202 4.087089 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.9275, 3.95583333333333, 3.99083333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/111h81240665101.ps tmp/111h81240665101.png") > system("convert tmp/2nzj01240665101.ps tmp/2nzj01240665101.png") > system("convert tmp/38ttf1240665101.ps tmp/38ttf1240665101.png") > system("convert tmp/4ko4q1240665101.ps tmp/4ko4q1240665101.png") > system("convert tmp/5vz2u1240665101.ps tmp/5vz2u1240665101.png") > system("convert tmp/6x7sg1240665101.ps tmp/6x7sg1240665101.png") > system("convert tmp/7tdbg1240665101.ps tmp/7tdbg1240665101.png") > > > proc.time() user system elapsed 1.144 0.915 1.587