pred_Y: Title Predicted values for Outcomes

View source: R/02_likelihood.R

pred_YR Documentation

Title Predicted values for Outcomes

Description

Title Predicted values for Outcomes

Usage

pred_Y(Y, X, B, treeinfo)

Arguments

Y

matrix of count outcomes

X

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

B

list of covariate coefficients

treeinfo

A list objects necessary information from the tree. The output has the following properties:

  • Nnodes: integer the number of nodes in the given "phylo" tree

  • Ntips: integer the number of tips/leaves in the given "phylo" tree

  • Tredge: matrix the matrix for the edges information; each row represents the two ends of the edges

  • TreeMat: matrix the matrix consists of logical values; the binary value of each taxa (by row) belongs to a given leaf or inner node (by col).

Value

The predicted Y outcome which is a vector of outcomes at the taxa level


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