{
  "name": "Functions for multivariate linear models in R: package, output and test options",
  "description": "Compares the R functions used to fit and test a multivariate linear model (matrix response): the package each belongs to, what each returns and its documented default or options. Compiled by CASRAI Editorial from the R stats manual pages and the car package reference manual; every cell is taken from those pages.",
  "page": "https://casrai.org/guides/multivariate-regression-in-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T06:10:59Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Package",
      "unit": "",
      "description": ""
    },
    {
      "name": "What it returns or tests",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented default or options",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "lm()",
      "Package": "stats",
      "What it returns or tests": "Separate least-squares fit to each column of a matrix response; class c(\"mlm\",\"lm\")",
      "Documented default or options": "method = \"qr\"; formula left side is a matrix, e.g. cbind(y1, y2)"
    },
    {
      "Function": "anova() on an mlm",
      "Package": "stats",
      "What it returns or tests": "Joint tests of terms or of nested models across all responses",
      "Documented default or options": "test = Pillai (default); Wilks, Hotelling-Lawley, Roy, Spherical"
    },
    {
      "Function": "Anova() on an mlm",
      "Package": "car",
      "What it returns or tests": "Type II or Type III joint tests for each term",
      "Documented default or options": "type = II (first listed); test.statistic = Pillai (default); Wilks, Hotelling-Lawley, Roy"
    },
    {
      "Function": "Manova()",
      "Package": "car",
      "What it returns or tests": "Essentially a synonym for Anova() for multivariate linear models",
      "Documented default or options": "Same arguments as Anova()"
    },
    {
      "Function": "SSD()",
      "Package": "stats",
      "What it returns or tests": "Residual sums of squares and products matrix, degrees of freedom and call",
      "Documented default or options": "Takes an mlm object"
    },
    {
      "Function": "estVar()",
      "Package": "stats",
      "What it returns or tests": "Matrix of estimated variances and covariances",
      "Documented default or options": "Takes an mlm or SSD object"
    }
  ],
  "sources": [
    {
      "title": "R documentation: lm",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/lm.html",
      "accessed": "2026-11-20"
    },
    {
      "title": "R documentation: anova.mlm",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/anova.mlm.html",
      "accessed": "2026-11-20"
    },
    {
      "title": "R documentation: SSD and estVar",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/SSD.html",
      "accessed": "2026-11-20"
    },
    {
      "title": "CRAN: car reference manual",
      "url": "https://cran.r-project.org/web/packages/car/refman/car.html",
      "accessed": "2026-11-20"
    }
  ]
}