Hypothesis Tests for Multivariate Linear Models Using the car Package

The multivariate linear model is Y = X B + E (n×m) (n× p)( p×m) (n×m) The multivariate linear model can be fit with the lm function in R, where the left-hand side of the model comprises a matrix of response variables, and the right-hand side is specified exactly as for a univariate linear model (i.e., with a single response variable). This paper explains how to use the Anova and linearHypothesis functions in the car package to perform convenient hypothesis tests for parameters in multivariate linear models, including models for repeated-measures data.

John Fox , Michael Friendly , Sanford Weisberg
2013-06-03

CRAN packages used

car, lme4, nlme, survival, nnet, MASS, survey, heplots

CRAN Task Views implied by cited packages

SocialSciences, Econometrics, Environmetrics, OfficialStatistics, Psychometrics, Finance, Multivariate, Pharmacokinetics, SpatioTemporal, Survival, Bayesian, ChemPhys, ClinicalTrials, Distributions, MachineLearning, NumericalMathematics, Robust, Spatial

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Fox, et al., "Hypothesis Tests for Multivariate Linear Models Using the car Package", The R Journal, 2013

BibTeX citation

@article{RJ-2013-004,
  author = {Fox, John and Friendly, Michael and Weisberg, Sanford},
  title = {Hypothesis Tests for Multivariate Linear Models Using the car Package},
  journal = {The R Journal},
  year = {2013},
  note = {https://doi.org/10.32614/RJ-2013-004},
  doi = {10.32614/RJ-2013-004},
  volume = {5},
  issue = {1},
  issn = {2073-4859},
  pages = {39-52}
}