ID women that fit inclusion criteria of age and time period
filter_eligible_women.Rd
ID women that fit inclusion criteria of age and time period
Usage
filter_eligible_women(
.data,
.variables_to_keep,
.age_start,
.age_end,
.last_yr,
.presvcdate,
.svcend,
.claims_file
)
Arguments
- .data
MarketScan dataset
- .variables_to_keep
Variable names that should appear in the returned dataset
- .age_start
int, lower age boundary for inclusion
- .age_end
int, upper age boundary for inclusion
- .last_yr
int, study end year. Last year of full data on MarketScan dataset
- .presvcdate
POSIXct, start of study period minus a certain number of days to capture pregnancy start dates
- .svcend
POSIXct, end of study period
- .claims_file
chr, "I" for inpatient or "O" for outpatient