predict.gamtree | R Documentation |

Takes a fitted GAM tree (of class `"gamtree"`

) and returns
predictions given a new set of values for the model covariates,
or for the original covariate values used for fitting the GAM tree.

```
## S3 method for class 'gamtree'
predict(object, newdata = NULL, type = "link", ...)
```

`object` |
an object of class |

`newdata` |
a |

`type` |
character vector of length 1, specifying the type of prediction
to be returned. |

`...` |
further arguments to be passed to |

Returns a vector of predicted values.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.