Summary method for class "hammel_weight_model"
Arguments
- object
A
hammel_weight_modelobject returned byweight_model().- ...
Additional arguments, currently unused.
- x
A
summary.hammel_weight_modelobject returned bysummary.hammel_weight_model().
Value
summary() returns an object of class summary.hammel_weight_model
containing:
- custom
Whether the model uses a custom function rather than a formula.
- formula
The weight formula, or
NULLfor a custom function.- coefficients
The named log hazard ratios of a formula model.
print() also shows each coefficient's hazard ratio, exp(coefficient).
Examples
partnered_mortality <- weight_model(~partnered, c(partnered = log(0.9)))
summary(partnered_mortality)
#>
#> ── Weight model ──
#>
#> • Formula: ~partnered
#> • Coefficients: partnered = -0.1054 (hazard ratio 0.9)
