Evaluates all adjustment sets of a DAG, optionally including adjustment sets including "unknown" nodes. If the DAG has a non-empty adjustment set, only adjustment sets including these adjustment variables are evaluated.
brute.search(dag, allow.unknown = FALSE, trace = TRUE, stop = 0)
A dataframe with the first columns (X1..Xn
) indicating the variables in the respective adjustment set evaluated.
The column totalPaths
indicates the number of paths found when adjusting for the respective set,
and openPaths
indicates the number of biasing paths.
The DAG to be evaluated.
Boolean indicating "unknown" nodes should be featured in the adjustment sets to be evaluated (TRUE) or not (FALSE=default).
Boolean indicating if some output should be produced (TRUE=default).
If =0, all eligible adjustment sets are evaluated. If =1, evaluations are stopped after the first sufficient adjustment set has been evaluated. Defaults to 0.
Lutz P Breitling <l.breitling@posteo.de>