R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(31.5,31.29,31.3,31.06,31.09,31.11,31.13,31.1,31.03,30.74,30.83,30.82,30.8,30.74,30.71,30.58,30.71,30.7,30.7,30.72,30.68,30.78,30.84,30.8,30.8,30.88,30.87,30.92,30.82,30.75,30.75,30.75,30.63,30.52,30.58,30.6,30.6,30.63,30.56,30.61,30.53,30.6,30.6,30.63,30.66,30.34,30.32,30.3,30.3,30.08,29.96,29.91,29.83,29.89,29.85,30.06,29.83,29.95,30.02,30.03) > 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,] 31.50 30.80 30.80 30.60 30.30 NA [2,] 31.29 30.74 30.88 30.63 30.08 NA [3,] 31.30 30.71 30.87 30.56 29.96 NA [4,] 31.06 30.58 30.92 30.61 29.91 NA [5,] 31.09 30.71 30.82 30.53 29.83 NA [6,] 31.11 30.70 30.75 30.60 29.89 NA [7,] 31.13 30.70 30.75 30.60 29.85 NA [8,] 31.10 30.72 30.75 30.63 30.06 NA [9,] 31.03 30.68 30.63 30.66 29.83 NA [10,] 30.74 30.78 30.52 30.34 29.95 NA [11,] 30.83 30.84 30.58 30.32 30.02 NA [12,] 30.82 30.80 30.60 30.30 30.03 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.21 -0.06 0.08 0.03 -0.22 NA [2,] 0.01 -0.03 -0.01 -0.07 -0.12 NA [3,] -0.24 -0.13 0.05 0.05 -0.05 NA [4,] 0.03 0.13 -0.10 -0.08 -0.08 NA [5,] 0.02 -0.01 -0.07 0.07 0.06 NA [6,] 0.02 0.00 0.00 0.00 -0.04 NA [7,] -0.03 0.02 0.00 0.03 0.21 NA [8,] -0.07 -0.04 -0.12 0.03 -0.23 NA [9,] -0.29 0.10 -0.11 -0.32 0.12 NA [10,] 0.09 0.06 0.06 -0.02 0.07 NA [11,] -0.01 -0.04 0.02 -0.02 0.01 NA [12,] -0.02 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/rcomp/tmp/18kev1319574416.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/www/rcomp/tmp/2oj2n1319574416.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/www/rcomp/tmp/37o7u1319574416.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/www/rcomp/tmp/4h6es1319574416.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,] 30.6 30.63 30.56 30.58 30.53 30.60 30.60 30.63 30.63 29.95 30.02 30.03 [2,] 30.6 30.63 30.56 30.58 30.53 30.60 30.60 30.63 30.63 30.34 30.32 30.30 [3,] 30.8 30.74 30.71 30.61 30.71 30.70 30.70 30.72 30.66 30.52 30.58 30.60 [4,] 30.8 30.88 30.87 30.92 30.82 30.75 30.75 30.75 30.68 30.74 30.83 30.80 [5,] 30.8 30.88 31.30 31.06 31.09 30.75 30.75 30.75 30.68 30.78 30.84 30.82 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 30.65868 30.56335 30.49095 30.36976 30.50509 30.59401 30.59401 30.63521 [2,] 30.94132 30.91665 30.92905 30.85024 30.91491 30.80599 30.80599 30.80479 [,9] [,10] [,11] [,12] [1,] 30.62467 30.23736 30.21964 30.2467 [2,] 30.69533 30.80264 30.94036 30.9533 $out [1] 31.50 30.30 31.29 30.08 29.96 29.91 29.83 31.11 29.89 31.13 29.85 31.10 [13] 30.06 31.03 29.83 $group [1] 1 1 2 2 3 4 5 6 6 7 7 8 8 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(30.6, 30.6, 30.8, 30.8, 30.8, 30.63, 30.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5f6ng1319574416.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.22 -0.12 -0.24 -0.10 -0.07 0 -0.03 -0.23 -0.32 0.06 -0.04 -0.02 [2,] -0.21 -0.07 -0.13 -0.08 -0.01 0 0.00 -0.12 -0.29 0.06 -0.02 -0.01 [3,] -0.06 -0.03 -0.05 -0.08 0.02 0 0.02 -0.07 -0.11 0.06 -0.01 0.00 [4,] 0.03 -0.01 0.05 0.03 0.06 0 0.03 -0.04 0.10 0.07 0.01 0.00 [5,] 0.08 0.01 0.05 0.13 0.07 0 0.03 0.03 0.12 0.07 0.02 0.00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2295834 -0.07239585 -0.17718755 -0.157725723 -0.02946182 0 [2,] 0.1095834 0.01239585 0.07718755 -0.002274277 0.06946182 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.001197924 -0.12652780 -0.3855730 0.05293403 -0.03119792 -0.0079 [2,] 0.041197924 -0.01347220 0.1655730 0.06706597 0.01119792 0.0079 $out [1] 0.02 -0.04 0.21 0.09 -0.02 $group [1] 6 6 7 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.220000000000002, -0.210000000000001, -0.0600000000000023, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6zpl51319574416.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,] 30.740 30.580 30.520 30.300 29.830 NA [2,] 30.930 30.700 30.615 30.435 29.870 NA [3,] 31.095 30.715 30.750 30.600 29.955 NA [4,] 31.210 30.790 30.845 30.620 30.045 NA [5,] 31.500 30.840 30.920 30.660 30.300 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 30.96729 30.67395 30.64510 30.51562 29.87518 NA [2,] 31.22271 30.75605 30.85490 30.68438 30.03482 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(30.74, 30.93, 31.095, 31.21, 31.5, 30.58, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7n7gn1319574416.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,] 30.466 30.520 30.5400 [2,] 30.542 30.605 30.6150 [3,] 30.608 30.700 30.6750 [4,] 30.666 30.715 30.7075 [5,] 30.800 30.800 30.7550 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 30.55144 30.64983 30.63281 [2,] 30.66456 30.75017 30.71719 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(30.466, 30.542, 30.608, 30.666, 30.8, 30.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18kev1319574416.ps tmp/18kev1319574416.png",intern=TRUE)) character(0) > try(system("convert tmp/2oj2n1319574416.ps tmp/2oj2n1319574416.png",intern=TRUE)) character(0) > try(system("convert tmp/37o7u1319574416.ps tmp/37o7u1319574416.png",intern=TRUE)) character(0) > try(system("convert tmp/4h6es1319574416.ps tmp/4h6es1319574416.png",intern=TRUE)) character(0) > try(system("convert tmp/5f6ng1319574416.ps tmp/5f6ng1319574416.png",intern=TRUE)) character(0) > try(system("convert tmp/6zpl51319574416.ps tmp/6zpl51319574416.png",intern=TRUE)) character(0) > try(system("convert tmp/7n7gn1319574416.ps tmp/7n7gn1319574416.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.440 0.220 2.637