simulatevec: Generates a simulated continuous phenotype given an observed...

View source: R/PermulationFuncs.R

simulatevecR Documentation

Generates a simulated continuous phenotype given an observed continuous phenotype and a phylogeny

Description

Generates a simulated continuous phenotype given an observed continuous phenotype and a phylogeny

Usage

simulatevec(namedvec, treewithbranchlengths)

Arguments

namedvec

A named numeric vector with phenotype values for each speices

treewithbranchlengths

A rooted phylogenetic tree with the same species as namedvec and branch lengths representing average evolutionary rate. The master tree from readTrees may be rooted and used for this parameter.

Value

A vector with simulated phenotype values


nclark-lab/RERconverge documentation built on March 2, 2024, 8:51 a.m.