Skip to contents

Summarizes the entire model in a single row. The data X is not required because no residuals are computed. If residual-based diagnostics are needed, use summary_lingam() instead.

Usage

# S3 method for class 'LingamResult'
glance(x, ...)

Arguments

x

The return value of lingam_direct() (a LingamResult object)

...

Unused

Value

A one-row data.frame(n_variables, n_edges, causal_order)

Examples

dat <- generate_lingam_sample_6()
model <- lingam_direct(dat$data, reg_method = "ols")
glance(model)
#>   n_variables n_edges                     causal_order
#> 1           6      15 x3 -> x2 -> x0 -> x4 -> x5 -> x1