makeNodeAndLeafPredictors: Make a matrix with predictors for each leaf and node

Description Usage Arguments Value

Description

Make a matrix with one predictor for each leaf and node in the tree, where the node predictors are the sum of the leaf predictors descending from them.

Usage

1
makeNodeAndLeafPredictors(leafPredictors, tree)

Arguments

leafPredictors

A predictor matrix for the leaves: rows are samples, columns are leaves.

tree

A phylogenetic tree describing the relationships between the species/leaves.

Value

A predictor matrix for leaves and nodes together: rows are samples, columns are leaf/node predictors.


treeDA documentation built on May 2, 2019, 5:42 a.m.