create_response_function: Translate regular DAG to response functions

View source: R/translation-modules.R

create_response_functionR Documentation

Translate regular DAG to response functions

Description

Translate regular DAG to response functions

Usage

create_response_function(graph)

Arguments

graph

An aaa-igraph-package object that represents a directed acyclic graph that contains certain edge attributes. The shiny app returns a graph in this format and initialize_graph will add them to a regular igraph object with sensible defaults.

Value

A list of functions representing the response functions

Examples

### confounded exposure and outcome
b <- initialize_graph(igraph::graph_from_literal(X -+ Y, Ur -+ X, Ur -+ Y))
create_response_function(b)

causaloptim documentation built on Oct. 17, 2024, 9:08 a.m.