ordgam_additive {ordgam}R Documentation

Compute the additive terms estimated using an 'ordgam' model

Description

Compute the additive terms estimated using an 'ordgam' model

Usage

ordgam_additive(obj.ordgam, ngrid = 300, ci.level = 0.95)

Arguments

obj.ordgam

An object of class 'ordgam'.

ngrid

Number of grid points where the additive terms are computed.

ci.level

Credibility level for the pointwise credible region for the additive terms

Value

a list containing:

Author(s)

Philippe Lambert p.lambert@uliege.be

References

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>.

Examples

library(ordgam)
data(freehmsData)
mod = ordgam(freehms ~ gndr + s(eduyrs) + s(age),
             data=freehmsData, descending=TRUE)
obj = ordgam_additive(mod)
names(obj)
with(obj$f.grid$age,
      matplot(x, y.mat, lty=c(1,2,2),type="l",col=1,
              xlab="Age", ylab="f(Age)"))


[Package ordgam version 0.9.1 Index]