Skip to contents

Projects the Knowledge Graph onto a dagitty DAG by keeping only the edges whose confidence is at least min_confidence. The resulting DAG is ready to be consumed by causal_adjustment_set() and causal_estimate_effect().

Usage

causal_kg_to_dagitty(kg, min_confidence = 0.7)

Arguments

kg

An edaphos_causal_kg.

min_confidence

Numeric in [0, 1]. Edges with confidence < min_confidence are dropped.

Value

A dagitty object.