rate_gls_sim: Simulate responses from 'rate_gls' fit

Description Usage Arguments Details Value Author(s) Examples

Description

rate_gls_sim responses from the models defined by an object of class 'rate_gls'.

Usage

1
rate_gls_sim(object, nsim = 10)

Arguments

object

The fitted object from rate_gls

nsim

The number of simulations.

Details

rate_gls_sim simply passes the estimates in an object of class 'rate_gls' to the function simulate_rate for simulating responses of the evolutionary process. It is mainly intended for internal use in rate_gls_boot.

Value

An object of class 'simulate_rate', which is a list with the following components:

tips A data frame of x and y values for the tips.
percent_negative_roots The percent of iterations with negative roots in the rates of y (not given for model = 'recent_evol').
compl_dynamics A list with the output of the complete dynamics (not given for model = 'recent_evol').

Author(s)

Geir H. Bolstad

Examples

1
# See the vignette 'Analyzing rates of evolution'.

evolvability documentation built on Dec. 11, 2021, 9:34 a.m.