A simple Bernoulli model for testing purposes
test_model.Rd
A test Bernoulli model taken from Stan documentation.
Arguments
- N
integer; number of trials
- y
integer; vector of Bernoulli outcomes
- ...
other arguments passed to
cmdstanr::sample()
Value
Object of class cmdstanr::CmdStanMCMC containing the samples.
Details
Calling this function(s) will load the model object using
get_model()
and sample from the posterior using the cmdstanr::sample()
method.
See also
Use get_model()
to return Stan model object of class
cmdstanr::CmdStanModel without fitting it.
Other models in this package:
maltiel_bem
,
maltiel_rdm
,
zheng_bem
,
zheng_gp