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 "min" or "max" for a lower or an upper bound, respectively.

obj

An object as returned by the function analyze_graph. Contains the casual query to be estimated.

Value

An object of class optbound; a list with the following named components:


[Package causaloptim version 0.9.8 Index]