Sandwich variance estimator for the AIPW estimator
var_beta_aipw.RdComputes a plug-in sandwich variance estimator for the AIPW regression
estimator under outcome-dependent right-censoring of a covariate. The
outcome model is specified by model, typically of the form
y ~ AW + Z1 + ... + Zp, where AW = A - X.
Arguments
- data_yXZ
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),all covariates appearing in
model,all covariates appearing in
model_weightsandmodel_xz.
- theta
Numeric vector
c(beta, psi)from the AIPW estimator, wherebetahas length equal to the number of columns inmodel.matrix(model, data_yXZ)andpsiis the residual standard deviation.- lbound, ubound
Numeric lower and upper bounds for the numerical integration over
Xin the augmentation term (defaults: 0, 50).
Value
A list with components
- beta_est
Estimated regression coefficients \(\beta\).
- psi_est
Estimated residual standard deviation \(\psi\).
- se_beta
Sandwich standard errors for \(\beta\).
Details
The AIPW estimator combines:
an IPW component based on a censoring model for
C | (Y, Z, ...)specified bymodel_weights, andan augmentation component based on an AFT model for
X | Zspecified bygamma_xandmodel_xz.
This function takes the estimated parameter vector theta = c(beta, psi)
from estimate_beta_aipw_est and computes a sandwich variance
for \(\beta\), treating the nuisance model parameters as plug-in.