Description Usage Arguments Value Examples
View source: R/treeda-functions.R
Returns the coefficients from a treeda fit either in terms of the leaves only or in terms of the nodes and leaves.
1 2 |
object |
An object of class |
type |
Should the coefficients be in the leaf space or the node space? |
... |
Not used. |
A Matrix
object containing the coefficients.
1 2 3 4 5 6 7 | data(treeda_example)
out.treeda = treeda(response = treeda_example$response,
predictors = treeda_example$predictors,
tree = treeda_example$tree,
p = 1)
coef(out.treeda, type = "leaves")
coef(out.treeda, type = "nodes")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.