modelsummary (version 0.1.0)

statistic_override_vector: Use the statistic_override vector to extract std.error/p.value/statistic

Description

Use the statistic_override vector to extract std.error/p.value/statistic

Usage

statistic_override_vector(model, statistic_override, statistic)

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

tibble