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(10.92,10.98,11.15,11.19,11.33,11.38,11.4,11.45,11.56,11.61,11.82,11.77,11.85,11.82,11.92,11.86,11.87,11.94,11.86,11.92,11.83,11.91,11.93,11.99,11.96,12.12,11.85,12.01,12.1,12.21,12.31,12.31,12.39,12.35,12.41,12.51,12.27,12.51,12.44,12.47,12.51,12.58,12.5,12.52,12.59,12.51,12.67,12.64,12.54,12.6,12.67,12.62,12.72,12.85,12.85,12.82,12.79,12.94,12.71,12.56) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10.92 11.85 11.96 12.27 12.54 NA [2,] 10.98 11.82 12.12 12.51 12.60 NA [3,] 11.15 11.92 11.85 12.44 12.67 NA [4,] 11.19 11.86 12.01 12.47 12.62 NA [5,] 11.33 11.87 12.10 12.51 12.72 NA [6,] 11.38 11.94 12.21 12.58 12.85 NA [7,] 11.40 11.86 12.31 12.50 12.85 NA [8,] 11.45 11.92 12.31 12.52 12.82 NA [9,] 11.56 11.83 12.39 12.59 12.79 NA [10,] 11.61 11.91 12.35 12.51 12.94 NA [11,] 11.82 11.93 12.41 12.67 12.71 NA [12,] 11.77 11.99 12.51 12.64 12.56 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.06 -0.03 0.16 0.24 0.06 NA [2,] 0.17 0.10 -0.27 -0.07 0.07 NA [3,] 0.04 -0.06 0.16 0.03 -0.05 NA [4,] 0.14 0.01 0.09 0.04 0.10 NA [5,] 0.05 0.07 0.11 0.07 0.13 NA [6,] 0.02 -0.08 0.10 -0.08 0.00 NA [7,] 0.05 0.06 0.00 0.02 -0.03 NA [8,] 0.11 -0.09 0.08 0.07 -0.03 NA [9,] 0.05 0.08 -0.04 -0.08 0.15 NA [10,] 0.21 0.02 0.06 0.16 -0.23 NA [11,] -0.05 0.06 0.10 -0.03 -0.15 NA [12,] 0.08 -0.03 -0.24 -0.10 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/1t00f1331763270.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/29xjr1331763270.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/3hul01331763270.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/4ymyz1331763270.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] [,12] [1,] 11.85 10.98 11.15 11.19 11.33 11.38 11.40 11.45 11.56 11.61 11.82 11.77 [2,] 11.85 11.82 11.85 11.86 11.87 11.94 11.86 11.92 11.83 11.91 11.93 11.99 [3,] 11.96 12.12 11.92 12.01 12.10 12.21 12.31 12.31 12.39 12.35 12.41 12.51 [4,] 12.27 12.51 12.44 12.47 12.51 12.58 12.50 12.52 12.59 12.51 12.67 12.56 [5,] 12.54 12.60 12.67 12.62 12.72 12.85 12.85 12.82 12.79 12.94 12.71 12.64 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.66323 11.63245 11.50311 11.57898 11.64778 11.75778 11.85778 11.88604 [2,] 12.25677 12.60755 12.33689 12.44102 12.55222 12.66222 12.76222 12.73396 [,9] [,10] [,11] [,12] [1,] 11.85299 11.92604 11.88712 12.10724 [2,] 12.92701 12.77396 12.93288 12.91276 $out [1] 10.92 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.85, 11.85, 11.96, 12.27, 12.54, 10.98, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5f4531331763270.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.03 -0.27 -0.06 0.01 0.05 -0.08 -0.03 -0.09 -0.08 0.02 -0.15 -0.240 [2,] 0.06 -0.07 -0.05 0.04 0.07 -0.08 0.00 -0.03 -0.04 0.02 -0.05 -0.170 [3,] 0.06 0.07 0.03 0.09 0.07 0.00 0.02 0.07 0.05 0.06 -0.03 -0.065 [4,] 0.16 0.10 0.04 0.10 0.11 0.02 0.05 0.08 0.08 0.16 0.06 0.025 [5,] 0.24 0.17 0.16 0.14 0.13 0.10 0.06 0.11 0.15 0.21 0.10 0.080 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01065975 -0.05012157 -0.03359377 0.04760415 0.0417361 -0.07065975 [2,] 0.13065975 0.19012157 0.09359377 0.13239585 0.0982639 0.07065975 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.01532987 -0.007725723 -0.0347917 -0.03892365 -0.10772572 -0.21905 [2,] 0.05532987 0.147725723 0.1347917 0.15892365 0.04772572 0.08905 $out [1] -0.23 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0299999999999994, 0.0600000000000005, 0.0600000000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6r1ra1331763270.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] [1,] 10.920 11.820 11.850 12.440 12.540 NA [2,] 11.170 11.855 12.055 12.485 12.610 NA [3,] 11.390 11.890 12.260 12.510 12.715 NA [4,] 11.585 11.925 12.370 12.585 12.835 NA [5,] 11.820 11.990 12.510 12.670 12.940 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 11.20072 11.85807 12.11633 12.46439 12.61238 NA [2,] 11.57928 11.92193 12.40367 12.55561 12.81762 NA $out [1] 12.27 $group [1] 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(10.92, 11.17, 11.39, 11.585, 11.82, 11.82, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/723ft1331763270.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,] 11.908 11.920 12.060 [2,] 12.018 12.055 12.165 [3,] 12.188 12.260 12.200 [4,] 12.248 12.370 12.240 [5,] 12.308 12.510 12.300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 12.0831 12.11633 12.16579 [2,] 12.2929 12.40367 12.23421 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11.908, 12.018, 12.188, 12.248, 12.308, 11.92, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1t00f1331763270.ps tmp/1t00f1331763270.png",intern=TRUE)) character(0) > try(system("convert tmp/29xjr1331763270.ps tmp/29xjr1331763270.png",intern=TRUE)) character(0) > try(system("convert tmp/3hul01331763270.ps tmp/3hul01331763270.png",intern=TRUE)) character(0) > try(system("convert tmp/4ymyz1331763270.ps tmp/4ymyz1331763270.png",intern=TRUE)) character(0) > try(system("convert tmp/5f4531331763270.ps tmp/5f4531331763270.png",intern=TRUE)) character(0) > try(system("convert tmp/6r1ra1331763270.ps tmp/6r1ra1331763270.png",intern=TRUE)) character(0) > try(system("convert tmp/723ft1331763270.ps tmp/723ft1331763270.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.710 0.449 2.180