dta_prepped <- prep_data(hosp,
cohort_var = "cohort",
cohort_ref = "0",
time_var = "yr",
time_ref = "2010")
head(dta_prepped)
Run the code above in your browser using DataLab