R version 2.8.0 (2008-10-20) 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(1.63,1.63,1.62,1.62,1.61,1.6,1.6,1.6,1.59,1.59,1.58,1.58,1.58,1.58,1.58,1.58,1.56,1.56,1.55,1.55,1.55,1.54,1.54,1.53,1.53,1.53,1.53,1.52,1.52,1.52,1.52,1.51,1.51,1.51,1.5,1.49,1.49,1.49,1.48,1.47,1.47,1.47,1.46,1.46,1.45,1.45,1.44,1.43,1.43,1.43,1.42,1.41,1.4,1.4,1.4,1.4,1.39,1.38,1.38,1.38,1.37,1.37,1.37,1.37,1.37,1.37,1.37,1.36,1.36,1.36,1.35,1.34,1.34,1.34,1.34,1.34,1.34,1.34,1.33,1.33,1.33,1.32,1.32,1.32,1.32) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.63 1.58 1.53 1.49 1.43 1.37 1.34 1.32 [2,] 1.63 1.58 1.53 1.49 1.43 1.37 1.34 NA [3,] 1.62 1.58 1.53 1.48 1.42 1.37 1.34 NA [4,] 1.62 1.58 1.52 1.47 1.41 1.37 1.34 NA [5,] 1.61 1.56 1.52 1.47 1.40 1.37 1.34 NA [6,] 1.60 1.56 1.52 1.47 1.40 1.37 1.34 NA [7,] 1.60 1.55 1.52 1.46 1.40 1.37 1.33 NA [8,] 1.60 1.55 1.51 1.46 1.40 1.36 1.33 NA [9,] 1.59 1.55 1.51 1.45 1.39 1.36 1.33 NA [10,] 1.59 1.54 1.51 1.45 1.38 1.36 1.32 NA [11,] 1.58 1.54 1.50 1.44 1.38 1.35 1.32 NA [12,] 1.58 1.53 1.49 1.43 1.38 1.34 1.32 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] -0.01 0.00 0.00 -0.01 -0.01 0.00 0.00 NA [3,] 0.00 0.00 -0.01 -0.01 -0.01 0.00 0.00 NA [4,] -0.01 -0.02 0.00 0.00 -0.01 0.00 0.00 NA [5,] -0.01 0.00 0.00 0.00 0.00 0.00 0.00 NA [6,] 0.00 -0.01 0.00 -0.01 0.00 0.00 -0.01 NA [7,] 0.00 0.00 -0.01 0.00 0.00 -0.01 0.00 NA [8,] -0.01 0.00 0.00 -0.01 -0.01 0.00 0.00 NA [9,] 0.00 -0.01 0.00 0.00 -0.01 0.00 -0.01 NA [10,] -0.01 0.00 -0.01 -0.01 0.00 -0.01 0.00 NA [11,] 0.00 -0.01 -0.01 -0.01 0.00 -0.01 0.00 NA [12,] 0.00 0.00 0.00 0.00 -0.01 0.00 0.00 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/10twz1228405195.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/2dcm81228405195.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/3ugrq1228405195.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/4n1rw1228405195.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] [,12] [1,] 1.320 1.340 1.340 1.34 1.340 1.340 1.330 1.33 1.330 1.320 1.320 1.32 [2,] 1.355 1.400 1.395 1.39 1.385 1.385 1.385 1.38 1.375 1.370 1.365 1.36 [3,] 1.460 1.490 1.480 1.47 1.470 1.470 1.460 1.46 1.450 1.450 1.440 1.43 [4,] 1.555 1.555 1.555 1.55 1.540 1.540 1.535 1.53 1.530 1.525 1.520 1.51 [5,] 1.630 1.630 1.620 1.62 1.610 1.600 1.600 1.60 1.590 1.590 1.580 1.58 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.348277 1.397437 1.384451 1.374451 1.377437 1.377437 1.370422 1.370422 [2,] 1.571723 1.582563 1.575549 1.565549 1.562563 1.562563 1.549578 1.549578 [,9] [,10] [,11] [,12] [1,] 1.357437 1.357437 1.347437 1.340422 [2,] 1.542563 1.542563 1.532563 1.519578 $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(1.32, 1.355, 1.46, 1.555, 1.63, 1.34, 1.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vuxg1228405195.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 -0.01 -0.01 -0.02 0 -0.01 -0.010 -0.01 -0.01 -0.01 -0.01 0 [2,] 0 -0.01 -0.01 -0.01 0 -0.01 -0.005 -0.01 -0.01 -0.01 -0.01 0 [3,] 0 0.00 0.00 0.00 0 0.00 0.000 0.00 0.00 -0.01 -0.01 0 [4,] 0 0.00 0.00 0.00 0 0.00 0.000 0.00 0.00 0.00 0.00 0 [5,] 0 0.00 0.00 0.00 0 0.00 0.000 0.00 0.00 0.00 0.00 0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 -0.005971839 -0.005971839 -0.005971839 0 -0.005971839 -0.002985919 [2,] 0 0.005971839 0.005971839 0.005971839 0 0.005971839 0.002985919 [,8] [,9] [,10] [,11] [,12] [1,] -0.005971839 -0.005971839 -0.015971839 -0.015971839 0 [2,] 0.005971839 0.005971839 -0.004028161 -0.004028161 0 $out [1] -0.01 -0.01 $group [1] 5 12 $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, 0, -0.01, -0.0099999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6hf7l1228405195.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,] 1.58 1.530 1.490 1.430 1.380 1.35 1.320 1.32 [2,] 1.59 1.545 1.510 1.450 1.385 1.36 1.325 1.32 [3,] 1.60 1.555 1.520 1.465 1.400 1.37 1.335 1.32 [4,] 1.62 1.580 1.525 1.475 1.415 1.37 1.340 1.32 [5,] 1.63 1.580 1.530 1.490 1.430 1.37 1.340 1.32 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.586317 1.539036 1.513158 1.453597 1.386317 1.365439 1.328158 1.32 [2,] 1.613683 1.570964 1.526842 1.476403 1.413683 1.374561 1.341842 1.32 $out [1] 1.34 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.58, 1.59, 1.6, 1.62, 1.63, 1.53, 1.545, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7i0il1228405195.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,] 1.438571 1.43 1.43500 [2,] 1.452143 1.45 1.45000 [3,] 1.461339 1.46 1.45750 [4,] 1.470000 1.47 1.46625 [5,] 1.481429 1.49 1.47750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.453195 1.450878 1.450088 [2,] 1.469484 1.469122 1.464912 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/10twz1228405195.ps tmp/10twz1228405195.png") > system("convert tmp/2dcm81228405195.ps tmp/2dcm81228405195.png") > system("convert tmp/3ugrq1228405195.ps tmp/3ugrq1228405195.png") > system("convert tmp/4n1rw1228405195.ps tmp/4n1rw1228405195.png") > system("convert tmp/5vuxg1228405195.ps tmp/5vuxg1228405195.png") > system("convert tmp/6hf7l1228405195.ps tmp/6hf7l1228405195.png") > system("convert tmp/7i0il1228405195.ps tmp/7i0il1228405195.png") > > > proc.time() user system elapsed 1.231 0.976 1.532