bene_info.Rd
Add patient demographics to the analytic file
bene_info(
original_data,
std_data_root = wd$std_data_root,
filter_only_pt_65 = TRUE,
year
)
data name for the data you want to add the patient info on
data path to the membership info folder
TRUE: only keep patients ≥65 and ≤99; FLASE: no age limitation
select one year to process, e.g. 2007
Add dob, dod, gender and race
Limit the patient population to age 65-99