predict.splinetree | R Documentation |
predict.splinetree
computes predictions for a fitted
(g)lmertree
that is based on splines.
## S3 method for class 'splinetree'
predict(object, newdata, ...)
object |
fitted object of class |
newdata |
|
... |
additional arguments to be passed to |
setup.spline
predict.splinetree
lmertree
glmertree
st <- splinetree(Pn ~ ns(PAR, df = 5) | Specimen | Species, data = eco,
cluster = Specimen)
predict(st, newdata = eco[1L:5L, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.