as.data.frame.fitted_DAG: Extract the paths of a fitted causal model.
Description
Returns the estimated paths of a fitted_DAG as a long data.frame, one row
per path, which is a convenient starting point for custom tables and figures.
Paths that are absent from the causal model are not included.
A data.frame with columns from, to, coef and se, as well as
lower and upper if the model was fitted with boot larger than 0.
Arguments
x
An object of class fitted_DAG.
row.names, optional, ...
Ignored, present for consistency with the
generic.
order_by
Either "default", to order the paths by their position in
the causal model, "causal", to follow the paths downstream, or
"strength", to order them by the size of their coefficients. Ordering by
strength is not available for models that contain both binary and continuous
variables, since their coefficients are not comparable, see est_DAG().
Ordering by cause is not available for cyclical models, which average() can
produce when the direction of a path is not resolved.