Return prediction with the posterior mean (or other statistics) of the regression coefficients.
1 2 |
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'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.