parse_effect | R Documentation |
Parse text that defines a causal effect
parse_effect(text)
text |
Character string |
A nested list that contains the following components:
For each element of the causal query, this indicates potential outcomes as names of the list elements, the variables that they depend on, and the values that any variables are being fixed to.
The vector of operators (addition or subtraction) that combine the terms of the causal query.
The values that the potential outcomes are set to in the query.
List of logicals for each element of the query that are TRUE if the element is a potential outcome and FALSE if it is an observational quantity.
effectt <- "p{Y(X = 1) = 1} - p{Y(X = 0) = 1}"
parse_effect(text = effectt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.