Skip to contents

Extracts posterior summaries of phylogenetic evolutionary parameters (ancestral states, evolutionary rates, OU parameters) from a fitted fit_evolution() object.

Usage

extract_evolution_pars(fit, variables = NULL)

Arguments

fit

A CmdStanMCMC object returned by fit_evolution().

variables

Character vector of variable names to extract. If NULL, extracts all parameters.

Value

A data.frame with posterior summaries (mean, sd, 2.5%, 50%, 97.5%, effective sample size, R-hat) for each requested variable.