getAverageRates: Model average rates along the positions of the sequence trait

View source: R/getAverageRates.R

getAverageRatesR Documentation

Model average rates along the positions of the sequence trait

Description

Function performs model averaging given the AIC weights of the models. This follows a similar procedure to the one implemented in Caetano et al., 2018.

Usage

getAverageRates(..., verbose = TRUE, legacy.mode = FALSE)

Arguments

...

a list of model fit or a series of model fits separated by commas.

verbose

whether to print information to the screen.

legacy.mode

whether to check structure of objects instead of class.

Details

Model averaging is performed by multiplying the rate estimated under each of the models by the respective model weight. Model weight is a measure of the relative likelihood of a model. This can be used to associate a relative likelihood to parameter estimates. See more information on Caetano et al., 2018.

Value

A list object with a vector of rates, a vector of flags from the model averaging algorithm and a named vector with the AICw for the models.

Author(s)

Daniel Caetano


Caetanods/sequence-trait documentation built on Nov. 25, 2022, 4:32 p.m.