Description Usage Arguments Value Details See Also
View source: R/influence_functions.R
if_tau
returns the influence function values for the
parameter E(g_l(eta)) (upper=FALSE) or E(g_u(eta)) (upper=TRUE) at each X.
1 |
data |
data.frame of dimensions n x 8, with columns: y, a, 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 if values for E(g_u(eta)) are returned, otherwise those for E(g_l(eta)) are returned |
a length(y)xlength(delta) matrix containing the influence function values at each observed X of the parameter E(g(eta)).
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). Therefore the IFs for E(g(eta)) follows the same relation. 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.