11.07.2015 Views

Preface to First Edition - lib

Preface to First Edition - lib

Preface to First Edition - lib

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

260 SIMULTANEOUS INFERENCE AND MULTIPLE COMPARISONSlong - shrt == 0 1.18875 -0.04516 2.42266long - intr == 0 0.75460 -0.33134 1.84054R> summary(amod_glht)Simultaneous Tests for General Linear HypothesesMultiple Comparisons of Means: Tukey ContrastsFit: aov(formula = elevel ~ alength, data = alpha)Linear Hypotheses:Estimate Std. Error t value Pr(>|t|)intr - shrt == 0 0.4342 0.3836 1.132 0.4924long - shrt == 0 1.1888 0.5203 2.285 0.0615long - intr == 0 0.7546 0.4579 1.648 0.2270(Adjusted p values reported -- single-step method)Because of the variance heterogeneity that can be observed in Figure 14.1,one might be concerned with the validity of the above results stating thatthere is no difference between any combination of the three allele lengths.A sandwich estima<strong>to</strong>r might be more appropriate in this situation, and thevcov argument can be used <strong>to</strong> specify a function <strong>to</strong> compute some alternativecovariance estima<strong>to</strong>r as follows:R> amod_glht_sw summary(amod_glht_sw)Simultaneous Tests for General Linear HypothesesMultiple Comparisons of Means: Tukey ContrastsFit: aov(formula = elevel ~ alength, data = alpha)Linear Hypotheses:Estimate Std. Error t value Pr(>|t|)intr - shrt == 0 0.4342 0.4239 1.024 0.5594long - shrt == 0 1.1888 0.4432 2.682 0.0227long - intr == 0 0.7546 0.3184 2.370 0.0501(Adjusted p values reported -- single-step method)We use the sandwich function from package sandwich (Zeileis, 2004, 2006)which provides us with a heteroscedasticity-consistent estima<strong>to</strong>r of the covariancematrix. This result is more in line with previously published findings forthis study obtained from non-parametric test procedures such as the Kruskal-Wallis test. A comparison of the simultaneous confidence intervals calculatedbased on the ordinary and sandwich estima<strong>to</strong>r is given in Figure 14.2.It should be noted that this data set is heavily unbalanced; see Figure 14.1,© 2010 by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!