R version 2.7.0 (2008-04-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(2.17,2.28,2.25,2.09,2.05,1.94,2.06,2.18,2.27,2.25,2.19,2.27,2.21,2.22,2.19,2.2,2.19,2.22,2.15,2.08,2,2.06,2.11,2.11,2.3,2.57,2.65,2.69,2.76,2.93,3.05,3.15,3.23,3.37,3.45,3.55,3.63,3.7,3.75,3.88,3.91,3.94,4.1,4.21,4.33,4.38,4.19,4.06,4.06,4.02,4.08,3.84,3.6,3.69,3.95,4.11,4.52,4.48,4.33,4.21) > 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,] 2.17 2.21 2.30 3.63 4.06 NA [2,] 2.28 2.22 2.57 3.70 4.02 NA [3,] 2.25 2.19 2.65 3.75 4.08 NA [4,] 2.09 2.20 2.69 3.88 3.84 NA [5,] 2.05 2.19 2.76 3.91 3.60 NA [6,] 1.94 2.22 2.93 3.94 3.69 NA [7,] 2.06 2.15 3.05 4.10 3.95 NA [8,] 2.18 2.08 3.15 4.21 4.11 NA [9,] 2.27 2.00 3.23 4.33 4.52 NA [10,] 2.25 2.06 3.37 4.38 4.48 NA [11,] 2.19 2.11 3.45 4.19 4.33 NA [12,] 2.27 2.11 3.55 4.06 4.21 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.11 0.01 0.27 0.07 -0.04 NA [2,] -0.03 -0.03 0.08 0.05 0.06 NA [3,] -0.16 0.01 0.04 0.13 -0.24 NA [4,] -0.04 -0.01 0.07 0.03 -0.24 NA [5,] -0.11 0.03 0.17 0.03 0.09 NA [6,] 0.12 -0.07 0.12 0.16 0.26 NA [7,] 0.12 -0.07 0.10 0.11 0.16 NA [8,] 0.09 -0.08 0.08 0.12 0.41 NA [9,] -0.02 0.06 0.14 0.05 -0.04 NA [10,] -0.06 0.05 0.08 -0.19 -0.15 NA [11,] 0.08 0.00 0.10 -0.13 -0.12 NA [12,] -0.06 0.19 0.08 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/1wehv1225735576.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/2kaxh1225735576.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/3g1om1225735576.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/4iu9t1225735576.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,] 2.17 2.22 2.19 2.09 2.05 1.94 2.06 2.08 2.00 2.06 2.11 2.11 [2,] 2.21 2.28 2.25 2.20 2.19 2.22 2.15 2.18 2.27 2.25 2.19 2.27 [3,] 2.30 2.57 2.65 2.69 2.76 2.93 3.05 3.15 3.23 3.37 3.45 3.55 [4,] 3.63 3.70 3.75 3.84 3.60 3.69 3.95 4.11 4.33 4.38 4.19 4.06 [5,] 4.06 4.02 4.08 3.88 3.91 3.94 4.10 4.21 4.52 4.48 4.33 4.21 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.296632 1.566632 1.590104 1.53118 1.763698 1.891302 1.778125 1.786267 [2,] 3.303368 3.573368 3.709896 3.84882 3.756302 3.968698 4.321875 4.513733 [,9] [,10] [,11] [,12] [1,] 1.774409 1.864947 2.036805 2.285191 [2,] 4.685591 4.875053 4.863195 4.814809 $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(2.17, 2.21, 2.3, 3.63, 4.06, 2.22, 2.28, 2.57, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51ugh1225735576.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.04 -0.03 -0.24 -0.04 0.03 0.12 0.10 0.08 -0.04 -0.19 -0.13 -0.060 [2,] 0.01 -0.03 -0.16 -0.04 0.03 0.12 0.10 0.08 -0.02 -0.15 -0.12 -0.030 [3,] 0.07 0.05 0.01 -0.01 0.03 0.12 0.11 0.09 0.05 -0.06 0.00 0.040 [4,] 0.11 0.06 0.04 0.03 0.09 0.16 0.12 0.12 0.06 0.05 0.08 0.135 [5,] 0.11 0.08 0.13 0.07 0.17 0.16 0.12 0.12 0.14 0.08 0.10 0.190 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.0006597481 -0.01359377 -0.1313195 -0.05946182 -0.01239585 0.0917361 [2,] 0.1406597481 0.11359377 0.1513195 0.03946182 0.07239585 0.1482639 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.09586805 0.0617361 -0.006527798 -0.2013195 -0.1413195 -0.09035 [2,] 0.12413195 0.1182639 0.106527798 0.0813195 0.1413195 0.17035 $out [1] 0.27 -0.24 -0.11 -0.07 0.26 -0.07 0.16 -0.08 0.41 $group [1] 1 4 5 6 6 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.04, 0.0100000000000002, 0.0700000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6hkh31225735576.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] [1,] 1.940 2.000 2.30 3.630 3.600 NA [2,] 2.075 2.095 2.67 3.815 3.895 NA [3,] 2.185 2.170 2.99 4.000 4.070 NA [4,] 2.260 2.205 3.30 4.200 4.270 NA [5,] 2.280 2.220 3.55 4.380 4.520 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.100620 2.119828 2.702653 3.824399 3.89896 NA [2,] 2.269380 2.220172 3.277347 4.175601 4.24104 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.94, 2.075, 2.185, 2.26, 2.28, 2, 2.095, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7p5rb1225735576.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,] 2.874 2.30 2.8950 [2,] 2.942 2.67 2.9725 [3,] 3.023 2.99 3.0350 [4,] 3.247 3.30 3.1775 [5,] 3.308 3.55 3.3150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.883887 2.702653 2.941498 [2,] 3.162113 3.277347 3.128502 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.874, 2.942, 3.023, 3.247, 3.308, 2.3, 2.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1wehv1225735576.ps tmp/1wehv1225735576.png") > system("convert tmp/2kaxh1225735576.ps tmp/2kaxh1225735576.png") > system("convert tmp/3g1om1225735576.ps tmp/3g1om1225735576.png") > system("convert tmp/4iu9t1225735576.ps tmp/4iu9t1225735576.png") > system("convert tmp/51ugh1225735576.ps tmp/51ugh1225735576.png") > system("convert tmp/6hkh31225735576.ps tmp/6hkh31225735576.png") > system("convert tmp/7p5rb1225735576.ps tmp/7p5rb1225735576.png") > > > proc.time() user system elapsed 2.592 1.588 2.820