| opt_effect {causaloptim} | R Documentation |
Compute a bound on the average causal effect
Description
This helper function does the heavy lifting for optimize_effect_2.
For a given casual query, it computes either a lower or an upper bound on the corresponding causal effect.
Usage
opt_effect(opt, obj)
Arguments
opt |
A string. Either |
obj |
An object as returned by the function |
Value
An object of class optbound; a list with the following named components:
-
expris the main output; an expression of the bound as a print-friendly string, -
typeis either"lower"or"upper"according to the type of the bound, -
dual_verticesis a numeric matrix whose rows are the vertices of the convex polytope of the dual LP, -
dual_vrepis a V-representation of the dual convex polytope, including some extra data.