Description Usage Arguments Value
Returns the estimates global or local coefficients of a GAM tree.
1 2 |
object |
an object of class |
which |
character. Specifies whether local ( |
... |
currently not used. |
Returns a matrix (if which = "local"
) or a vector (if
which = "global"
) with estimated coefficients.
## GAM tree without global terms:
gt1 <- gamtree(Pn ~ s(PAR, k = 5L) | Species, data = eco, cluster = eco$specimen)
coef(gt1)
## GAM tree with global terms: gt2 <- gamtree(Pn ~ s(PAR, k = 5L) | s(cluster_id, bs = "re") + noise | Species, data = eco, cluster = eco$specimen) coef(gt2) coef(gt2, which = "global")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.