Estimate Probability of Censoring by Two-Phase Sampling
Usage
est_samp(V, C_samp, fit_type = c("sl", "glm"), sl_learners = NULL)Arguments
- V
A
numericvector,matrix,data.frameor similar object giving the observed values of the covariates known to potentially inform the sampling mechanism.- C_samp
A
numericvector of observed values of the indicator for inclusion in the second-phase sample.- fit_type
A
characterindicating whether to perform the fit using GLMs or a Super Learner ensemble model. If use of Super Learner is desired, then the argumentsl_learnersmust be provided.- sl_learners
An sl3
Lrnr_slobject, a Super Learner ensemble or learner instantiated externally using sl3.