Typically not called directly by the user. Function for modeling the two-stage missingness mechanism and evaluating conditional probabilities for each observation
estimatePi(
Y,
A,
W,
condSetNames,
W.Q,
Delta.W,
V.msm = NULL,
piform,
pi.SL.library,
id,
V,
discreteSL,
verbose,
pi = NULL,
obsWeights = rep(1, nrow(W))
)list containing the predicted probabilities, estimation method coefficients in parametric regression model (if piform supplied), indicator of whether discrete or ensemble SL was used.
outcome
binary treatment indicator
covariate matrix observed on everyone
Variables to include as predictors of missingness
in W.stage2, any combination of Y, A, and either W
(for all covariates in W) or individual covariate names in W
additional covariates based on preliminary outcome regression
binary indicator of missing second stage covariates
optional additional covariates to condition on beyond W
parametric regression formula for estimating pi
super learner library for estimating pi
Identifier of independent units of observation, e.g., clusters
number of cross validation folds for estimating pi
using super learner
Use discrete super learning when TRUE, otherwise
ensemble super learning
When TRUE prints informational messages
optional vector of user-specified probabilities
optional weights for evaluating pi