Estimate the Censoring Mechanism
Arguments
- C_cens
A
numericvector of loss to follow-up indicators.- A
A
numericvector of observed exposure values.- W
A
numericmatrix of observed baseline covariate values.- samp_weights
A
numericvector of observation-level sampling weights, as produced by the internal procedure to estimate the two-phase sampling mechanismest_samp.- fit_type
A
characterindicating whether to use GLMs or Super Learner to fit the censoring mechanism. If option "glm" is selected, the argumentglm_formulamust NOT beNULL, instead containing a model formula (as perglm) as acharacter. If the option "sl" is selected, the argumentsl_learnersmust NOT beNULL; instead, an instantiated sl3Lrnr_slobject, specifying learners and a metalearner for the Super Learner fit, must be provided. Consult the documentation of sl3 for details.- glm_formula
A
charactergiving aformulafor fitting a (generalized) linear model viaglm.- sl_learners
Object containing a set of instantiated learners from the sl3, to be used in fitting an ensemble model.
- bound
numericgiving the lower limit of censoring mechanism estimates to be tolerated (default = 0.02). Estimates below this value are truncated to this or 1/n. Seebound_propensityfor details.