Learn R Programming

evolvability (version 2.0.1)

Almer_sim: Simulate responses from Almer fit

Description

Almer_sim Simulate responses from an Almer model fit.

Usage

Almer_sim(mod, nsim = 1000)

Value

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

Arguments

mod

A fitted object from Almer

nsim

The number of simulations.

Author

Geir H. Bolstad

Details

This function is only included because 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
# See the vignette 'Phylogenetic mixed model'.

Run the code above in your browser using DataLab