plot.ordgam {ordgam}R Documentation

Plot the the additive terms in an <ordgam> object with its credible regions

Description

Plot the the additive terms in an object generated by ordgam with its credible regions

Usage

## S3 method for class 'ordgam'
plot(x,ngrid=300,ci.level=.95,mfrow=NULL,...)

Arguments

x

An ordgam.object generated by ordgam.

ngrid

An integer indicating the number of gridpoints where the additive terms should be evaluated.

ci.level

Credibility level for the pointwise credible region of the additive terms.

mfrow

(Optional) A vector of the form c(nr, nc). Subsequent figures will be drawn in an nr-by-nc array on the device by rows.

...

Additional generic plotting arguments.

Value

In addition to the plots, an invisible object containing information on the estimated additive terms is returned, see the ordgam_additive function documentation for more details.

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

See Also

ordgam, ordgam.object, ordgam.additive, print.ordregr.

Examples

library(ordgam)
data(freehmsData)
mod = ordgam(freehms ~ gndr + s(eduyrs) + s(age),
             data=freehmsData, descending=TRUE)
print(mod)
plot(mod)


[Package ordgam version 0.9.1 Index]