
Include reference group in regression output
Source:R/model_rating_table_deprecated.R
rating_factors2.RdLegacy interface. Prefer rating_table() for fitted models in the new
workflow, but this function remains available.
Usage
rating_factors2(
model,
model_data = NULL,
exposure = TRUE,
exposure_name = NULL,
colname = "estimate",
exponentiate = TRUE,
round_exposure = 0
)Arguments
- model
glm object produced by
glm()- model_data
Optional data.frame used to create glm object. If
NULL, the function tries to usemodel$data.- exposure
Logical or character. If
TRUE(default), exposure is added if it can be inferred from the model. IfFALSE, no exposure is added. If a character string is supplied, it is interpreted as the exposure column name.- exposure_name
Optional name for the exposure column in the output.
- colname
name of coefficient column
- exponentiate
logical indicating whether or not to exponentiate the coefficient estimates. Defaults to TRUE.
- round_exposure
number of digits for exposure (defaults to 0)