Runs DirectLiNGAM given a dataset dat. Returns the causal order estimated from the data using the Direct LiNGAM algorithm.

direct_lingam_search(dat)

Arguments

dat

Numeric matrix. Dataset matrix with n rows (observations) and p columns (variables).

Value

Numeric vector (or NA in case of error). The causal order estimated from the data.

Details

This function performs the performs pairwise~LiNGAM algorithm of Hyvarinen and Smith (2013, JMLR) in the DirectLiNGAM framework of Shimizu et al. (2011, JMLR). The function calls internal C++ code.