Learn R Programming

evolvability (version 2.0.0)

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)

Arguments

object

The fitted object from rate_gls

nsim

The number of simulations.

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'). tips

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
# NOT RUN {
# See the vignette 'Analyzing rates of evolution'.
# }

Run the code above in your browser using DataLab