Btree: Title: Create the Coefficients for Each Interior Knots Matrix

View source: R/01_tree_structure.R

BtreeR Documentation

Title: Create the Coefficients for Each Interior Knots Matrix

Description

The Dirichlet Multinational Tree model requires the outcomes at each interior knots. We need to change a list of coefficients into high dimensional matrix format corresponding to each matrix in Ytree outcomes. The length for Btree outcomes is the same as Ytree; TBF

Usage

Btree(Ytree, B)

Arguments

Ytree

The results from Ytree()

B

a list of covariate coefficients

Details

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

Value

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


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