prepare | R Documentation |
Prepare the model for analysis.
prepare(
x,
intercept,
prior.mean,
prior.sd,
prior.scale,
prior.df,
group,
multinomial = FALSE,
outcome.cats = NULL
)
x |
The design, or input, matrix, of dimension nobs x nvars; each row is an observation vector. |
intercept |
Logical. When |
prior.mean |
A vector of prior means for the parameters. If
|
prior.sd |
A vector defining prior standard deviations in the normal
priors of the coefficients. If provided, they are starting values of the
prior standard deviations for the iterative algorithms. This argument is
used within the function |
prior.scale |
A vector containing the prior scale values for double exponential or t prior. In the spike-and-slab lasso model, this is generally only the slab prior scale. |
prior.df |
A scalar defining the prior degrees of freedom when the t-distribution is used as a prior for the parameters. |
group |
A numeric vector, or an integer, or a list indicating the
groups of predictors. If |
multinomial |
Logical. When |
outcome.cats |
Either an integer denoting the number of response
categories, or a vector containing outcome categories. Only used when
|
A list containing necessary elements for Bayesian analysis in the
package BhGLM
.
This function is a modified version the function prepare
from
the R package BhGLM
.
Friedman:2010ssnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.