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(5.44,5.44,5.44,5.44,5.44,5.49,5.49,5.49,5.49,5.49,5.49,5.60,5.60,5.60,5.60,5.60,5.60,5.60,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,6.81,6.80,6.80,6.85,6.85,6.85,6.85,6.85,6.85,6.86,6.86,6.88,6.88,6.88,6.91,6.91,6.91,6.91,6.99,6.99,6.99,7.02,7.02,7.05,7.05,7.05,7.05,7.10,7.10,7.10,7.10,7.12,7.13,7.18) > 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] 119 > (np <- floor(n / par1)) [1] 9 > 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] 10 10 10 10 10 10 10 10 10 10 10 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 5.44 5.60 5.67 6.02 6.17 6.59 6.63 6.79 6.88 7.05 [2,] 5.44 5.60 5.67 6.05 6.17 6.59 6.63 6.81 6.88 7.05 [3,] 5.44 5.60 5.67 6.05 6.17 6.59 6.63 6.80 6.88 7.05 [4,] 5.44 5.60 5.82 6.05 6.17 6.59 6.63 6.80 6.91 7.05 [5,] 5.44 5.60 5.82 6.12 6.17 6.59 6.63 6.85 6.91 7.10 [6,] 5.49 5.60 5.95 6.12 6.28 6.63 6.63 6.85 6.91 7.10 [7,] 5.49 5.67 5.95 6.12 6.27 6.63 6.63 6.85 6.91 7.10 [8,] 5.49 5.67 5.95 6.12 6.28 6.63 6.63 6.85 6.99 7.10 [9,] 5.49 5.67 5.95 6.12 6.28 6.63 6.63 6.85 6.99 7.12 [10,] 5.49 5.67 5.95 6.12 6.27 6.63 6.63 6.85 6.99 7.13 [11,] 5.49 5.67 5.95 6.12 6.27 6.63 6.79 6.86 7.02 7.18 [12,] 5.60 5.67 6.02 6.12 6.28 6.63 6.79 6.86 7.02 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0.00 0.00 0.00 0.03 0.00 0.00 0.00 0.02 0.00 0.00 [2,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -0.01 0.00 0.00 [3,] 0.00 0.00 0.15 0.00 0.00 0.00 0.00 0.00 0.03 0.00 [4,] 0.00 0.00 0.00 0.07 0.00 0.00 0.00 0.05 0.00 0.05 [5,] 0.05 0.00 0.13 0.00 0.11 0.04 0.00 0.00 0.00 0.00 [6,] 0.00 0.07 0.00 0.00 -0.01 0.00 0.00 0.00 0.00 0.00 [7,] 0.00 0.00 0.00 0.00 0.01 0.00 0.00 0.00 0.08 0.00 [8,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.02 [9,] 0.00 0.00 0.00 0.00 -0.01 0.00 0.00 0.00 0.00 0.01 [10,] 0.00 0.00 0.00 0.00 0.00 0.00 0.16 0.01 0.03 0.05 [11,] 0.11 0.00 0.07 0.00 0.01 0.00 0.00 0.00 0.00 NA [12,] 0.00 0.00 0.00 0.05 0.31 0.00 0.00 0.02 0.03 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/1bqfx1244067707.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/2rdmw1244067707.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/3ti3v1244067707.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/4i6t21244067707.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.44 5.44 5.44 5.44 5.44 5.490 5.49 5.490 5.490 5.49 5.49 5.60 [2,] 5.67 5.67 5.67 5.82 5.82 5.950 5.95 5.950 5.950 5.95 5.95 6.02 [3,] 6.38 6.38 6.38 6.38 6.38 6.455 6.45 6.455 6.455 6.45 6.45 6.28 [4,] 6.79 6.81 6.80 6.80 6.85 6.850 6.85 6.850 6.850 6.85 6.86 6.79 [5,] 7.05 7.05 7.05 7.05 7.10 7.100 7.10 7.100 7.120 7.13 7.18 7.02 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.820403 5.81041 5.815407 5.890353 5.865371 6.005324 6.000324 6.005324 [2,] 6.939597 6.94959 6.944593 6.869647 6.894629 6.904676 6.899676 6.904676 [,9] [,10] [,11] [,12] [1,] 6.005324 6.000324 5.995328 5.874467 [2,] 6.904676 6.899676 6.904672 6.685533 $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.44, 5.67, 6.38, 6.79, 7.05, 5.44, 5.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5by551244067707.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.00 0 0 0 0 0.00 0.00 0.00 [2,] 0 0 0 0.00 0.00 0 0 0 0 0.00 0.00 0.00 [3,] 0 0 0 0.00 0.00 0 0 0 0 0.00 0.00 0.00 [4,] 0 0 0 0.05 0.05 0 0 0 0 0.03 0.01 0.03 [5,] 0 0 0 0.07 0.11 0 0 0 0 0.05 0.01 0.05 $n [1] 10 10 10 10 10 10 10 10 10 10 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0 0 0 -0.02498199 -0.02498199 0 0 0 0 -0.01498920 [2,] 0 0 0 0.02498199 0.02498199 0 0 0 0 0.01498920 [,11] [,12] [1,] -0.005266667 -0.0158 [2,] 0.005266667 0.0158 $out [1] 0.03 0.02 -0.01 0.15 0.03 0.13 0.07 -0.01 0.01 0.08 0.02 -0.01 [13] 0.01 0.16 0.11 0.07 0.31 $group [1] 1 1 2 3 3 5 6 6 7 7 8 9 9 10 11 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/6ctrl1244067707.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] [,8] [,9] [,10] [1,] 5.44 5.600 5.670 6.02 6.17 6.59 6.63 6.790 6.880 7.05 [2,] 5.44 5.600 5.745 6.05 6.17 6.59 6.63 6.805 6.895 7.05 [3,] 5.49 5.635 5.950 6.12 6.27 6.63 6.63 6.850 6.910 7.10 [4,] 5.49 5.670 5.950 6.12 6.28 6.63 6.63 6.850 6.990 7.11 [5,] 5.49 5.670 6.020 6.12 6.28 6.63 6.63 6.860 7.020 7.18 $n [1] 12 12 12 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.467195 5.603073 5.856498 6.088073 6.219828 6.611756 6.63 6.829475 [2,] 5.512805 5.666927 6.043502 6.151927 6.320172 6.648244 6.63 6.870525 [,9] [,10] [1,] 6.86667 7.071417 [2,] 6.95333 7.128583 $out [1] 5.60 6.79 6.79 $group [1] 1 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(5.44, 5.44, 5.49, 5.49, 5.49, 5.6, 5.6, 5.635, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yj7j1244067707.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.284000 6.2800 6.25375 [2,] 6.297500 6.3800 6.29125 [3,] 6.344111 6.4150 6.39375 [4,] 6.372000 6.4525 6.39375 [5,] 6.398000 6.4550 6.41750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.310131 6.381932 6.346999 [2,] 6.378091 6.448068 6.440501 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.284, 6.2975, 6.34411111111111, 6.372, 6.398, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bqfx1244067707.ps tmp/1bqfx1244067707.png") > system("convert tmp/2rdmw1244067707.ps tmp/2rdmw1244067707.png") > system("convert tmp/3ti3v1244067707.ps tmp/3ti3v1244067707.png") > system("convert tmp/4i6t21244067707.ps tmp/4i6t21244067707.png") > system("convert tmp/5by551244067707.ps tmp/5by551244067707.png") > system("convert tmp/6ctrl1244067707.ps tmp/6ctrl1244067707.png") > system("convert tmp/7yj7j1244067707.ps tmp/7yj7j1244067707.png") > > > proc.time() user system elapsed 1.172 0.950 1.791