-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose_split
exposures different than expose_cy
when truncated
#46
Comments
MatthewCaseres
changed the title
May 31, 2024
expose_split
exposures different than expose_cy
exposures in last year with end_date
expose_split
exposures different than expose_cy
when truncated
Something similar happens with start dates as well: df1 <- toy_census %>% filter(pol_num == 1) %>% expose_cy(
start_date = "2011-11-1",
end_date = "2013-02-27",
target_status = "Surrender") %>%
select(pol_num, cal_yr, cal_yr_end, term_date, issue_date, exposure, status)
df2 <-df1 %>%
expose_split() %>%
select(pol_num, cal_yr, cal_yr_end, issue_date, exposure_cal, status) gives
|
Thanks for pointing this out. It's going to be patched in release 1.5.0. Both your examples above are now working as intended in that version. I also added new tests to the package to ensure that start / end dates are respected. Example 1
Example 2
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output data
pol_num 2 has similar issues, issue is not specific to issue_date on new years
The text was updated successfully, but these errors were encountered: