modelsummary (version 0.1.0)

extract_statistic_override: Allow users to override uncertainty estimates importFrom broom tidy

Description

Allow users to override uncertainty estimates importFrom broom tidy

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) numeric vectors with names equal to the names of your coefficient estimates.

statistic

string name of the statistic to include in parentheses below estimates. Must be either "conf.int", or one of the column names produced by the `broom::tidy` function. Typical values include: "std.error", "conf.int", "statistic", "p.value".

Value

a numeric vector of test statistics