specify_graph {causaloptim}R Documentation

Shiny interface to specify network structure and compute bounds

Description

This launches the Shiny interface in the system's default web browser. The results of the computation will be displayed in the browser, but they can also be returned to the R session by assigning the result of the function call to an object. See below for information on what is returned.

Usage

specify_graph()

Value

If the button "Exit and return graph object" is clicked, then only the graph is returned as an aaa-igraph-package object.

If the bounds are computed and the button "Exit and return objects to R" is clicked, then a list is returned with the following elements:

graphres

The graph as drawn and interpreted, an aaa-igraph-package object.

obj

The objective and all necessary supporting information. This object is documented in analyze_graph. This can be passed directly to optimize_effect.

bounds.obs

Object of class 'balkebound' as returned by optimize_effect.

constraints

Character vector of the specified constraints. NULL if no constraints.

effect

Text describing the causal effect of interest.

boundsFunction

Function that takes parameters (observed probabilities) as arguments, and returns a vector of length 2 for the lower and upper bounds.


[Package causaloptim version 0.8.2 Index]