Ytree: Title: Create the Outcomes for Each Interior Knots from the...

View source: R/01_tree_structure.R

YtreeR Documentation

Title: Create the Outcomes for Each Interior Knots from the Tree

Description

The Dirichlet Multinational Tree model requires the outcomes at each interior nodes. The original taxa outcomes will not be applied directly into the regression models. The regression model is built above is for each interior knot and its children. The information from treeinfo will be used to build the membership for each interior cluster.

Usage

Ytree(Y, treeinf)

Arguments

Y

The taxa outcome as input

treeinf

The information extracted from "phylo" structured tree file

Details

This is adapted from Tao Wang and Hongyu Zhao (2017)

Value

A set of n * 2 matrices, each of which represent the an interior knot and its children branches.


Goodgolden/LDTM documentation built on May 25, 2022, 5:25 p.m.