lpost.gamma | R Documentation |
Posterior density function for the non-penalized parameters in an ordgam model
lpost.gamma(model)
model |
An |
Log joint posterior density function for the non-penalized regression parameters.
Philippe Lambert p.lambert@uliege.be
Lambert, P. and Gressani, 0. (2023) Penalty parameter selection and asymmetry corrections to Laplace approximations in Bayesian P-splines models. Statistical Modelling. <doi:10.1177/1471082X231181173>. Preprint: <arXiv:2210.01668>.
ordgam
.
library(ordgam)
data(freehmsData)
mod = ordgam(freehms ~ s(eduyrs) + s(age), data=freehmsData, descending=TRUE)
print(mod$theta) ## Model regression parameters
gam.hat = mod$theta[1:4] ## Non-penalized parameter estimates
ordgam::lpost.gamma(mod)(gam.hat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.