modelsummary (version 0.3.0)

extract_statistic_override: Allow users to override uncertainty estimates

Description

Allow users to override uncertainty estimates

Usage

extract_statistic_override(model, statistic_override, statistic = "std.error")

Arguments

model

object type with an available `tidy` method.

statistic_override

manually override the uncertainy estimates. This argument accepts three types of input:

  • a function or list of functions of length(models) which produce variance-covariance matrices with row and column names equal to the names of your coefficient estimates. For example, `R` supplies the `vcov` function, and the `sandwich` package supplies `vcovHC`, `vcovHAC`, etc.

  • a list of length(models) variance-covariance matrices with row and column names equal to the names of your coefficient estimates.

  • a list of length(models) vectors with names equal to the names of your coefficient estimates. Numeric vectors are formatted according to `fmt` and placed in brackets, character vectors printed as given.

statistic

string name of the statistic to include in parentheses

  • Typical values: "conf.int", "std.error", "statistic", "p.value"

  • Alternative values: any column name produced by `broom::tidy(model)`

Value

a numeric vector of test statistics