library("causatr")
result <- contrast(fit, interventions = list(a1 = static(1), a0 = static(0)))
confint(result)
confint(result, level = 0.99)Confidence intervals for a causatr result
Description
Returns confidence intervals for each intervention mean (E[Y^a]) from a causatr_result object. When the result was computed with ci_method = “bootstrap”, percentile-based CIs are returned from the stored bootstrap replicates. Otherwise, Wald-type CIs are computed from the standard errors.
Usage
## S3 method for class 'causatr_result'
confint(object, parm, level = 0.95, ...)
Arguments
object
|
A causatr_result object.
|
parm
|
Ignored. Intervals are returned for all interventions. |
level
|
Numeric. Confidence level. Default 0.95.
|
…
|
Currently unused. |
Value
A matrix with columns “lower” and “upper” and one row per intervention.
See Also
coef.causatr_result(), contrast()