generate_design_matrix {ShiVa}R Documentation

Generate Design Matrix

Description

Constructs a design matrix for a given phylogenetic tree, used in Ornstein-Uhlenbeck modeling.

Usage

generate_design_matrix(tree, type = "simpX", alpha = 0)

Arguments

tree

A phylogenetic tree of class phylo.

type

A character string specifying the type of design matrix to generate. Options are "simpX" or "orgX".

alpha

The selection strength parameter (only used when type = "orgX").

Value

A design matrix X, where each row corresponds to a tip and each column to an edge in the tree.


[Package ShiVa version 1.0.1 Index]