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(0.81,0.81,0.81,0.79,0.78,0.78,0.77,0.78,0.77,0.78,0.79,0.79,0.79,0.79,0.79,0.8,0.8,0.8,0.8,0.81,0.8,0.82,0.85,0.85,0.86,0.85,0.83,0.81,0.82,0.82,0.78,0.78,0.73,0.68,0.65,0.62,0.6,0.6,0.59,0.6,0.6,0.6,0.59,0.58,0.56,0.55,0.54,0.55,0.55,0.54,0.54,0.54,0.53,0.53,0.53,0.53) > 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] 56 > (np <- floor(n / par1)) [1] 4 > 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 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 0.81 0.79 0.86 0.60 0.55 [2,] 0.81 0.79 0.85 0.60 0.54 [3,] 0.81 0.79 0.83 0.59 0.54 [4,] 0.79 0.80 0.81 0.60 0.54 [5,] 0.78 0.80 0.82 0.60 0.53 [6,] 0.78 0.80 0.82 0.60 0.53 [7,] 0.77 0.80 0.78 0.59 0.53 [8,] 0.78 0.81 0.78 0.58 0.53 [9,] 0.77 0.80 0.73 0.56 NA [10,] 0.78 0.82 0.68 0.55 NA [11,] 0.79 0.85 0.65 0.54 NA [12,] 0.79 0.85 0.62 0.55 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 0.00 0.00 -0.01 0.00 -0.01 [2,] 0.00 0.00 -0.02 -0.01 0.00 [3,] -0.02 0.01 -0.02 0.01 0.00 [4,] -0.01 0.00 0.01 0.00 -0.01 [5,] 0.00 0.00 0.00 0.00 0.00 [6,] -0.01 0.00 -0.04 -0.01 0.00 [7,] 0.01 0.01 0.00 -0.01 0.00 [8,] -0.01 -0.01 -0.05 -0.02 NA [9,] 0.01 0.02 -0.05 -0.01 NA [10,] 0.01 0.03 -0.03 -0.01 NA [11,] 0.00 0.00 -0.03 0.01 NA [12,] 0.00 0.01 -0.02 0.00 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/1d2r61291369070.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/html/rcomp/tmp/26bq81291369070.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/html/rcomp/tmp/36bq81291369070.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/html/rcomp/tmp/4z2pu1291369070.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,] 0.55 0.54 0.54 0.54 0.53 0.53 0.53 0.53 0.560 0.550 0.540 0.550 [2,] 0.60 0.60 0.59 0.60 0.60 0.60 0.59 0.58 0.645 0.615 0.595 0.585 [3,] 0.79 0.79 0.79 0.79 0.78 0.78 0.77 0.78 0.750 0.730 0.720 0.705 [4,] 0.81 0.81 0.81 0.80 0.80 0.80 0.78 0.78 0.785 0.800 0.820 0.820 [5,] 0.86 0.85 0.83 0.81 0.82 0.82 0.80 0.81 0.800 0.820 0.850 0.850 $n [1] 5 5 5 5 5 5 5 5 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6416145 0.6416145 0.6345486 0.6486805 0.6386805 0.6386805 0.6357465 [2,] 0.9383855 0.9383855 0.9454514 0.9313195 0.9213195 0.9213195 0.9042535 [,8] [,9] [,10] [,11] [,12] [1,] 0.6386805 0.6394 0.58385 0.54225 0.51935 [2,] 0.9213195 0.8606 0.87615 0.89775 0.89065 $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.55, 0.6, 0.79, 0.81, 0.86, 0.54, 0.6, 0.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5z2pu1291369070.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.01 -0.02 -0.02 -0.01 0 -0.01 -0.01 -0.050 -0.050 -0.03 -0.030 -0.020 [2,] -0.01 -0.01 -0.02 -0.01 0 -0.01 0.00 -0.035 -0.030 -0.02 -0.015 -0.010 [3,] 0.00 0.00 0.00 0.00 0 -0.01 0.00 -0.015 0.000 0.00 0.000 0.000 [4,] 0.00 0.00 0.01 0.00 0 0.00 0.01 -0.010 0.015 0.02 0.005 0.005 [5,] 0.00 0.00 0.01 0.01 0 0.00 0.01 -0.010 0.020 0.03 0.010 0.010 $n [1] 5 5 5 5 5 5 5 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.007065975 -0.007065975 -0.02119792 -0.007065975 0 -0.017065975 [2,] 0.007065975 0.007065975 0.02119792 0.007065975 0 -0.002934025 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.007065975 -0.03475 -0.03555 -0.0316 -0.0158 -0.01185 [2,] 0.007065975 0.00475 0.03555 0.0316 0.0158 0.01185 $out [1] -0.04 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, -0.01, 0, 0, 0, -0.02, -0.01, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6z2pu1291369070.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] [1,] 0.770 0.790 0.620 0.540 0.530 [2,] 0.780 0.795 0.705 0.555 0.530 [3,] 0.785 0.800 0.795 0.590 0.535 [4,] 0.800 0.815 0.825 0.600 0.540 [5,] 0.810 0.820 0.860 0.600 0.550 $n [1] 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [1,] 0.7758779 0.7908779 0.7402672 0.5694752 0.5294139 [2,] 0.7941221 0.8091221 0.8497328 0.6105248 0.5405861 $out [1] 0.85 0.85 $group [1] 2 2 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(0.77, 0.78, 0.785, 0.8, 0.81, 0.79, 0.795, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/79u7x1291369070.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,] 0.69400 0.705 0.700000 [2,] 0.70425 0.740 0.700000 [3,] 0.70750 0.780 0.701875 [4,] 0.71350 0.790 0.709375 [5,] 0.72200 0.790 0.718750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.703281 0.7571947 0.697599 [2,] 0.711719 0.8028053 0.706151 $out [1] 0.6850 0.6800 0.7325 $group [1] 3 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.694, 0.70425, 0.7075, 0.7135, 0.722, 0.705, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d2r61291369070.ps tmp/1d2r61291369070.png",intern=TRUE)) character(0) > try(system("convert tmp/26bq81291369070.ps tmp/26bq81291369070.png",intern=TRUE)) character(0) > try(system("convert tmp/36bq81291369070.ps tmp/36bq81291369070.png",intern=TRUE)) character(0) > try(system("convert tmp/4z2pu1291369070.ps tmp/4z2pu1291369070.png",intern=TRUE)) character(0) > try(system("convert tmp/5z2pu1291369070.ps tmp/5z2pu1291369070.png",intern=TRUE)) character(0) > try(system("convert tmp/6z2pu1291369070.ps tmp/6z2pu1291369070.png",intern=TRUE)) character(0) > try(system("convert tmp/79u7x1291369070.ps tmp/79u7x1291369070.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.223 0.990 2.754