tidymodels / censored

Parsnip wrappers for survival models
https://censored.tidymodels.org/
Other
123 stars 12 forks source link

Encapsulate dealing with "all missings" into a function #222

Open hfrick opened 2 years ago

hfrick commented 2 years ago

The pattern to check if all the observations in new_data have missing values and (if necessary) return an NA-filled tibble early should probably be its own function.

Example: https://github.com/tidymodels/censored/blob/1a891a74be4124da28bcb1ba65fe5997b765bea4/R/proportional_hazards-survival.R#L132-L137