best {phylopath} | R Documentation |
Extract and estimate the best supported model from a phylogenetic path analysis.
Description
Extract and estimate the best supported model from a phylogenetic path analysis.
Usage
best(phylopath, ...)
Arguments
phylopath |
An object of class |
... |
Arguments to pass to phylolm::phylolm and phylolm::phyloglm. Provide |
Value
An object of class fitted_DAG
.
Examples
candidates <- define_model_set(
A = NL ~ BM,
B = NL ~ LS,
.common = c(LS ~ BM, DD ~ NL)
)
p <- phylo_path(candidates, rhino, rhino_tree)
best_model <- best(p)
# Print the best model to see coefficients, se and ci:
best_model
# Plot to show the weighted graph:
plot(best_model)
[Package phylopath version 1.3.0 Index]