vfac {mcmcsae} | R Documentation |
Create a model component object for a variance factor component in the variance function of a gaussian sampling distribution
Description
This function is intended to be used on the right hand side of the formula.V
argument to
create_sampler
or generate_data
.
Usage
vfac(
factor = "local_",
prior = pr_invchisq(df = 1, scale = 1),
name = "",
debug = FALSE
)
Arguments
factor |
The name of a factor variable. The name |
prior |
the prior assigned to the variance factors. Currently the prior can be inverse chi-squared
or exponential, specified by a call to |
name |
The name of the variance model component. This name is used in the output of the MCMC simulation
function |
debug |
If |
Value
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.