Estimate Probability of Censoring by Two-Phase Sampling
est_samp(V, C_samp, fit_type = c("sl", "glm"), sl_learners = NULL)
A numeric
vector, matrix
, data.frame
or
similar object giving the observed values of the covariates known to
potentially inform the sampling mechanism.
A numeric
vector of observed values of the indicator
for inclusion in the second-phase sample.
A character
indicating whether to perform the fit
using GLMs or a Super Learner ensemble model. If use of Super Learner is
desired, then the argument sl_learners
must be provided.
An sl3 Lrnr_sl
object, a Super Learner
ensemble or learner instantiated externally using sl3.
A numeric
vector of the estimated sampling mechanism.
Compute estimates of the sampling probability for inclusion in the the second-phase via the two-phase sampling mechanism. These estimates are used for the creation of inverse probability weights.