R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(62.11,62.15,62.2,62.22,62.02,62.02,62.02,62.07,62.31,62.71,62.77,62.82,62.82,62.82,62.55,62.6,62.47,62.47,62.47,62.72,63.13,64.09,64.31,64.29,64.29,64.29,64.35,64.42,64.24,64.23,64.23,64.2,65.35,65.83,66.15,66.19,66.19,66.56,66.59,66.48,66.4,66.4,66.4,66.49,66.65,67.69,67.91,68.14,68.14,68.16,67.94,68,68.1,68.12,68.12,68.24,68.42,68.97,69.13,69.2) > 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] 60 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 62.11 62.02 62.82 62.47 64.29 64.23 66.19 66.40 68.14 68.12 NA [2,] 62.15 62.07 62.82 62.72 64.29 64.20 66.56 66.49 68.16 68.24 NA [3,] 62.20 62.31 62.55 63.13 64.35 65.35 66.59 66.65 67.94 68.42 NA [4,] 62.22 62.71 62.60 64.09 64.42 65.83 66.48 67.69 68.00 68.97 NA [5,] 62.02 62.77 62.47 64.31 64.24 66.15 66.40 67.91 68.10 69.13 NA [6,] 62.02 62.82 62.47 64.29 64.23 66.19 66.40 68.14 68.12 69.20 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 0.04 0.05 0.00 0.25 0.00 -0.03 0.37 0.09 0.02 0.12 NA [2,] 0.05 0.24 -0.27 0.41 0.06 1.15 0.03 0.16 -0.22 0.18 NA [3,] 0.02 0.40 0.05 0.96 0.07 0.48 -0.11 1.04 0.06 0.55 NA [4,] -0.20 0.06 -0.13 0.22 -0.18 0.32 -0.08 0.22 0.10 0.16 NA [5,] 0.00 0.05 0.00 -0.02 -0.01 0.04 0.00 0.23 0.02 0.07 NA [6,] 0.00 0.00 0.00 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/rcomp/tmp/1l4f61331712432.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/www/rcomp/tmp/2bha21331712432.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/www/rcomp/tmp/3vxk41331712432.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/www/rcomp/tmp/4dgfc1331712432.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] [1,] 62.02 62.070 62.20 62.220 62.02 62.02 [2,] 62.47 62.720 62.55 62.710 62.77 62.82 [3,] 64.26 64.245 64.85 65.125 65.23 65.24 [4,] 66.40 66.560 66.65 67.690 67.91 68.12 [5,] 68.14 68.240 68.42 68.970 69.13 69.20 $n [1] 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 62.29642 62.32638 62.80148 62.63679 62.66185 62.59191 [2,] 66.22358 66.16362 66.89852 67.61321 67.79815 67.88809 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" Warning message: In bxp(list(stats = c(62.02, 62.47, 64.26, 66.4, 68.14, 62.07, 62.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5qb9b1331712432.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] [1,] -0.030 -0.27 -0.110 -0.20 -0.02 0 [2,] 0.000 0.03 0.050 -0.13 0.00 0 [3,] 0.045 0.11 0.235 0.08 0.01 0 [4,] 0.120 0.24 0.550 0.22 0.05 0 [5,] 0.250 0.41 1.040 0.32 0.07 0 $n [1] 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01495678 0.005075627 -0.01481994 -0.09487395 -0.01498199 0 [2,] 0.10495678 0.214924373 0.48481994 0.25487395 0.03498199 0 $out [1] 0.37 1.15 0.23 $group [1] 1 2 5 $names [1] "1" "2" "3" "4" "5" "6" Warning message: In bxp(list(stats = c(-0.0300000000000011, 0, 0.0449999999999982, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/68otx1331712432.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] [,8] [,9] [,10] [,11] [1,] 62.02 62.02 62.470 62.47 64.23 64.20 66.19 66.40 67.94 68.120 NA [2,] 62.02 62.07 62.470 62.72 64.24 64.23 66.40 66.49 68.00 68.240 NA [3,] 62.13 62.51 62.575 63.61 64.29 65.59 66.44 67.17 68.11 68.695 NA [4,] 62.20 62.77 62.820 64.29 64.35 66.15 66.56 67.91 68.14 69.130 NA [5,] 62.22 62.82 62.820 64.31 64.42 66.19 66.59 68.14 68.16 69.200 NA $n [1] 6 6 6 6 6 6 6 6 6 6 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 62.0139 62.05848 62.34924 62.5973 64.21905 64.35154 66.3368 66.25405 [2,] 62.2461 62.96152 62.80076 64.6227 64.36095 66.82846 66.5432 68.08595 [,9] [,10] [,11] [1,] 68.0197 68.12092 NA [2,] 68.2003 69.26908 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(62.02, 62.02, 62.13, 62.2, 62.22, 62.02, 62.07, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7ddfi1331712432.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,] 64.679 64.2450 64.45250 [2,] 64.770 64.2600 64.64375 [3,] 65.125 64.9875 64.94312 [4,] 65.350 65.2300 65.33500 [5,] 65.388 65.2400 65.43125 $n [1] 6 6 6 $conf [,1] [,2] [,3] [1,] 64.75088 64.36182 64.49725 [2,] 65.49912 65.61318 65.38900 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(64.679, 64.77, 65.125, 65.35, 65.388, 64.245, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1l4f61331712432.ps tmp/1l4f61331712432.png",intern=TRUE)) character(0) > try(system("convert tmp/2bha21331712432.ps tmp/2bha21331712432.png",intern=TRUE)) character(0) > try(system("convert tmp/3vxk41331712432.ps tmp/3vxk41331712432.png",intern=TRUE)) character(0) > try(system("convert tmp/4dgfc1331712432.ps tmp/4dgfc1331712432.png",intern=TRUE)) character(0) > try(system("convert tmp/5qb9b1331712432.ps tmp/5qb9b1331712432.png",intern=TRUE)) character(0) > try(system("convert tmp/68otx1331712432.ps tmp/68otx1331712432.png",intern=TRUE)) character(0) > try(system("convert tmp/7ddfi1331712432.ps tmp/7ddfi1331712432.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.500 0.250 1.744