Constructs a design matrix for a given phylogenetic tree, used in Ornstein-Uhlenbeck modeling.
generate_design_matrix(tree, type = "simpX", alpha = 0)
A design matrix X
, where each row corresponds to a tip and each column to an edge in the tree.
A phylogenetic tree of class phylo
.
A character string specifying the type of design matrix to generate. Options are "simpX"
or "orgX"
.
The selection strength parameter (only used when type = "orgX"
).