Converts the estimated adjacency matrix of a LiM model into a long-format
data.frame with one edge per row, exactly like tidy.LingamResult().
Usage
# S3 method for class 'LiMResult'
tidy(x, threshold = 0, ...)Arguments
- x
The return value of
lingam_lim()(aLiMResultobject)- threshold
Coefficients with an absolute value at or below this are not treated as edges (default: 0)
- ...
Unused
Examples
set.seed(1)
dat <- generate_lim_sample(n = 300)
model <- lingam_lim(dat$data, is_continuous = dat$is_continuous)
tidy(model)
#> from to estimate
#> 1 x1 x2 -0.2197992
#> 2 x2 x3 1.0000000
