Split calendar period exposures that cross a policy anniversary into a pre-anniversary record and a post-anniversary record.
Parameters
Name
Type
Description
Default
expo
actxps.ExposedDF
An exposure data frame class with calendar-based exposure periods
required
Notes
The ExposedDF must have calendar year, quarter, month, or week exposure records. Calendar year exposures are created by passing cal_expo=True to ExposedDF (or alternatively, with the class methods ExposedDF.expose_cy(), ExposedDF.expose_cq(), ExposedDF.expose_cm(), and ExposedDF.expose_cw()).
After splitting, the resulting data will contain both calendar exposures and policy year exposures. These columns will be named ‘exposure_cal’ and ‘exposure_pol’, respectively. Calendar exposures will be in the original units passed to SplitExposedDF(). Policy exposures will always be expressed in years. Downstream functions like exp_stats() and exp_shiny() will require clarification as to which exposure basis should be used to summarize results.
After splitting, the column ‘pol_yr’ will contain policy years.
Examples
import actxps as xptoy_census = xp.load_toy_census()expo = xp.ExposedDF.expose_cy(toy_census, "2022-12-31")xp.SplitExposedDF(expo)