Model object, ready for sampling

Model object, ready for sampling

See also

cmdstanr::sample() Prepare data for running model

Public fields

cmdstanr_version

Version of cmdstanr used to build models

cmdstan_version

Version of cmdstan used to build models

Active bindings

standata

used to fit model

form

used to fit model

prior

used to fit model

cmdstanmodel

Underlying cmdstanr::CmdStanModel

Methods

Public methods


Method new()

Usage

Model$new(d, form, prior = Prior$new())

Arguments

d

dataframe from which to make standata.

form

Form of the neuromodulation (additive or multiplicative)

prior

A Prior


Method sample()

Draw samples from the posterior of the model

Usage

Model$sample(data = NULL, ...)

Arguments

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


Method make_standata()

Usage

Model$make_standata(d)

Arguments

d

dataframe from which to make standata.

Returns

named list


Method clone()

The objects of this class are cloneable with this method.

Usage

Model$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.