best: Extract and estimate the best supported model from a...

Description Usage Arguments Value Examples

Description

Extract and estimate the best supported model from a phylogenetic path analysis.

Usage

1
best(phylopath, ...)

Arguments

phylopath

An object of class phylopath.

...

Arguments to pass to phylolm::phylolm and phylolm::phyloglm. If you specified options in the original phylo_path call you don't need to specify them again.

Value

An object of class fitted_DAG.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  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)

phylopath documentation built on Oct. 5, 2021, 1:06 a.m.