Description Usage Arguments Details Value
The function fits the GLM model in Bayesian framework with some covariate coefficients having the spike and slab prior.
1 2 |
formula |
an object of class formula. See Details. |
family |
the likelihood family to be used in the model, see family. |
data |
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), much like in glm. |
intercept |
should the intercept term be explicitely added. |
y |
Alternative for formula&data: The response |
X |
Alternative for formula&data: The SS covariates |
Z |
Alternative for formula&data: The non-SS (regular Gaussian) covariates |
method |
Use 'simultaneous' or 'sequential'. See Details. |
verbose |
print additional runtime messages |
eps |
the approximation loop convergence threshold |
The formula should use the special tags 'ss' for those covariates that are set the spike and slab prior. Without it, we assume regular Gaussian prior.
Using the y,X,Z variables is useful to avoid overhead in formula parsing when data is large. This is then equal to the formula y ~ ss(X) + Z
An object of class vbglmss.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.