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. Natural language support but running in an English locale 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(4.23,4.38,4.43,4.44,4.44,4.44,4.44,4.44,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.46,4.46,4.46,4.48,4.58,4.67,4.68,4.68,4.69,4.69,4.69,4.69,4.69,4.69,4.69,4.73,4.78,4.79,4.79,4.8,4.8,4.81,5.16,5.26,5.29,5.29,5.29,5.3,5.3,5.3,5.3,5.3,5.3,5.3,5.3,5.35,5.44,5.47,5.47,5.48,5.48,5.48,5.48,5.48,5.48,5.48,5.5,5.55,5.57,5.58,5.58,5.58,5.59,5.59,5.59,5.55) > 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,] 4.23 4.45 4.69 4.80 5.30 5.48 NA [2,] 4.38 4.45 4.69 4.81 5.30 5.48 NA [3,] 4.43 4.45 4.69 5.16 5.30 5.50 NA [4,] 4.44 4.45 4.69 5.26 5.35 5.55 NA [5,] 4.44 4.46 4.69 5.29 5.44 5.57 NA [6,] 4.44 4.46 4.69 5.29 5.47 5.58 NA [7,] 4.44 4.46 4.69 5.29 5.47 5.58 NA [8,] 4.44 4.48 4.73 5.30 5.48 5.58 NA [9,] 4.45 4.58 4.78 5.30 5.48 5.59 NA [10,] 4.45 4.67 4.79 5.30 5.48 5.59 NA [11,] 4.45 4.68 4.79 5.30 5.48 5.59 NA [12,] 4.45 4.68 4.80 5.30 5.48 5.55 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.15 0.00 0.00 0.01 0.00 0.00 NA [2,] 0.05 0.00 0.00 0.35 0.00 0.02 NA [3,] 0.01 0.00 0.00 0.10 0.05 0.05 NA [4,] 0.00 0.01 0.00 0.03 0.09 0.02 NA [5,] 0.00 0.00 0.00 0.00 0.03 0.01 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 0.02 0.04 0.01 0.01 0.00 NA [8,] 0.01 0.10 0.05 0.00 0.00 0.01 NA [9,] 0.00 0.09 0.01 0.00 0.00 0.00 NA [10,] 0.00 0.01 0.00 0.00 0.00 0.00 NA [11,] 0.00 0.00 0.01 0.00 0.00 -0.04 NA [12,] 0.00 0.01 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/freestat/rcomp/tmp/12wpd1289762006.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/freestat/rcomp/tmp/22wpd1289762006.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/freestat/rcomp/tmp/32wpd1289762006.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/freestat/rcomp/tmp/4v5oy1289762006.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,] 4.230 4.38 4.430 4.440 4.44 4.44 4.44 4.440 4.45 4.450 4.450 4.45 [2,] 4.450 4.45 4.450 4.450 4.46 4.46 4.46 4.480 4.58 4.670 4.680 4.68 [3,] 4.745 4.75 4.925 4.975 4.99 4.99 4.99 5.015 5.04 5.045 5.045 5.05 [4,] 5.300 5.30 5.300 5.350 5.44 5.47 5.47 5.480 5.48 5.480 5.480 5.48 [5,] 5.480 5.48 5.500 5.550 5.57 5.58 5.58 5.580 5.59 5.590 5.590 5.55 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.196723 4.201723 4.376723 4.394471 4.357868 4.338517 4.338517 4.369968 [2,] 5.293277 5.298277 5.473277 5.555529 5.622132 5.641483 5.641483 5.660032 [,9] [,10] [,11] [,12] [1,] 4.459471 4.522524 4.528974 4.533974 [2,] 5.620529 5.567476 5.561026 5.566026 $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(4.23, 4.45, 4.745, 5.3, 5.48, 4.38, 4.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5v5oy1289762006.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.00 0.00 0.000 0.00 0 0.00 0.00 0.00 0 0 0 [2,] 0.00 0.00 0.00 0.000 0.00 0 0.00 0.00 0.00 0 0 0 [3,] 0.00 0.01 0.03 0.015 0.00 0 0.01 0.01 0.00 0 0 0 [4,] 0.01 0.05 0.05 0.030 0.01 0 0.02 0.05 0.01 0 0 0 [5,] 0.01 0.05 0.10 0.030 0.01 0 0.04 0.10 0.01 0 0 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.006450323 -0.02225161 -0.002251615 -0.004350969 -0.006450323 0 [2,] 0.006450323 0.04225161 0.062251615 0.034350969 0.006450323 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.002900646 -0.02225161 -0.006450323 0 0 0 [2,] 0.022900646 0.04225161 0.006450323 0 0 0 $out [1] 0.15 0.35 0.09 0.03 0.09 0.01 0.01 -0.04 0.01 $group [1] 1 2 4 5 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.00999999999999979, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6oe611289762006.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,] 4.430 4.450 4.690 5.16 5.300 5.480 NA [2,] 4.435 4.450 4.690 5.21 5.325 5.525 NA [3,] 4.440 4.460 4.690 5.29 5.470 5.575 NA [4,] 4.450 4.625 4.785 5.30 5.480 5.585 NA [5,] 4.450 4.680 4.800 5.30 5.480 5.590 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4.433158 4.380181 4.64667 5.24895 5.399303 5.547634 NA [2,] 4.446842 4.539819 4.73333 5.33105 5.540697 5.602366 NA $out [1] 4.23 4.38 4.80 4.81 $group [1] 1 1 4 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(4.43, 4.435, 4.44, 4.45, 4.45, 4.45, 4.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7oe611289762006.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,] 4.825000 4.9250 4.842500 [2,] 4.939167 4.9500 4.903125 [3,] 4.988333 4.9900 4.971250 [4,] 5.036667 5.0425 5.050000 [5,] 5.048333 5.0500 5.072500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.943863 4.94781 4.904259 [2,] 5.032804 5.03219 5.038241 $out [1] 4.745 4.750 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(4.825, 4.93916666666667, 4.98833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/12wpd1289762006.ps tmp/12wpd1289762006.png",intern=TRUE)) character(0) > try(system("convert tmp/22wpd1289762006.ps tmp/22wpd1289762006.png",intern=TRUE)) character(0) > try(system("convert tmp/32wpd1289762006.ps tmp/32wpd1289762006.png",intern=TRUE)) character(0) > try(system("convert tmp/4v5oy1289762006.ps tmp/4v5oy1289762006.png",intern=TRUE)) character(0) > try(system("convert tmp/5v5oy1289762006.ps tmp/5v5oy1289762006.png",intern=TRUE)) character(0) > try(system("convert tmp/6oe611289762006.ps tmp/6oe611289762006.png",intern=TRUE)) character(0) > try(system("convert tmp/7oe611289762006.ps tmp/7oe611289762006.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.935 1.453 2.333