Learn R Programming

evolvability (version 2.0.0)

Almer_sim: Simulate responses from Almer fit

Description

Almer_sim Simulate responses from an Almer model fit.

Usage

Almer_sim(mod, nsim = 1000)

Arguments

mod

A fitted object from Almer

nsim

The number of simulations.

Value

Almer_sim a matrix of simulated responses, columns correspond to each simulations.

Details

This function is only included as the simulate.merMod function did not seem to work properly when the number of random effect levels equal the number of observations.

Examples

Run this code
# NOT RUN {
# See the vignette 'Phylogenetic mixed model'.
# }

Run the code above in your browser using DataLab