View source: R/process-optimizer.R
optimize_effect_2 | R Documentation |
Given an object with the linear programming problem set up, compute the bounds using rcdd. Bounds are returned as text but can be converted to R functions using interpret_bounds, or latex code using latex_bounds.
optimize_effect_2(obj)
obj |
Object as returned by analyze_graph |
An object of class "balkebound" that contains the bounds and logs as character strings
optimize_effect which is a legacy version
b <- graph_from_literal(X -+ Y, Ur -+ X, Ur -+ Y)
V(b)$leftside <- c(0,0,0)
V(b)$latent <- c(0,0,1)
V(b)$nvals <- c(2,2,2)
E(b)$rlconnect <- E(b)$edge.monotone <- c(0, 0, 0)
obj <- analyze_graph(b, constraints = NULL, effectt = "p{Y(X = 1) = 1} - p{Y(X = 0) = 1}")
optimize_effect_2(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.