Skip to contents

Extract a model-based or cluster-robust covariance matrix

Usage

# S3 method for class 'mars'
vcov(
  object,
  type = c("model", "robust"),
  robust_type = c("selected", "CR0", "CR1", "CR1S"),
  vcov_method = NULL,
  ...
)

Arguments

object

A fitted mars object.

type

Either "model" or "robust".

robust_type

Optional stored robust variant: "selected", "CR0", "CR1", or "CR1S".

vcov_method

Optional model covariance override: "gls" or "observed". Defaults to the choice retained by the fit. Cannot be combined with robust type.

...

Unused.

References

Hedges, L. V., Tipton, E., and Johnson, M. C. (2010). Robust variance estimation in meta-regression with dependent effect size estimates. Research Synthesis Methods, 1(1), 39–65. doi:10.1002/jrsm.5 .