predict.bruto {mda}R Documentation

a method for making predictions from a `bruto' object.

Usage

predict.bruto(object, x, type=c("fitted", "terms"))

Arguments

object a fitted bruto object
x values at which predictions are to be made.
type if type is fitted, the fitted values are returned. If type is terms, a list of fitted terms is returned, each with an x and y component. These can be used to show the fitted functions.

Value

either a fit matrix or a list of fitted terms.

See Also

bruto, predict

Examples

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")

[Package Contents]