generate_design_matrix: Generate Design Matrix

View source: R/ShiVa.R

generate_design_matrixR 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.


ShiVa documentation built on Aug. 22, 2025, 9:14 a.m.