Description Usage Arguments Details Value
Compute the sensitivity-adjusted estimates of predicted outcome given treatment/control for a policy object
1 2 3 |
obj |
data to sensitize |
q |
p(u = 1 | x) (see Details) |
dp |
change in log-odds of treat = 1 if u = 1 (see Details) |
d0 |
change in log-odds of response = 1 if treat = 0 and u = 1 (see Details) |
d1 |
change in log-odds of response = 1 of treat = 1 and u = 1 (see Details) |
compare |
(Optional) character vector of groups to compare; the data
will be filtered such that only specified groups are compared, and the
|
ptreat |
(Optional) default value for probability of treatment; if
provided, it will override fitted values in |
resp_ctl |
(Optional) |
resp_trt |
(Optional) default value for probability of response = 1
given each treatment regime ( |
... |
additional arguments are ignored |
All sensitivity parameters (q, dp, d0, d1
) can be provided in
one of three formats, determined by the length
of each argument:
length(arg) = 1
single value applied to all observations (rows)
length(arg) =
number of levels in
grouping variableeach parameter setting applied to corresponding level in group
length(arg) = nrow(pol$data)
each parameter applied to corresponding rows
Note that if compare
is specified, the
number of grouping levels is effectively the length of compare
a new sensitive_policy
object, which inherits policy
,
with the data element updated according to sensitivity parameters; all
other aspects of the original policy
object are preserved.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.