Fits a Linear non-Gaussian Acyclic Model (LiNGAM) to the data and returns the corresponding DAG.
For details, see the reference below.
lingam(X, verbose =FALSE)## For back-compatibility; this is *deprecated*LINGAM(X, verbose =FALSE)
Arguments
X: n x p data matrix (n: sample size, p: number of variables).
verbose: logical or integer indicating that increased diagnostic output is to be provided.
Returns
lingam() returns an object of (S3) class "LINGAM", basically a list with components - Bpruned: a pxp matrix B of linear coefficients, where Bi,j corresponds to a directed edge from j to i.
stde: a vector of length p with the standard deviations of the estimated residuals
ci: a vector of length p with the intercepts of each equation
...``...``...``...``...``...
LINGAM() --- deprecated now --- returns a list with components - Adj: a pxp 0/1 adjacency matrix A. A[i,j] == 1 corresponds to a directed edge from i to j.
B: pxp matrix of corresponding linear coefficients. Note it corresponds to the transpose of Adj, i.e., identical( Adj, t(B) != 0 ) is true.
References
S. Shimizu, P.O. Hoyer, A. Hyv"arinen, A. Kerminen (2006) A Linear Non-Gaussian Acyclic Model for Causal Discovery; Journal of Machine Learning Research 7 , 2003--2030.