Description Usage Arguments Details Value Author(s) Examples
View source: R/predict_bcgam.R
Predicted values based on bcgam object.
1 2 3 |
object |
Object of class inheriting from "bcgam". |
newdata |
An optional data frame in which to look for variable with which to predict. |
interval |
Type of interval calculation. It can be either |
level |
Tolerance/credible level. The default is |
parameter |
The type of parameter to predict. If parameter= |
... |
further arguments passed to or from other methods. |
predict.bcgam produces estimated values, standard errors,
and interval estimates; obtained by the
fitted model in the frame newdata. Setting intervals
specifies computation of credible or prediction (tolerance) intervals at the
specified level.
All predictions are based on the posterior distribution in the bcgam object.
predict.bcgam produces a list of predictions, standard errors, and bounds based
on the posterior disitribution in the bcgam object.
If interval="credible", a list with the following components is returned:
cred.mean |
the mean values. |
cred.sd |
standard error of mean values. |
cred.lower |
lower bound of mean values. |
cred.upper |
upper bound of mean values. |
If interval="prediction", a list with the following components is returned:
pred.mean |
the predicted values. |
pred.sd |
standard error of predicted values. |
pred.lower |
lower bound of predicted values. |
pred.upper |
upper bound of predicted values. |
Cristian Oliva-Aviles and Mary C. Meyer
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.