R/synthetic-fcip-core.R
identify_pp_units.RdThe prevented-planting specialization of the unit-to-record matching
engine (see identify_cause_of_loss() for the general attribution
primitive). Pools are restricted to those covered by the
prevented-planting provision (pp_adm) and containing at least one
Prevented stage; the cascade then resolves each claimed unit by exact
financial match, sole claimant, or sole peril, with the remainder
unresolved.
Unit-level Summary of Business (modern rfcip names).
Cause-of-loss records matched to the Summary of Business.
Stage-code listing (stage_code,
stage_code_description); joined for completeness of the taxonomy.
Prevented-planting actuarial records; its identifier columns define the pools where the provision exists.
Insurance plan codes retained.
Optional commodity codes to retain; NULL keeps all crops
present in pp_adm.
Drop catastrophic coverage.
Prorate unresolved pools by residual indemnity shares.
Regular expression identifying prevented-planting stages
in stage_code_description.
Named character vector mapping buy-up stage codes to election labels ("05", "10"); Prevented stages not in the map are basic.
A data.table with the filtered sobtpu rows plus pp_status,
pp_status_label, is_pp, pp_share_acres, pp_05pct_buy_up_share,
pp_10pct_buy_up_share, and (if prorate) pp_share_indem.
pp_status records HOW a unit was resolved (see pp_status_labels);
is_pp records the verdict (TRUE PP, FALSE other peril, NA
unresolved). pp_share_acres is the pool-level share of determined acres
in Prevented stages. When prorate = TRUE, pp_share_indem carries the
unit's PP indemnity share (verdict for resolved units, pool prorate for
unresolved). Buy-up elections are recovered from the stage codes in
buyup_map (defaults: PF = 5 percent, PT = 10 percent):
pp_05pct_buy_up_share and pp_10pct_buy_up_share follow the same
resolution logic, and nest inside pp_share_indem so the basic-only share
is recoverable by subtraction.
Other synthetic-fcip-core:
assign_ri_grids(),
attach_peril_probabilities(),
build_agent_panel(),
build_peril_probabilities(),
col_status_labels,
identify_cause_of_loss(),
pp_status_labels