Description Usage Arguments Details Value Author(s) References See Also Examples
Fits linear recursive regressions with independent residuals specified by a DAG.
1 | fitDag(amat, S, n)
|
amat |
a square matrix with dimnames representing the adjacency matrix of the DAG |
S |
a symmetric positive definite matrix, the sample covariance matrix |
n |
an integer > 0, the sample size |
fitDag
checks if the order of the nodes in adjacency matrix
is the same of S
and if not it reorders the adjacency matrix
to match the order of the variables in S
. The nodes
of the adjacency matrix may form a subset of the variables in S
.
Shat |
the fitted covariance matrix. |
Ahat |
a square matrix of the fitted regression coefficients. The entry
|
Dhat |
a vector containing the partial variances of each variable given the parents. |
dev |
the ‘deviance’ of the model. |
df |
the degrees of freedom. |
Giovanni M. Marchetti
Cox, D. R. \& Wermuth, N. (1996). Multivariate dependencies. London: Chapman \& Hall.
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.