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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ANALYSIS USING R 83set out in the familiar analysis of variance table. The assumptions made inderiving the F-tests are:• The observations are independent of each other,• The observations in each cell arise from a population having a normal distribution,and• The observations in each cell are from populations having the same variance.The multivariate analysis of variance, or MANOVA, is an extension of theunivariate analysis of variance <strong>to</strong> the situation where a set of variables aremeasured on each individual or object observed. For the data in Table 5.3there is a single fac<strong>to</strong>r, epoch, and four measurements taken on each skull; sowe have a one-way MANOVA design. The linear model used in this case isy ijh = µ h + γ jh + ε ijhwhere µ h is the overall mean for variable h, γ jh is the effect of the jth levelof the single fac<strong>to</strong>r on the hth variable, and ε ijh is a random error term. Thevec<strong>to</strong>r ε ⊤ ij = (ε ij1, ε ij2 , ...,ε ijq ) where q is the number of response variables(four in the skull example) is assumed <strong>to</strong> have a multivariate normal distributionwith null mean vec<strong>to</strong>r and covariance matrix, Σ, assumed <strong>to</strong> be thesame in each level of the grouping fac<strong>to</strong>r. The hypothesis of interest is thatthe population mean vec<strong>to</strong>rs for the different levels of the grouping fac<strong>to</strong>r arethe same.In the multivariate situation, when there are more than two levels of thegrouping fac<strong>to</strong>r, no single test statistic can be derived which is always the mostpowerful, for all types of departures from the null hypothesis of the equalityof mean vec<strong>to</strong>r. A number of different test statistics are available which maygive different results when applied <strong>to</strong> the same data set, although the finalconclusion is often the same. The principal test statistics for the multivariateanalysis of variance are Hotelling-Lawley trace, Wilks’ ratio of determinants,Roy’s greatest root, and the Pillai trace. Details are given in Morrison (2005).5.3 Analysis Using R5.3.1 Weight Gain in RatsBefore applying analysis of variance <strong>to</strong> the data in Table 5.1 we should try <strong>to</strong>summarise the main features of the data by calculating means and standarddeviations and by producing some hopefully informative graphs. The data isavailable in the data.frame weightgain. The following R code produces therequired summary statisticsR> data("weightgain", package = "HSAUR2")R> tapply(weightgain$weightgain,+ list(weightgain$source, weightgain$type), mean)© 2010 by Taylor and Francis Group, LLC

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

Saved successfully!

Ooh no, something went wrong!