f_gamma | R Documentation |
These functions are intended for use in the family
argument of create_sampler
.
In future versions these functions may gain additional arguments, but currently the corresponding
functions gaussian
and binomial
can be used as well.
f_gamma(
link = "log",
shape.vec = ~1,
shape.prior = pr_gamma(0.1, 0.1),
control = set_MH(type = "RWLN", scale = 0.2, adaptive = TRUE)
)
f_gaussian_gamma(link = "identity", var.data, ...)
f_poisson(link = "log", size = 100)
f_gaussian(link = "identity")
f_binomial(link = c("logit", "probit"))
f_negbinomial(link = "logit")
f_multinomial(link = "logit", K = NULL)
link |
the name of a link function. Currently the only allowed link functions are:
|
shape.vec |
optional formula specification of unequal shape parameter for gamma family |
shape.prior |
prior for gamma shape parameter. Supported prior distributions:
|
control |
options for the Metropolis-Hastings algorithm employed
in case the shape parameter is to be inferred. Function |
var.data |
the (variance) data for the gamma part of family |
... |
further arguments passed to |
size |
size or dispersion parameter of the negative binomial distribution used internally to approximate the Poisson distribution. This should be set to a relatively large value (default is 100), corresponding to negligible overdispersion, to obtain a good approximation. However, too large values may cause slow MCMC exploration of the posterior distribution. |
K |
number of categories for multinomial model; this must be specified for prior predictive sampling. |
A family object.
J.W. Miller (2019). Fast and Accurate Approximation of the Full Conditional for Gamma Shape Parameters. Journal of Computational and Graphical Statistics 28(2), 476-480.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.