simSigma: Simulate variance-covariance matrix for morphological...

Description Usage Arguments Value Author(s)

View source: R/simSigma.R

Description

This function generates a variance-covariance matrix for morphological evolution, defining the rate at which traits evolve and their evolutionary correlation.

Usage

1
simSigma(Ntraits, Cor = NULL, Sigma2 = NULL)

Arguments

Ntraits

number of traits

Cor

correlation between traits. Default between -1 and 1. Optional, can be fixed to be equal between all traits by giving one value or Ntraits*(Ntraits-1)/2

Sigma2

Brownian motion rate. Default between 1e-4 and 0.2 Optional, can be fixed to be equal for all traits or one value per trait

Value

matrix Ntrait x Ntrait for simulating trait evolution

Author(s)

Torsten Hauffe


thauffe/TraitGmyc documentation built on July 4, 2021, 7:37 a.m.