View source: R/S3_ordgam_plot.R
plot.ordgam | R Documentation |
Plot the the additive terms in an object generated by ordgam
with its credible regions
## S3 method for class 'ordgam'
plot(x,ngrid=300,ci.level=.95,mfrow=NULL,...)
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. |
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.
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
, ordgam.object
, ordgam.additive
, print.ordregr
.
library(ordgam)
data(freehmsData)
mod = ordgam(freehms ~ gndr + s(eduyrs) + s(age),
data=freehmsData, descending=TRUE)
print(mod)
plot(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.