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(3.11,3.1,3.13,3.14,3.16,3.17,3.19,3.18,3.17,3.17,3.2,3.21,3.25,3.22,3.25,3.31,3.35,3.37,3.38,3.38,3.39,3.44,3.56,3.65,3.69,3.71,3.71,3.74,3.75,3.77,3.75,3.78,3.8,3.78,3.79,3.8,3.82,3.82,3.84,3.86,3.8,3.85,3.78,3.79,3.77,3.78,3.77,3.76,3.78,3.76,3.75,3.71,3.72,3.7,3.69,3.7,3.72,3.73,3.73,3.69) > 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,] 3.11 3.25 3.69 3.82 3.78 NA [2,] 3.10 3.22 3.71 3.82 3.76 NA [3,] 3.13 3.25 3.71 3.84 3.75 NA [4,] 3.14 3.31 3.74 3.86 3.71 NA [5,] 3.16 3.35 3.75 3.80 3.72 NA [6,] 3.17 3.37 3.77 3.85 3.70 NA [7,] 3.19 3.38 3.75 3.78 3.69 NA [8,] 3.18 3.38 3.78 3.79 3.70 NA [9,] 3.17 3.39 3.80 3.77 3.72 NA [10,] 3.17 3.44 3.78 3.78 3.73 NA [11,] 3.20 3.56 3.79 3.77 3.73 NA [12,] 3.21 3.65 3.80 3.76 3.69 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01 -0.03 0.02 0.00 -0.02 NA [2,] 0.03 0.03 0.00 0.02 -0.01 NA [3,] 0.01 0.06 0.03 0.02 -0.04 NA [4,] 0.02 0.04 0.01 -0.06 0.01 NA [5,] 0.01 0.02 0.02 0.05 -0.02 NA [6,] 0.02 0.01 -0.02 -0.07 -0.01 NA [7,] -0.01 0.00 0.03 0.01 0.01 NA [8,] -0.01 0.01 0.02 -0.02 0.02 NA [9,] 0.00 0.05 -0.02 0.01 0.01 NA [10,] 0.03 0.12 0.01 -0.01 0.00 NA [11,] 0.01 0.09 0.01 -0.01 -0.04 NA [12,] 0.04 0.04 0.02 0.02 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/1dd201319372087.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/2z2zj1319372087.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/34zks1319372087.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/4z0xk1319372087.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,] 3.11 3.10 3.13 3.14 3.16 3.17 3.19 3.18 3.17 3.17 3.56 3.65 [2,] 3.25 3.22 3.25 3.31 3.35 3.37 3.38 3.38 3.39 3.44 3.56 3.65 [3,] 3.69 3.71 3.71 3.71 3.72 3.70 3.69 3.70 3.72 3.73 3.73 3.69 [4,] 3.78 3.76 3.75 3.74 3.75 3.77 3.75 3.78 3.77 3.78 3.77 3.76 [5,] 3.82 3.82 3.84 3.86 3.80 3.85 3.78 3.79 3.80 3.78 3.79 3.80 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.315503 3.328437 3.356701 3.406163 3.437361 3.417361 3.428559 3.417361 [2,] 4.064497 4.091563 4.063299 4.013837 4.002639 3.982639 3.951441 3.982639 [,9] [,10] [,11] [,12] [1,] 3.451493 3.489757 3.581615 3.612274 [2,] 3.988507 3.970243 3.878385 3.767726 $out [1] 3.20 3.21 $group [1] 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3.11, 3.25, 3.69, 3.78, 3.82, 3.1, 3.22, 3.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5s3d81319372087.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.03 -0.01 0.01 0.01 0.01 -0.02 -0.01 -0.02 0.00 -0.01 -0.04 0.02 [2,] -0.02 0.00 0.01 0.01 0.01 -0.02 0.00 -0.01 0.00 0.00 -0.01 0.02 [3,] -0.01 0.02 0.02 0.01 0.02 -0.01 0.01 0.01 0.01 0.01 0.01 0.03 [4,] 0.00 0.03 0.03 0.02 0.02 0.01 0.01 0.02 0.01 0.03 0.01 0.04 [5,] 0.02 0.03 0.06 0.02 0.02 0.02 0.01 0.02 0.01 0.03 0.01 0.04 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.02413195 -0.001197924 0.00586805 0.002934025 0.01293403 -0.03119792 [2,] 0.00413195 0.041197924 0.03413195 0.017065975 0.02706597 0.01119792 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.002934025 -0.01119792 0.002934025 -0.01119792 -0.00413195 0.0142 [2,] 0.017065975 0.03119792 0.017065975 0.03119792 0.02413195 0.0458 $out [1] -0.04 0.04 -0.06 0.05 -0.02 -0.07 0.03 0.05 -0.02 0.12 0.09 $group [1] 3 4 4 5 5 6 7 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0299999999999998, -0.02, -0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/64tpt1319372087.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,] 3.100 3.220 3.690 3.760 3.69 NA [2,] 3.135 3.280 3.725 3.775 3.70 NA [3,] 3.170 3.375 3.760 3.795 3.72 NA [4,] 3.185 3.415 3.785 3.830 3.74 NA [5,] 3.210 3.560 3.800 3.860 3.78 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.147195 3.313426 3.732634 3.769914 3.701756 NA [2,] 3.192805 3.436574 3.787366 3.820086 3.738244 NA $out [1] 3.65 $group [1] 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(3.1, 3.135, 3.17, 3.185, 3.21, 3.22, 3.28, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/761u61319372087.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,] 3.522 3.690 3.4900 [2,] 3.544 3.695 3.5200 [3,] 3.562 3.710 3.5675 [4,] 3.576 3.720 3.5950 [5,] 3.622 3.730 3.7050 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.547405 3.698597 3.533292 [2,] 3.576595 3.721403 3.601708 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.522, 3.544, 3.562, 3.576, 3.622, 3.69, 3.695, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1dd201319372087.ps tmp/1dd201319372087.png",intern=TRUE)) character(0) > try(system("convert tmp/2z2zj1319372087.ps tmp/2z2zj1319372087.png",intern=TRUE)) character(0) > try(system("convert tmp/34zks1319372087.ps tmp/34zks1319372087.png",intern=TRUE)) character(0) > try(system("convert tmp/4z0xk1319372087.ps tmp/4z0xk1319372087.png",intern=TRUE)) character(0) > try(system("convert tmp/5s3d81319372087.ps tmp/5s3d81319372087.png",intern=TRUE)) character(0) > try(system("convert tmp/64tpt1319372087.ps tmp/64tpt1319372087.png",intern=TRUE)) character(0) > try(system("convert tmp/761u61319372087.ps tmp/761u61319372087.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.440 0.210 2.618