blapsr0.7.0 package

Bayesian Inference with Laplace Approximations and P-Splines

adjustPD

Test positive definiteness and adjust positive definite matrix.

amlps.object

Object resulting from the fit of an additive partial linear model.

amlps

Bayesian additive partial linear modeling with Laplace-P-splines.

coxlps.baseline

Extract estimated baseline quantities from a fit with coxlps.

coxlps.object

Object from a Cox proportional hazards fit with Laplace-P-splines.

coxlps

Fit a Cox proportional hazards regression model with Laplace-P-splines...

cubicbs

Construct a cubic B-spline basis.

curelps.extract

Extract estimates of survival functions and cure probability for the p...

curelps.object

Object from a promotion time model fit with Laplace-P-splines.

curelps

Promotion time cure model with Laplace P-splines.

gamlps.object

Object resulting from the fit of a generalized additive model.

gamlps

Bayesian generalized additive modeling with Laplace-P-splines.

lt

Specification of covariates entering the long-term part in a promotion...

penaltyplot

Plot the approximate posterior distribution of the penalty vector.

plot.amlps

Plot smooth functions of an additive model object.

plot.coxlps

Plot baseline hazard and survival curves from a coxlps object.

plot.curelps

Plot estimated survival functions and cure probability for the promoti...

plot.gamlps

Plot smooth functions of a generalized additive model object.

print.amlps

Print an additive partial linear model object.

print.coxlps

Print a coxlps object.

print.curelps

Print the fit of a promotion time cure model.

print.gamlps

Print a generalized additive model object.

simcuredata

Simulation of survival times for the promotion time cure model.

simgamdata

Simulation of data for (Generalized) additive models.

simsurvdata

Simulation of right censored survival times for the Cox model.

sm

Specification of smooth terms in (g)amlps function.

snmatch

Fit a skew-normal distribution to a target density.

st

Specification of covariates entering the short-term part in a promotio...

Laplace approximations and penalized B-splines are combined for fast Bayesian inference in latent Gaussian models. The routines can be used to fit survival models, especially proportional hazards and promotion time cure models (Gressani, O. and Lambert, P. (2018) <doi:10.1016/j.csda.2018.02.007>). The Laplace-P-spline methodology can also be implemented for inference in (generalized) additive models (Gressani, O. and Lambert, P. (2021) <doi:10.1016/j.csda.2020.107088>). See the associated website for more information and examples.