gen | R Documentation |
This function is intended to be used on the right hand side of the formula
argument to
create_sampler
or generate_data
.
gen(
formula = ~1,
factor = NULL,
remove.redundant = FALSE,
drop.empty.levels = FALSE,
X = NULL,
var = NULL,
prior = NULL,
Q0 = NULL,
PX = NULL,
priorA = NULL,
strucA = GMRF_structure(),
R0 = NULL,
RA = NULL,
constr = NULL,
S0 = NULL,
SA = NULL,
formula.gl = NULL,
a = 1000,
name = "",
sparse = NULL,
control = gen_control(),
debug = FALSE
)
formula |
a model formula specifying the effects that vary over the levels of
the factor variable(s) specified by argument |
factor |
a formula with factors by which the effects specified in the |
remove.redundant |
whether redundant columns should be removed from the model matrix
associated with |
drop.empty.levels |
whether to remove factor levels without observations. |
X |
A (possibly sparse) design matrix. If |
var |
the (co)variance structure among the varying effects defined by |
prior |
the prior specification for the variance parameters of the random effects.
These can currently be specified by a call to |
Q0 |
precision matrix associated with |
PX |
whether parameter expansion should be used. Default is
|
priorA |
prior distribution for scale factors at the variance scale associated with |
strucA |
this option can be used to modify the default structure encoded by
|
R0 |
an optional equality restriction matrix acting on the coefficients defined by |
RA |
an optional equality restriction matrix acting on the coefficients defined by |
constr |
whether constraints corresponding to the null-vectors of the precision matrix
are to be imposed on the vector of coefficients. By default this is |
S0 |
an optional inequality restriction matrix acting on the coefficients defined by |
SA |
an optional inequality restriction matrix acting on the coefficients defined by |
formula.gl |
a formula of the form |
a |
only used in case the effects are MLiG distributed, as
assumed in case of a gamma sampling distribution, or for
gaussian variance modelling. In those cases |
name |
the name of the model component. This name is used in the output of the MCMC simulation
function |
sparse |
whether the model matrix associated with |
control |
a list with further computational options. These options can
be specified using function |
debug |
if |
An object with precomputed quantities and functions for sampling from prior or conditional posterior distributions for this model component. Intended for internal use by other package functions.
J. Besag and C. Kooperberg (1995). On Conditional and Intrinsic Autoregression. Biometrika 82(4), 733-746.
C.M. Carvalho, N.G. Polson and J.G. Scott (2010). The horseshoe estimator for sparse signals. Biometrika 97(2), 465-480.
L. Fahrmeir, T. Kneib and S. Lang (2004). Penalized Structured Additive Regression for Space-Time Data: a Bayesian Perspective. Statistica Sinica 14, 731-761.
A. Gelman (2006). Prior distributions for variance parameters in hierarchical models. Bayesian Analysis 1(3), 515-533.
A. Gelman, D.A. Van Dyk, Z. Huang and W.J. Boscardin (2008). Using Redundant Parameterizations to Fit Hierarchical Models. Journal of Computational and Graphical Statistics 17(1), 95-122.
T. Park and G. Casella (2008). The Bayesian Lasso. Journal of the American Statistical Association 103(482), 681-686.
H. Rue and L. Held (2005). Gaussian Markov Random Fields. Chapman & Hall/CRC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.