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.