Skip to contents

Builds or consumes validated social bonus variables and estimates key bonus indicators through enemdu_indicator_estimate(). This function is the preferred social-bonus KPI interface after the p75/p76 and p77/p78 contract.

Usage

enemdu_kpi_social_bonuses(
  data,
  group_vars = NULL,
  build_if_missing = TRUE,
  registry = enemdu_indicator_registry(),
  ...
)

Arguments

data

A data frame.

group_vars

Optional grouping variables.

build_if_missing

Logical. If TRUE, calls enemdu_build_optional_bonuses() when validated social bonus variables are missing.

registry

Indicator registry.

...

Additional arguments passed to enemdu_indicator_estimate().

Value

A tibble of social bonus KPI estimates.