get_formula {dosearch} | R Documentation |
Returns the identifying formula describing a causal query of an object of class "dosearch".
get_formula(x, run_again = FALSE)
x |
an object of class "dosearch". |
run_again |
a logical value. If |
A character string representing the query in terms of the input data.
Santtu Tikka
data <- "P(x,y,z)"
query <- "P(y|do(x))"
graph <- "
x -> y
z -> x
z -> y
"
x <- dosearch(data, query, graph, control = list(formula = FALSE))
get_formula(x, run_again = TRUE)