Counts the number of distinct regions an individual was placed in
within one fiscal year (union of region_at_time_of_placement
and region_most_recent_placement).
Usage
morie_otis_volat(
df,
id_col = "unique_individual_id",
year_col = "end_fiscal_year",
regA_col = "region_at_time_of_placement",
regB_col = "region_most_recent_placement"
)Examples
df <- morie_synth_otis("b01", n = 150L, seed = 8L)
res <- try(morie_otis_volat(df))
