Learn R Programming

marginaleffects (version 0.4.1)

get_vcov: Get a named variance-covariance matrix from a model object (internal function)

Description

Get a named variance-covariance matrix from a model object (internal function)

Usage

get_vcov(model, ...)

# S3 method for default get_vcov(model, ...)

# S3 method for polr get_vcov(model, ...)

# S3 method for glimML get_vcov(model, ...)

# S3 method for multinom get_vcov(model, ...)

# S3 method for crch get_vcov(model, ...)

# S3 method for selection get_vcov(model, ...)

# S3 method for scam get_vcov(model, ...)

Arguments

model

Model object

...

Additional arguments are passed to the predict() method used to compute adjusted predictions. These arguments are particularly useful for mixed-effects or bayesian models (see the online vignettes on the marginaleffects website). Available arguments can vary from model to model, depending on the range of supported arguments by each modeling package. See the "Model-Specific Arguments" section of the ?marginaleffects document for a non-exhaustive list of available arguments.

Value

A named square matrix of variance and covariances. The names must match the coefficient names.