init_params_mean | R Documentation |
Initialize the parameters for the model y ~ N(mu0, sigma^2) with a flat prior on mu0.
init_params_mean(y)
y |
|
a named list params
containing
mu
: vector of conditional means (fitted values)
sigma
: the conditional standard deviation
coefficients
: a named list of parameters that determine mu
The only parameter in coefficients
is mu0
.
Although redundant here, this parametrization is useful in other functions.
# Example:
params = init_params_mean(y = 1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.