predict.bas: Prediction Method for an object of class BMA
Description
Predictions under model averaging from a BMA object of
class inheriting from 'bas'.
Usage
## S3 method for class 'bas':
predict(object, newdata, top=NULL,
type="link", ...)
Arguments
object
An object of class BAS, created by bas
newdata
dataframe, new matrix or vector of data for predictions. May
include a column for the intercept or just the predictor variables.
If a dataframe, the variables are extracted using model.matrix using
the call that created 'object'.
top
a scalar integer M. If supplied, subset the top M models,
based on posterior probabilities for model predictions and BMA.
type
Type of predictions required. "Link" which is on the
scale of the linear predictor is the only option currently.
...
optional extra arguments
Value
a list of
Ybmapredictions using BMA
Ypredmatrix of predictions under each model
bestindex of top models included
Details
Use BMA and/or model selection to form predictions using the top highest probability
models.