example_gaussian_stan_model: Construct an example BridgeStan 'StanModel' object for a...

View source: R/bridges.R

example_gaussian_stan_modelR 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()


rmcmc documentation built on April 3, 2025, 5:27 p.m.