fbms.mlik.master | R Documentation |
This function serves as a unified interface to compute the log marginal likelihood for different regression models and priors by calling specific log likelihood functions.
fbms.mlik.master(
y,
x,
model,
complex,
mlpost_params = list(family = "gaussian", beta_prior = list(type = "g-prior"), r =
NULL)
)
y |
A numeric vector containing the dependent variable. |
x |
A matrix containing the precalculated features (independent variables). |
model |
A logical vector indicating which variables to include in the model. |
complex |
A list of complexity measures for the features. |
mlpost_params |
A list of parameters controlling the model family, prior, and tuning parameters. Key elements include:
|
A list with elements:
crit |
Log marginal likelihood combined with the log prior. |
coefs |
Posterior mode of the coefficients. |
fbms.mlik.master(y = rnorm(100),
x = matrix(rnorm(100)),
c(TRUE,TRUE),
list(oc = 1),
mlpost_params = list(family = "gaussian", beta_prior = list(type = "g-prior", a = 2),
r = exp(-0.5)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.