parse_constraints | R Documentation |
Parse text that defines a the constraints
parse_constraints(constraints, obsnames)
constraints |
A list of character strings |
obsnames |
Vector of names of the observed variables in the graph |
A data frame with columns indicating the variables being constrained, what the values of their parents are for the constraints, and the operator defining the constraint (equality or inequalities).
constrainttext <- "X(Z = 1) >= X(Z = 0)"
obsnames <- c("Z", "X", "Y")
parse_constraints(constraints = constrainttext, obsnames = obsnames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.