Aggregates scores produced by fiscal_health_score() using a
fiscal_weights() specification.
Usage
fiscal_health_index(
data,
weights,
score_prefix = "fh_",
index_name = "fiscal_health",
coverage_name = paste0(index_name, "_coverage"),
append = TRUE,
overwrite = FALSE
)Arguments
- data
A data frame, normally returned by
fiscal_health_score().- weights
A
fiscal_weightsobject.- score_prefix
Prefix used on the component score columns.
- index_name
Name of the composite index column.
- coverage_name
Name of its weighted-coverage column.
- append
If
TRUE, append the index todata; otherwise return only the index and coverage columns.- overwrite
Allow replacement of existing output columns.