makeNodeAndLeafPredictors {treeDA} | R Documentation |
Make a matrix with predictors for each leaf and node
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
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.
[Package treeDA version 0.0.5 Index]