Write a general function that takes any model, makes predictions from that model, and finds values of L (or whatever covariates are in the mode) which correspond to 50% retention probability. Predictions could be made on all unique combinations of covariates (including L) found in the original dataset to avoid extrapolating beyond the observed range.
Write a general function that takes any model, makes predictions from that model, and finds values of L (or whatever covariates are in the mode) which correspond to 50% retention probability. Predictions could be made on all unique combinations of covariates (including L) found in the original dataset to avoid extrapolating beyond the observed range.