Build an epidist_cure_model from a line list or prepare_cfr_data() output
Source: R/cure_model.R
as_epidist_cure_model.RdProduces the one-row-per-case data frame the model needs: y (a delay for
deaths and recoveries, the follow-up time for survivors), an outcome code,
and the primary (pwindow) and secondary (swindow) censoring widths. When
the input carries timed recoveries the result is flagged for the two-outcome
fit via a use_recovery attribute.
Arguments
- data
Either the list returned by
prepare_cfr_data()or a data frame already carryingy,outcome,pwindowandswindow.