estimateQ | R Documentation |
An internal function called by the tmle
function to obtain an initial estimate of the Q
portion of the likelihood based on user-supplied matrix values for predicted values of (counterfactual outcomes) Q(0,W),Q(1,W)
, or a user-supplied regression formula, or based on a data-adaptively selected SuperLearner
fit. In the absence of user-supplied values, a user-supplied regression formula takes precedence over data-adaptive super-learning. The default is to return cross-validated predictions.
estimateQ(Y, Z, A, W, Delta, Q, Qbounds, Qform, maptoYstar, SL.library, cvQinit,
family, id, V, verbose, discreteSL, obsWeights)
Y |
continuous or binary outcome variable |
Z |
optional binary indicator for intermediate covariate for conrolled direct effect estimation |
A |
binary treatment indicator, |
W |
vector, matrix, or dataframe containing baseline covariates |
Delta |
indicator of missing outcome. |
Q |
3-column matrix |
Qbounds |
Bounds on predicted values for |
Qform |
regression formula of the form |
maptoYstar |
if |
SL.library |
specification of prediction algorithms, default is (‘SL.glm’, ‘SL.glmnet’, ‘tmle.SL.dbarts2’). In practice, including more prediction algorithms in the library improves results. |
cvQinit |
logical, whether or not to estimate cross-validated values for initial |
family |
family specification for regressions, generally ‘gaussian’ for continuous oucomes, ‘binomial’ for binary outcomes |
id |
subject identifier |
V |
Number of cross-validation folds for Super Learning |
verbose |
status message printed if set to |
discreteSL |
If true, returns discrete SL estimates, otherwise ensemble estimates. Ignored when SL is not used. |
obsWeights |
sampling weights |
Q |
|
Qfamily |
‘binomial’ for targeting with logistic fluctuation, ‘gaussian’ for linear fluctuation |
coef |
coefficients for each term in working model used for initial estimation of |
type |
type of estimation procedure |
Susan Gruber
tmle
,
estimateG
,
calcParameters
,
tmleMSM
,
calcSigma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.