choice | R Documentation |
Extract and estimate an arbitrary model from a phylogenetic path analysis.
choice(phylopath, choice, ...)
phylopath |
An object of class |
choice |
A character string of the name of the model to be chosen, or
the index in |
... |
Arguments to pass to phylolm::phylolm and phylolm::phyloglm. Provide |
An object of class fitted_DAG
.
candidates <- define_model_set(
A = NL ~ BM,
B = NL ~ LS,
.common = c(LS ~ BM, DD ~ NL)
)
p <- phylo_path(candidates, rhino, rhino_tree)
my_model <- choice(p, "B")
# Print the best model to see coefficients, se and ci:
my_model
# Plot to show the weighted graph:
plot(my_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.