rate_gls_sim {evolvability}R Documentation

Simulate responses from rate_gls fit

Description

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

Usage

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

# See the vignette 'Analyzing rates of evolution'.

[Package evolvability version 2.0.0 Index]