example_gaussian_stan_model {rmcmc}R Documentation

Construct an example BridgeStan StanModel object for a Gaussian model.

Description

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).

Usage

example_gaussian_stan_model(n_data = 50, seed = 1234L)

Arguments

n_data

Number of independent data points y to generate and condition model against from normal(0, 1).

seed

Integer seed for Stan model.

Value

BridgeStan StanModel object.

Examples


model <- example_gaussian_stan_model(n_data = 5)
model$param_names()


[Package rmcmc version 0.1.1 Index]