Description Usage Arguments Value See Also Examples
In the case of a gaussian bayesian network where W is the weightmatrix (direct causal effects), beta is the matrix of total causal effects.
The function computes the inverse of (I-W)^p even if W is not upper triangular. In the case of a GBN, the graph is acyclic, it exists at least one topological order. W is upper triangular and nilpotent under these orderings.
The function is ordering rows and columns of W to make the matrix upper triangular, then computes I+W+W^2+...+W^(p-1) where p is the number of rows and columns of W.
1 | betaFromW(Wgt)
|
Wgt |
matrix - Weightmatrix of the graph (direct causal effects). Must have dimnames of the form "N#" where # is a number. |
The function returns the matrix of total causal effects.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.