| apply_caps | R Documentation |
Limit indicated premiums so that they do not increase or decrease by more than specified percentages relative to prior premiums.
apply_caps(
rating_data,
prior_data,
by,
coverages,
max_increase = NULL,
max_decrease = NULL
)
rating_data |
A data frame containing indicated premium columns named
|
prior_data |
A data frame containing prior premium columns named
|
by |
A character vector naming the column or columns used to join
|
coverages |
A character vector naming the coverages to cap. |
max_increase |
An optional nonnegative numeric value giving the maximum
permitted proportional increase. For example, |
max_decrease |
An optional numeric value giving the maximum permitted proportional decrease. Its absolute value is used. |
A merged data frame with one capped_<coverage> column for each
requested coverage.
indicated <- data.frame(
policy_id = c("P1", "P2"),
indicated_BI = c(125, 80)
)
prior <- data.frame(
policy_id = c("P1", "P2"),
prior_BI = c(100, 100)
)
apply_caps(
rating_data = indicated,
prior_data = prior,
by = "policy_id",
coverages = "BI",
max_increase = 0.10,
max_decrease = 0.15
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.