Augmented IPW (AIPW) estimator for regression parameters
estimate_beta_aipw.RdFits a regression model for Y using an augmented inverse probability
weighting (AIPW) estimator in the setting of an outcome-dependent
right-censored covariate. The outcome model is specified by model,
typically of the form y ~ AW + Z1 + ... + Zp, where AW = A - X.
Usage
estimate_beta_aipw(
data_yXZ,
model,
model_weights,
model_xz,
aw_var = "AW",
lbound = 0,
ubound = 50
)Arguments
- data_yXZ
A data frame containing at least:
y: outcome,A: auxiliary covariate used to formAW = A - X,W: observed covariateW = min(X, C),D: indicatorI(X <= C),columns for the covariates in
model,columns for the covariates in
model_weightsandmodel_xz.
- model
A
formulaspecifying the outcome regression model, e.g.y ~ AW + Zory ~ AW + Z1 + Z2.- model_weights
A
formulaspecifying the censoring model forC | (Y, Z, ...). Typically a right-hand-side only formula, such as~ y + Z, which is internally expanded toSurv(W, 1 - D) ~ y + Z.- model_xz
A
formulaspecifying the covariate structure forX | Z. Typically right-hand-side only, e.g.~ Z, meaninglog E[X | Z]depends on those covariates. Only the RHS is used.- aw_var
Character string giving the name of the exposure covariate in
modelthat equalsA - X(default"AW"). This must appear inmodeland indata_yXZ.- lbound, ubound
Numeric lower and upper bounds for the numerical integration over
Xin the augmentation term (defaults: 0 and 50).
Value
A list with components
- beta_est
A 1 x p matrix of estimated regression coefficients \(\hat \beta\).
- psi_est
Scalar, estimated residual standard deviation \(\hat \psi\).
Details
The AIPW estimator combines:
An IPW component based on a censoring model for
C | (Y, Z, ...)specified bymodel_weights.An augmentation component that integrates over the conditional distribution
X | Zspecified bygamma_xandmodel_xz.
The function solves the AIPW estimating equations for the regression parameters \(\beta\), treating the nuisance models as plug-in, and returns \(\hat \beta\) along with a plug-in estimate of the residual standard deviation \(\hat \psi\).