Model object, ready for sampling
Model object, ready for sampling
cmdstanr::sample() Prepare data for running model
cmdstanr_version
Version of cmdstanr used to build models
cmdstan_version
Version of cmdstan used to build models
standata
used to fit model
form
used to fit model
prior
used to fit model
cmdstanmodel
Underlying cmdstanr::CmdStanModel
new()
Model$new(d, form, prior = Prior$new())
d
dataframe from which to make standata.
form
Form of the neuromodulation (additive or multiplicative)
prior
A Prior
sample()
Draw samples from the posterior of the model
Model$sample(data = NULL, ...)
data
optional new data. If present, this will be used instead of the internally stored data (created when the object was initialized)
...
arguments passed to cmdstanr::sample().
make_standata()
Model$make_standata(d)
d
dataframe from which to make standata.
named list
clone()
The objects of this class are cloneable with this method.
Model$clone(deep = FALSE)
deep
Whether to make a deep clone.