trueEffects | R Documentation |
This function takes a DAG with edgeweights as input and computes the causal effects of all nodes on all direct and indirect children in the DAG. Alternatively see pcalg::causalEffect for pairwise computation.
trueEffects(g, partial = FALSE)
g |
graphNEL object |
partial |
if FALSE computes the total causal effects and not just the partial edge effects |
matrix of causal effects
Martin Pirkl
graph.wt <- as(matrix(c(0,0,0,1,0,0,0,1,0), 3), "graphNEL") trueEffects(graph.wt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.