{
  "name": "MASS functions used in research: key arguments and returned components",
  "description": "Compiled from the MASS reference manual on CRAN (version 7.3-66): for each function commonly used in research, its documented default or choice of method, the components it returns and the example dataset the manual uses.",
  "page": "https://casrai.org/guides/mass-r-package",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-15T11:05:37Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "What it fits or does",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented default or choices",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented returned components",
      "unit": "",
      "description": ""
    },
    {
      "name": "Manual example data",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "glm.nb",
      "What it fits or does": "Negative binomial GLM that also estimates theta",
      "Documented default or choices": "link = log; method = glm.fit",
      "Documented returned components": "theta, SE.theta, twologlik (negbin object inheriting glm and lm)",
      "Manual example data": "quine"
    },
    {
      "Function": "polr",
      "What it fits or does": "Logistic or probit regression for an ordered factor response",
      "Documented default or choices": "method = logistic (proportional odds); also probit, loglog, cloglog, cauchit; Hess = FALSE",
      "Documented returned components": "coefficients, zeta, deviance, fitted.values, convergence, niter, Hessian (if Hess is true)",
      "Manual example data": "housing"
    },
    {
      "Function": "rlm",
      "What it fits or does": "Robust linear regression by iterated re-weighted least squares",
      "Documented default or choices": "method = M (or MM); psi = psi.huber; wt.method = inv.var",
      "Documented returned components": "lm components plus s, w, psi, conv, converged, wresid",
      "Manual example data": "stackloss"
    },
    {
      "Function": "lda",
      "What it fits or does": "Linear discriminant analysis",
      "Documented default or choices": "prior = proportions; tol = 1e-4; CV = FALSE",
      "Documented returned components": "prior, means, scaling, svd, N (class and posterior if CV = TRUE)",
      "Manual example data": "iris (as Iris)"
    },
    {
      "Function": "stepAIC",
      "What it fits or does": "Stepwise model selection by AIC",
      "Documented default or choices": "direction = both (backward if scope missing); k = 2; trace = 1; steps = 1000",
      "Documented returned components": "anova, keep (if keep= supplied)",
      "Manual example data": "birthwt, quine"
    }
  ],
  "sources": [
    {
      "title": "MASS reference manual (CRAN)",
      "url": "https://cran.r-project.org/web/packages/MASS/refman/MASS.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "MASS package page (CRAN)",
      "url": "https://cran.r-project.org/web/packages/MASS/index.html",
      "accessed": "2026-11-15"
    }
  ]
}