R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(7.55,7.55,7.59,7.59,7.59,7.57,7.57,7.59,7.6,7.64,7.64,7.76,7.76,7.76,7.77,7.83,7.94,7.94,7.94,8.09,8.18,8.26,8.28,8.28,8.28,8.29,8.3,8.3,8.31,8.33,8.33,8.34,8.48,8.59,8.67,8.67,8.67,8.71,8.72,8.72,8.72,8.74,8.74,8.74,8.74,8.79,8.85,8.86,8.87,8.92,8.96,8.97,8.99,8.98,8.98,9.01,9.01,9.03,9.05,9.05) > 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,] 7.55 7.76 8.28 8.67 8.87 NA [2,] 7.55 7.76 8.29 8.71 8.92 NA [3,] 7.59 7.77 8.30 8.72 8.96 NA [4,] 7.59 7.83 8.30 8.72 8.97 NA [5,] 7.59 7.94 8.31 8.72 8.99 NA [6,] 7.57 7.94 8.33 8.74 8.98 NA [7,] 7.57 7.94 8.33 8.74 8.98 NA [8,] 7.59 8.09 8.34 8.74 9.01 NA [9,] 7.60 8.18 8.48 8.74 9.01 NA [10,] 7.64 8.26 8.59 8.79 9.03 NA [11,] 7.64 8.28 8.67 8.85 9.05 NA [12,] 7.76 8.28 8.67 8.86 9.05 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.00 0.00 0.01 0.04 0.05 NA [2,] 0.04 0.01 0.01 0.01 0.04 NA [3,] 0.00 0.06 0.00 0.00 0.01 NA [4,] 0.00 0.11 0.01 0.00 0.02 NA [5,] -0.02 0.00 0.02 0.02 -0.01 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.02 0.15 0.01 0.00 0.03 NA [8,] 0.01 0.09 0.14 0.00 0.00 NA [9,] 0.04 0.08 0.11 0.05 0.02 NA [10,] 0.00 0.02 0.08 0.06 0.02 NA [11,] 0.12 0.00 0.00 0.01 0.00 NA [12,] 0.00 0.00 0.00 0.01 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/1vdlm1258140352.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/251wf1258140352.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/3a32s1258140352.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/4l9v21258140352.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,] 7.55 7.55 7.59 7.59 7.59 7.57 7.57 7.59 7.60 7.64 7.64 7.76 [2,] 7.76 7.76 7.77 7.83 7.94 7.94 7.94 8.09 8.18 8.26 8.28 8.28 [3,] 8.28 8.29 8.30 8.30 8.31 8.33 8.33 8.34 8.48 8.59 8.67 8.67 [4,] 8.67 8.71 8.72 8.72 8.72 8.74 8.74 8.74 8.74 8.79 8.85 8.86 [5,] 8.87 8.92 8.96 8.97 8.99 8.98 8.98 9.01 9.01 9.03 9.05 9.05 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.636996 7.618732 7.628732 7.671128 7.758854 7.764722 7.764722 7.880712 [2,] 8.923004 8.961268 8.971268 8.928872 8.861146 8.895278 8.895278 8.799288 [,9] [,10] [,11] [,12] [1,] 8.084305 8.215503 8.26724 8.260173 [2,] 8.875695 8.964497 9.07276 9.079827 $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(7.55, 7.76, 8.28, 8.67, 8.87, 7.55, 7.76, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54ubt1258140352.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.00 0.01 0.00 0.00 -0.02 0 0.00 0.00 0.02 0.00 0.00 0.000 [2,] 0.00 0.01 0.00 0.00 -0.01 0 0.01 0.00 0.04 0.02 0.00 0.000 [3,] 0.01 0.01 0.00 0.01 0.00 0 0.02 0.01 0.05 0.02 0.00 0.000 [4,] 0.04 0.04 0.01 0.02 0.02 0 0.03 0.09 0.08 0.06 0.01 0.005 [5,] 0.05 0.04 0.01 0.02 0.02 0 0.03 0.14 0.11 0.08 0.01 0.010 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.0182639 -0.01119792 -0.007065975 -0.00413195 -0.02119792 0 [2,] 0.0382639 0.03119792 0.007065975 0.02413195 0.02119792 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.00586805 -0.05359377 0.0217361 -0.0082639 -0.007065975 -0.00395 [2,] 0.03413195 0.07359377 0.0782639 0.0482639 0.007065975 0.00395 $out [1] 0.06 0.11 0.15 0.12 $group [1] 3 4 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0.00999999999999979, 0.0400000000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6nqz11258140352.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,] 7.55 7.76 8.280 8.670 8.920 NA [2,] 7.57 7.80 8.300 8.720 8.965 NA [3,] 7.59 7.94 8.330 8.740 8.985 NA [4,] 7.62 8.22 8.535 8.765 9.020 NA [5,] 7.64 8.28 8.670 8.790 9.050 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7.567195 7.748435 8.222815 8.719475 8.959914 NA [2,] 7.612805 8.131565 8.437185 8.760525 9.010086 NA $out [1] 7.76 8.85 8.86 8.87 $group [1] 1 4 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(7.55, 7.57, 7.59, 7.62, 7.64, 7.76, 7.8, 7.94, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7cp1p1258140352.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,] 8.226 8.280 8.2150 [2,] 8.275 8.300 8.2600 [3,] 8.312 8.330 8.3400 [4,] 8.432 8.535 8.4925 [5,] 8.524 8.670 8.5700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.240391 8.222815 8.233955 [2,] 8.383609 8.437185 8.446045 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(8.226, 8.275, 8.312, 8.432, 8.524, 8.28, 8.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1vdlm1258140352.ps tmp/1vdlm1258140352.png") > system("convert tmp/251wf1258140352.ps tmp/251wf1258140352.png") > system("convert tmp/3a32s1258140352.ps tmp/3a32s1258140352.png") > system("convert tmp/4l9v21258140352.ps tmp/4l9v21258140352.png") > system("convert tmp/54ubt1258140352.ps tmp/54ubt1258140352.png") > system("convert tmp/6nqz11258140352.ps tmp/6nqz11258140352.png") > system("convert tmp/7cp1p1258140352.ps tmp/7cp1p1258140352.png") > > > proc.time() user system elapsed 1.229 1.003 1.641