View source: R/model_refinement.R
| restrict_coef | R Documentation |
restrict_coef() is deprecated as of version 0.9.0. Use
add_restriction() instead.
prepare_refinement(model) |> add_restriction(...) |> refit()
restrict_coef(
model,
restrictions,
allow_new_levels = TRUE,
allow_new_risk_factors = TRUE
)
model |
A fitted model object. |
restrictions |
data.frame with exactly two columns. |
allow_new_levels |
Logical. If |
allow_new_risk_factors |
Logical. Whether a fixed tariff factor that is
available in the model data but absent from the fitted model may be added.
The default is |
A rating_refinement object containing the restriction step. Call
refit() to apply the restriction and return the refined GLM. New code
should use prepare_refinement() followed by add_restriction() directly.
add_restriction(), prepare_refinement(), refit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.