Takes a [psem] object, pulls out the DAG, and then sorts the psem object into the order of the DAG (from exogenous to terminal endogenous variable) for use by other functions. Note: removes correlated errors.
getSortedPsem(object, keepdata = TRUE)
A new [psem] object, without the data.