View source: R/sandwich_variance.R
| compute_sandwich_se | R Documentation |
Computes the plug-in sandwich variance for the smoothed penalized Cox M-estimator. The Cox information and score residuals are evaluated at the penalized parameter estimate, and the penalty curvature is added to the (delta, delta) element of the bread. First-stage estimates are held fixed; this does not establish conditional or unconditional variance validity. Clipped curvature modifies the variance calculation without changing the fitted coefficients.
compute_sandwich_se(dat, delta_hat, theta_hat, beta_hat, pen_curv, xnames)
dat |
A data frame with columns |
delta_hat |
Penalized estimate of the drift parameter. |
theta_hat |
Penalized estimate of the treatment effect. |
beta_hat |
Penalized estimate of the covariate coefficient vector. |
pen_curv |
Penalty curvature |
xnames |
Character vector of covariate names. |
A list with components:
se_sandSandwich standard error for theta_hat.
Var_sandFull sandwich variance matrix.
coef_names, theta_idx, delta_idxCoefficient bookkeeping.
pen_curvPenalty curvature used in the bread.
noteStatus note ("OK" on success).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.