example_gaussian_stan_model | R Documentation |
StanModel
object for a Gaussian model.Requires BridgeStan package to be installed. Generative model is assumed to
be of the form y ~ normal(mu, sigma)
for unknown mu ~ normal(0, 3)
and
sigma ~ half_normal(0, 3)
.
example_gaussian_stan_model(n_data = 50, seed = 1234L)
n_data |
Number of independent data points |
seed |
Integer seed for Stan model. |
BridgeStan StanModel object.
model <- example_gaussian_stan_model(n_data = 5)
model$param_names()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.