R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(4.95,4.95,4.96,4.93,4.95,4.96,4.97,5.01,5.04,5.07,5.07,5.08,5.07,5.08,5.09,5.09,5.14,5.17,5.17,5.18,5.18,5.18,5.17,5.17,5.18,5.18,5.26,5.26,5.26,5.28,5.28,5.31,5.37,5.42,5.43,5.43,5.44,5.5,5.52,5.55,5.55,5.55,5.55,5.55,5.55,5.55,5.55,5.56,5.57,5.59,5.69,5.73,5.76,5.77,5.77,5.79,5.79,5.79,5.79,5.79) > 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,] 4.95 5.07 5.18 5.44 5.57 NA [2,] 4.95 5.08 5.18 5.50 5.59 NA [3,] 4.96 5.09 5.26 5.52 5.69 NA [4,] 4.93 5.09 5.26 5.55 5.73 NA [5,] 4.95 5.14 5.26 5.55 5.76 NA [6,] 4.96 5.17 5.28 5.55 5.77 NA [7,] 4.97 5.17 5.28 5.55 5.77 NA [8,] 5.01 5.18 5.31 5.55 5.79 NA [9,] 5.04 5.18 5.37 5.55 5.79 NA [10,] 5.07 5.18 5.42 5.55 5.79 NA [11,] 5.07 5.17 5.43 5.55 5.79 NA [12,] 5.08 5.17 5.43 5.56 5.79 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.00 0.01 0.00 0.06 0.02 NA [2,] 0.01 0.01 0.08 0.02 0.10 NA [3,] -0.03 0.00 0.00 0.03 0.04 NA [4,] 0.02 0.05 0.00 0.00 0.03 NA [5,] 0.01 0.03 0.02 0.00 0.01 NA [6,] 0.01 0.00 0.00 0.00 0.00 NA [7,] 0.04 0.01 0.03 0.00 0.02 NA [8,] 0.03 0.00 0.06 0.00 0.00 NA [9,] 0.03 0.00 0.05 0.00 0.00 NA [10,] 0.00 -0.01 0.01 0.00 0.00 NA [11,] 0.01 0.00 0.00 0.01 0.00 NA [12,] -0.01 0.01 0.01 0.01 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/wessaorg/rcomp/tmp/1gdrj1331762184.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/wessaorg/rcomp/tmp/2z06r1331762184.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/wessaorg/rcomp/tmp/3q2u91331762184.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/wessaorg/rcomp/tmp/4ab5d1331762184.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,] 4.95 4.95 4.96 4.93 4.95 4.96 4.97 5.01 5.04 5.07 5.07 5.08 [2,] 5.07 5.08 5.09 5.09 5.14 5.17 5.17 5.18 5.18 5.18 5.17 5.17 [3,] 5.18 5.18 5.26 5.26 5.26 5.28 5.28 5.31 5.37 5.42 5.43 5.43 [4,] 5.44 5.50 5.52 5.55 5.55 5.55 5.55 5.55 5.55 5.55 5.55 5.56 [5,] 5.57 5.59 5.69 5.73 5.76 5.77 5.77 5.79 5.79 5.79 5.79 5.79 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.918559 4.883229 4.956163 4.934965 4.970295 5.011493 5.011493 5.048559 [2,] 5.441441 5.476771 5.563837 5.585035 5.549705 5.548507 5.548507 5.571441 [,9] [,10] [,11] [,12] [1,] 5.108559 5.158559 5.161493 5.154427 [2,] 5.631441 5.681441 5.698507 5.705573 $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.95, 5.07, 5.18, 5.44, 5.57, 4.95, 5.08, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5o94k1331762184.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.00 0.01 -0.03 0.00 0.00 0 0.00 0.00 0.00 0 0.00 -0.01 [2,] 0.00 0.01 0.00 0.00 0.01 0 0.01 0.00 0.00 0 0.00 0.00 [3,] 0.01 0.02 0.00 0.02 0.01 0 0.02 0.00 0.00 0 0.00 0.01 [4,] 0.02 0.08 0.03 0.03 0.02 0 0.03 0.03 0.03 0 0.01 0.01 [5,] 0.02 0.10 0.04 0.05 0.03 0 0.04 0.06 0.05 0 0.01 0.01 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.00413195 -0.02946182 -0.02119792 -0.001197924 0.002934025 0 [2,] 0.02413195 0.06946182 0.02119792 0.041197924 0.017065975 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.00586805 -0.02119792 -0.02119792 0 -0.007065975 0.0021 [2,] 0.03413195 0.02119792 0.02119792 0 0.007065975 0.0179 $out [1] 0.06 0.01 -0.01 0.01 $group [1] 1 6 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0.00999999999999979, 0.0199999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6sjy51331762184.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,] 4.930 5.070 5.180 5.520 5.69 NA [2,] 4.950 5.090 5.260 5.535 5.71 NA [3,] 4.965 5.170 5.280 5.550 5.77 NA [4,] 5.055 5.175 5.395 5.550 5.79 NA [5,] 5.080 5.180 5.430 5.560 5.79 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4.917109 5.131231 5.218426 5.543158 5.733511 NA [2,] 5.012891 5.208769 5.341574 5.556842 5.806489 NA $out [1] 5.44 5.50 5.57 5.59 $group [1] 4 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(4.93, 4.95, 4.965, 5.055, 5.08, 5.07, 5.09, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/71lcr1331762184.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,] 5.242 5.180 5.2550 [2,] 5.308 5.260 5.3125 [3,] 5.347 5.280 5.3600 [4,] 5.394 5.395 5.3650 [5,] 5.406 5.430 5.3650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.307775 5.218426 5.336054 [2,] 5.386225 5.341574 5.383946 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(5.242, 5.308, 5.347, 5.394, 5.406, 5.18, 5.26, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1gdrj1331762184.ps tmp/1gdrj1331762184.png",intern=TRUE)) character(0) > try(system("convert tmp/2z06r1331762184.ps tmp/2z06r1331762184.png",intern=TRUE)) character(0) > try(system("convert tmp/3q2u91331762184.ps tmp/3q2u91331762184.png",intern=TRUE)) character(0) > try(system("convert tmp/4ab5d1331762184.ps tmp/4ab5d1331762184.png",intern=TRUE)) character(0) > try(system("convert tmp/5o94k1331762184.ps tmp/5o94k1331762184.png",intern=TRUE)) character(0) > try(system("convert tmp/6sjy51331762184.ps tmp/6sjy51331762184.png",intern=TRUE)) character(0) > try(system("convert tmp/71lcr1331762184.ps tmp/71lcr1331762184.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.719 0.462 2.183