predict.bruto | R Documentation |
Predicted values based on ‘bruto’ additive spline models which are fit by adaptive backfitting.
## S3 method for class 'bruto'
predict(object, newdata, type=c("fitted", "terms"), ...)
object |
a fitted bruto object |
newdata |
values at which predictions are to be made. |
type |
if type is |
... |
further arguments to be passed to or from methods. |
Either a fit matrix or a list of fitted terms.
bruto
,
predict
data(trees)
fit1 <- bruto(trees[,-3], trees[3])
fitted.terms <- predict(fit1, as.matrix(trees[,-3]), type = "terms")
par(mfrow=c(1,2), pty="s")
for(tt in fitted.terms) plot(tt, type="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.