get_derivation: Retrieve the derivation of a causal query

Description Usage Arguments Author(s) Examples

View source: R/dosearch.R

Description

Returns the derivation of causal query of an object of class "dosearch".

Usage

1
get_derivation(x, run_again = FALSE, draw_all = FALSE)

Arguments

x

an object of class "dosearch".

run_again

a logical value. If TRUE, run the search again to obtain a derivation for the query if one was not requested in the function call that produced x.

draw_all

a logical value. If TRUE, the derivation will contain every step taken by the search. If FALSE, only steps that resulted in identification are returned.

Author(s)

Santtu Tikka

Examples

1
2
3
4
5
6
7
8
9
data <- "P(x,y,z)"
query <- "P(y|do(x))"
graph <- "
  x -> y
  z -> x
  z -> y
"
x <- dosearch(data, query, graph, control = list(draw_derivation = FALSE))
get_derivation(x, run_again = TRUE)

dosearch documentation built on Aug. 19, 2021, 5:07 p.m.