sample_params_mean {countSTAR} | R Documentation |
Sample the parameters for a simple mean-only model
Description
Sample the parameters for the model y ~ N(mu0, sigma^2) with a flat prior on mu0 and sigma ~ Unif(0, A).
Usage
sample_params_mean(y, params)
Arguments
y |
|
params |
the named list of parameters containing
|
Value
The updated named list params
with draws from the full conditional distributions
of sigma
and coefficients
(and updated mu
).
Note
The only parameter in coefficients
is mu0
.
Although redundant here, this parametrization is useful in other functions.
[Package countSTAR version 1.0.2 Index]