Loglik_Dirichlet_tree: Title: Log likelihood for Dirichlet Tree

View source: R/02_likelihood.R

Loglik_Dirichlet_treeR Documentation

Title: Log likelihood for Dirichlet Tree

Description

Title: Log likelihood for Dirichlet Tree

Usage

Loglik_Dirichlet_tree(Ytree, X, B, model)

Arguments

Ytree

is the tree information from the Ytree function. Input will be a set of n * 2 matrices, each of which represent the an interior knot and its children branches

X

matrix of nxp which is the number of subjects by number of covariates

B

a list of covariate coefficients

model

character type of model to use for the Log Likelihood. Options are (Dirichlet Multinomial = "dirmult", Multinomial = "mult", or Dirichlet = "dir")

Details

Calculating the log likelihood for the Dirichlet tree

Value

Will return the log likelihood for the Dirichlet Tree model for each of the nodes


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