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(5.6,5.6,5.6,5.6,5.6,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.82,5.82,5.95,5.95,5.95,5.95,5.95,5.95,6.02,6.02,6.05,6.05,6.05,6.12,6.12,6.12,6.12,6.12,6.12,6.12,6.12,6.17,6.17,6.17,6.17,6.17,6.28,6.27,6.28,6.28,6.27,6.27,6.28,6.59,6.59,6.59,6.59,6.59,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.79,6.79,6.79) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.60 5.67 6.05 6.17 6.59 6.63 NA [2,] 5.60 5.67 6.05 6.17 6.59 6.63 NA [3,] 5.60 5.82 6.05 6.17 6.59 6.63 NA [4,] 5.60 5.82 6.12 6.17 6.59 6.63 NA [5,] 5.60 5.95 6.12 6.28 6.63 6.63 NA [6,] 5.67 5.95 6.12 6.27 6.63 6.63 NA [7,] 5.67 5.95 6.12 6.28 6.63 6.63 NA [8,] 5.67 5.95 6.12 6.28 6.63 6.63 NA [9,] 5.67 5.95 6.12 6.27 6.63 6.63 NA [10,] 5.67 5.95 6.12 6.27 6.63 6.79 NA [11,] 5.67 6.02 6.12 6.28 6.63 6.79 NA [12,] 5.67 6.02 6.17 6.59 6.63 6.79 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] 0.00 0.15 0.00 0.00 0.00 0.00 NA [3,] 0.00 0.00 0.07 0.00 0.00 0.00 NA [4,] 0.00 0.13 0.00 0.11 0.04 0.00 NA [5,] 0.07 0.00 0.00 -0.01 0.00 0.00 NA [6,] 0.00 0.00 0.00 0.01 0.00 0.00 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [8,] 0.00 0.00 0.00 -0.01 0.00 0.00 NA [9,] 0.00 0.00 0.00 0.00 0.00 0.16 NA [10,] 0.00 0.07 0.00 0.01 0.00 0.00 NA [11,] 0.00 0.00 0.05 0.31 0.00 0.00 NA [12,] 0.00 0.03 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/html/rcomp/tmp/1xlqs1227956888.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/2iu6x1227956888.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/31e0l1227956888.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/4ckf61227956888.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,] 5.60 5.60 5.60 5.600 5.60 5.670 5.67 5.67 5.670 5.670 5.67 5.67 [2,] 5.67 5.67 5.82 5.820 5.95 5.950 5.95 5.95 5.950 5.950 6.02 6.02 [3,] 6.11 6.11 6.11 6.145 6.20 6.195 6.20 6.20 6.195 6.195 6.20 6.38 [4,] 6.59 6.59 6.59 6.590 6.63 6.630 6.63 6.63 6.630 6.630 6.63 6.63 [5,] 6.63 6.63 6.63 6.630 6.63 6.630 6.63 6.63 6.630 6.790 6.79 6.79 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.51657 5.51657 5.613325 5.648325 5.761378 5.756378 5.761378 5.761378 [2,] 6.70343 6.70343 6.606675 6.641675 6.638622 6.633622 6.638622 6.638622 [,9] [,10] [,11] [,12] [1,] 5.756378 5.756378 5.80653 5.98653 [2,] 6.633622 6.633622 6.59347 6.77347 $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(5.6, 5.67, 6.11, 6.59, 6.63, 5.6, 5.67, 6.11, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5oni41227956888.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 0 0.00 0 0 0 0 0 0.00 0.00 0 [2,] 0 0 0 0.00 0 0 0 0 0 0.00 0.00 0 [3,] 0 0 0 0.02 0 0 0 0 0 0.00 0.00 0 [4,] 0 0 0 0.11 0 0 0 0 0 0.01 0.05 0 [5,] 0 0 0 0.13 0 0 0 0 0 0.01 0.05 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0 0 0 -0.05095355 0 0 0 0 0 -0.006450323 [2,] 0 0 0 0.09095355 0 0 0 0 0 0.006450323 [,11] [,12] [1,] -0.03225161 0 [2,] 0.03225161 0 $out [1] 0.15 0.07 0.07 -0.01 0.01 -0.01 0.16 0.07 0.31 0.03 $group [1] 2 3 5 5 6 8 9 10 11 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, 0, 0, 0, 0, 0, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6iiv51227956888.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] [1,] 5.60 5.67 6.050 6.17 6.59 6.63 NA [2,] 5.60 5.82 6.085 6.17 6.59 6.63 NA [3,] 5.67 5.95 6.120 6.27 6.63 6.63 NA [4,] 5.67 5.95 6.120 6.28 6.63 6.71 NA [5,] 5.67 6.02 6.170 6.28 6.63 6.79 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.638073 5.890706 6.104036 6.219828 6.611756 6.593511 NA [2,] 5.701927 6.009294 6.135964 6.320172 6.648244 6.666489 NA $out [1] 6.59 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(5.6, 5.6, 5.67, 5.67, 5.67, 5.67, 5.82, 5.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7n0271227956888.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,] 6.118333 6.1100 6.125000 [2,] 6.149167 6.1275 6.185625 [3,] 6.211667 6.1950 6.266250 [4,] 6.225833 6.2000 6.267500 [5,] 6.311667 6.2000 6.338750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.176698 6.161932 6.228906 [2,] 6.246635 6.228068 6.303594 $out [1] 6.38 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.11833333333333, 6.14916666666667, 6.21166666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xlqs1227956888.ps tmp/1xlqs1227956888.png") > system("convert tmp/2iu6x1227956888.ps tmp/2iu6x1227956888.png") > system("convert tmp/31e0l1227956888.ps tmp/31e0l1227956888.png") > system("convert tmp/4ckf61227956888.ps tmp/4ckf61227956888.png") > system("convert tmp/5oni41227956888.ps tmp/5oni41227956888.png") > system("convert tmp/6iiv51227956888.ps tmp/6iiv51227956888.png") > system("convert tmp/7n0271227956888.ps tmp/7n0271227956888.png") > > > proc.time() user system elapsed 1.202 0.956 1.814