R version 2.8.1 (2008-12-22) 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(105.86,105.86,105.86,105.86,105.86,105.86,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.84,108.84,108.84,108.84,108.84,108.84,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,112.43,112.43,112.43,112.43,112.43,113.68,113.68,113.68,113.68,113.68) > 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] 46 > (np <- floor(n / par1)) [1] 3 > 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] 4 4 4 4 4 4 4 4 4 4 3 3 > arr [,1] [,2] [,3] [,4] [1,] 105.86 108.42 110.51 112.43 [2,] 105.86 108.42 110.51 112.43 [3,] 105.86 108.42 110.51 112.43 [4,] 105.86 108.42 110.51 112.43 [5,] 105.86 108.84 110.51 112.43 [6,] 105.86 108.84 110.51 113.68 [7,] 108.42 108.84 110.51 113.68 [8,] 108.42 108.84 110.51 113.68 [9,] 108.42 108.84 110.51 113.68 [10,] 108.42 108.84 110.51 113.68 [11,] 108.42 110.51 110.51 NA [12,] 108.42 110.51 110.51 NA > darr [,1] [,2] [,3] [,4] [1,] 0.00 0.00 0.00 0.00 [2,] 0.00 0.00 0.00 0.00 [3,] 0.00 0.00 0.00 0.00 [4,] 0.00 0.42 0.00 0.00 [5,] 0.00 0.00 0.00 1.25 [6,] 2.56 0.00 0.00 0.00 [7,] 0.00 0.00 0.00 0.00 [8,] 0.00 0.00 0.00 0.00 [9,] 0.00 0.00 0.00 0.00 [10,] 0.00 1.67 0.00 NA [11,] 0.00 0.00 0.00 NA [12,] 0.00 0.00 1.92 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/1xlf21257930021.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/rcomp/tmp/29q1y1257930021.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/rcomp/tmp/3vd6z1257930021.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/rcomp/tmp/4xbre1257930021.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] [1,] 105.860 105.860 105.860 105.860 105.860 105.860 108.420 108.420 108.420 [2,] 107.140 107.140 107.140 107.140 107.350 107.350 108.630 108.630 108.630 [3,] 109.465 109.465 109.465 109.465 109.675 109.675 109.675 109.675 109.675 [4,] 111.470 111.470 111.470 111.470 111.470 112.095 112.095 112.095 112.095 [5,] 112.430 112.430 112.430 112.430 112.430 113.680 113.680 113.680 113.680 [,10] [,11] [,12] [1,] 108.420 108.420 108.420 [2,] 108.630 109.465 109.465 [3,] 109.675 110.510 110.510 [4,] 112.095 110.510 110.510 [5,] 113.680 110.510 110.510 $n [1] 4 4 4 4 4 4 4 4 4 4 3 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 106.0443 106.0443 106.0443 106.0443 106.4202 105.9265 106.9377 106.9377 [2,] 112.8857 112.8857 112.8857 112.8857 112.9298 113.4236 112.4124 112.4124 [,9] [,10] [,11] [,12] [1,] 106.9377 106.9377 109.5567 109.5567 [2,] 112.4124 112.4124 111.4633 111.4633 $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(105.86, 107.14, 109.465, 111.47, 112.43, 105.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/53pnt1257930021.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.000 0.00 0 0 0 0.000 0 0.00 [2,] 0 0 0 0.00 0.000 0.00 0 0 0 0.000 0 0.00 [3,] 0 0 0 0.00 0.000 0.00 0 0 0 0.000 0 0.00 [4,] 0 0 0 0.21 0.625 1.28 0 0 0 0.835 0 0.96 [5,] 0 0 0 0.42 1.250 2.56 0 0 0 1.670 0 1.92 $n [1] 4 4 4 4 4 4 4 4 4 3 3 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 0 0 0 -0.1659 -0.49375 -1.0112 0 0 0 -0.7616982 0 [2,] 0 0 0 0.1659 0.49375 1.0112 0 0 0 0.7616982 0 [,12] [1,] -0.8757249 [2,] 0.8757249 $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(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/rcomp/tmp/69dvh1257930021.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] [1,] 105.86 108.42 110.51 112.430 [2,] 105.86 108.42 110.51 112.430 [3,] 107.14 108.84 110.51 113.055 [4,] 108.42 108.84 110.51 113.680 [5,] 108.42 108.84 110.51 113.680 $n [1] 12 12 12 10 $conf [,1] [,2] [,3] [,4] [1,] 105.9724 108.6484 110.51 112.4305 [2,] 108.3076 109.0316 110.51 113.6795 $out [1] 110.51 110.51 $group [1] 2 2 $names [1] "1" "2" "3" NA Warning message: In bxp(list(stats = c(105.86, 105.86, 107.14, 108.42, 108.42, 108.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7b9pr1257930021.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,] 109.3050 109.465 109.3850 [2,] 109.3050 109.465 109.3850 [3,] 109.7679 109.675 109.8431 [4,] 110.3625 109.675 110.0188 [5,] 110.3625 109.675 110.0188 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 109.2856 109.5792 109.5541 [2,] 110.2502 109.7708 110.1322 $out [1] 110.51 110.51 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(109.305, 109.305, 109.767916666667, 110.3625, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xlf21257930021.ps tmp/1xlf21257930021.png") > system("convert tmp/29q1y1257930021.ps tmp/29q1y1257930021.png") > system("convert tmp/3vd6z1257930021.ps tmp/3vd6z1257930021.png") > system("convert tmp/4xbre1257930021.ps tmp/4xbre1257930021.png") > system("convert tmp/53pnt1257930021.ps tmp/53pnt1257930021.png") > system("convert tmp/69dvh1257930021.ps tmp/69dvh1257930021.png") > system("convert tmp/7b9pr1257930021.ps tmp/7b9pr1257930021.png") > > > proc.time() user system elapsed 1.500 1.250 2.816