| average_entity_factors | R Documentation |
Average indicated coverage values across entity records belonging to the same parent record.
average_entity_factors(
scored_entity_data,
group_col,
coverages,
output_prefix = "avg_entity_factor_"
)
scored_entity_data |
A data frame containing scored entity records and
columns named |
group_col |
A character string naming the column that identifies the parent or aggregation group. |
coverages |
A character vector of coverage names whose indicated values should be averaged. |
output_prefix |
A character string prepended to the generated output column names. |
A data frame with one row per parent group and one average entity factor column for each requested coverage.
rated_drivers <- data.frame(
policy_id = c("P1", "P1", "P2"),
indicated_BI = c(1.10, 0.90, 1.05)
)
average_entity_factors(
scored_entity_data = rated_drivers,
group_col = "policy_id",
coverages = "BI"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.