trueEffects: Compute the true casual effects of a simulated dag

View source: R/utils.R

trueEffectsR Documentation

Compute the true casual effects of a simulated dag

Description

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.

Usage

trueEffects(g, partial = FALSE)

Arguments

g

graphNEL object

partial

if FALSE computes the total causal effects and not just the partial edge effects

Value

matrix of causal effects

Author(s)

Martin Pirkl

Examples

graph.wt <- as(matrix(c(0,0,0,1,0,0,0,1,0), 3), "graphNEL")
trueEffects(graph.wt)

kpj/dce documentation built on Oct. 29, 2022, 1:40 a.m.