The bamlss package provides a modular computational framework for flexible Bayesian regression models (and beyond). Users can specify complex models using the familiar formula syntax of R. The package supports commonly used extractor functions like plot()
, summary()
, predict()
, etc. Moreover, users can specify their own model term constructors or even model fitting engines, Bayesian or frequentist.
## Posterior mode optimization.
function(x, y, family, start = NULL, weights = NULL, offset = NULL,
opt_bfit <-update = "iwls", criterion = c("AICc", "BIC", "AIC"), ..) { }
## MCMC Sampler.
function(x, y, family, start = NULL, weights = NULL, offset = NULL,
sam_GMCMC <-n.iter = 1200, burnin = 200, thin = 1, verbose = TRUE, step = 20, ...) { }
## Gradient boosting.
function(x, y, family, weights = NULL, offset = NULL,
opt_boost <-nu = 0.1, nu.adapt = TRUE, df = 4, maxit = 400, ...) { }
## Lasso.
function(x, y, start = NULL, adaptive = TRUE,
opt_lasso <-lower = 0.001, upper = 1000, nlambda = 100, lambda = NULL, ...) { }