Description Usage Arguments Value Details See Also
View source: R/influence_functions.R
get_g
returns the values for the g_l(eta)
(upper=FALSE) or g_u(eta) (upper=TRUE) at each X.
1 |
data |
data.frame of dimensions n x 6, with columns: ymin, ymax, pi0g (= P(A = 0 | X = x) if model "x" or 1-A if model "xa"), pi1g (= P(A = 1 | X = x) if model "x" or A if model "xa") mu1 (E(Y | A = 1, X = x)) and mu0 (E(Y | A = 0, X = x)). |
delta |
vector of values for the delta parameter. |
upper |
boolean (default is upper=FALSE) if TRUE values for g_u(eta) are returned, otherwise those for g_l(eta) are returned. |
a nrow(data) x ndelta matrix containing the values of g(eta) at each observed X.
As done in the paper, one can see that g(eta) for the lower bound is equal to g(eta) for the upper bound minus delta * (ymax - ymin). They are keep separated just for code clarity.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.