Learn R Programming

ShiVa (version 1.0.1)

generate_design_matrix: 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)

Value

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

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").