predict.bsm: Predict with posterior mean (or with other statistics)

Description Usage Arguments

View source: R/fit-ridge.R

Description

Return prediction with the posterior mean (or other statistics) of the regression coefficients.

Usage

1
2
## S3 method for class 'bsm'
predict(object, newdata = NULL, level = NULL, fun = NULL)

Arguments

object

an 'bsm' object.

newdata

a data frame with all the covariate required for prediction.

level

a string specify the name of the spline. Only the component correponding to that spline is returned together with the effect terms).

fun

a function applying to the samples of each marginal posterior of the regression coefs. By default, it's 'mean'.


weiyaw/flexss documentation built on June 16, 2021, 7:48 a.m.