predict.bsvs: make predictions from a "bsvs" object.

Description Usage Arguments Value

View source: R/predict_bsvs.R

Description

Similar to other predict methods, this functions predicts fitted values from a fitted "bsvs" object.

Usage

1
2
## S3 method for class 'bsvs'
predict(bsvs.obj, newx, model = "MAP")

Arguments

bsvs.obj

fitted bsvs model object

newx

Matrix of new values for x at which predictions are to be made. Must be a matrix; can be sparse as in Matrix package.

model

The model to be used to make predictions. Model "MAP" gives the fitted values calculated using coefficients estimated from the MAP model; model "WAM" gives the predicted values calculated using coefficients estimated from the WAM model. Default is "MAP".

Value

a vector of fitted values


Run-Wang/bsvs documentation built on Aug. 18, 2021, 9:42 p.m.