cal_rv | R Documentation |
Calculate Robustness Value When Executing Worstcase Calibration
cal_rv( y, tr, t1, t2, mu_y_dt = NULL, sigma_y_t = NULL, mu_u_dt = NULL, cov_u_t = NULL, nU = NULL, ... )
y |
|
tr |
|
t1 |
|
t2 |
|
mu_y_dt |
an optional scalar or vector that contains naive estimates of treatment effects ignoring confounding. |
sigma_y_t |
an optional scalar of the standard deviation of outcome conditional on treatments. |
mu_u_dt |
an optional matrix of difference in conditional confounder means, E(U \mid t1) - E(U \mid t2), with latent variables in columns. |
cov_u_t |
an optional covariance matrix of confounders conditional on treatments. |
nU |
Number of latent confounders to consider. |
... |
further arguments passed to |
A numeric vector
with elements being the robustness value or NA
if the ignorance region doesn't
contains 0 for each contrast of interest.
# load the example data # y <- GaussianT_GaussianY$y tr <- subset(GaussianT_GaussianY, select = -c(y)) # calculate robustness value # cal_rv(y = y, tr = tr, t1 = tr[1:2,], t2 = tr[3:4,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.