"predict"(object, newdata, type=c("fitted", "terms"), ...)
"fitted"
"terms"
x
y
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")
Run the code above in your browser using DataCamp Workspace