makeLeafCoefficients: Make leaf coefficients

Description Usage Arguments Value

Description

For a set of coefficients defined on a matrix of (potentially centered and scaled) leaf and node predictors, find the equivalent set of coefficients on just the leaves.

Usage

1
makeLeafCoefficients(sda.out, descendantMatrix, means, sds)

Arguments

sda.out

A fitted sda object

descendantMatrix

A matrix describing the tree which was used, element (i,j) indicates whether leaf i is a descendant of node j.

means

If the original predictor matrix was centered, the means of the original predictor matrix, otherwise NULL.

sds

If the original predictor matrix was scaled, the sds of the original predictor matrix, otherwise NULL.

Value

A list giving the coefficients on the leaves for each of the discriminating axes and the intercepts for each of the discriminating axes.


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