Description Public fields Active bindings Methods See Also
Model object, ready for sampling
Model object, ready for sampling
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, id_var, prior = Prior$new())
d
dataframe from which to make standata.
form
Form of the neuromodulation (additive or multiplicative)
id_var
Name of column indexing ids
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, id_var)
d
dataframe from which to make standata.
id_var
Name of column indexing units (e.g., voxels, cells). Column must be a factor.
named list
clone()
The objects of this class are cloneable with this method.
Model$clone(deep = FALSE)
deep
Whether to make a deep clone.
cmdstanr::sample() Prepare data for running model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.