Description Usage Arguments Value
Similar to other predict methods, this functions predicts fitted values from a fitted "bsvs" object.
1 2 | ## S3 method for class 'bsvs'
predict(bsvs.obj, newx, model = "MAP")
|
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". |
a vector of fitted values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.