Learn R Programming

evolvability (version 2.0.1)

rate_gls_sim: 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)

Value

An object of class

'simulate_rate', which is a list with the following components:

tipsA 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

Arguments

object

The fitted object from rate_gls

nsim

The number of simulations.

Author

Geir H. Bolstad

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.

Examples

Run this code
# See the vignette 'Analyzing rates of evolution'.

Run the code above in your browser using DataLab