
initialValues
initialValues.RdObtain the list of initial values to be passed to the Stan sampler.
Usage
initialValues(object, ...)
# S3 method for StanModel
initialValues(object, n_chains, ...)
# S3 method for LinkComponent
initialValues(object, n_chains, ...)
# S3 method for Link
initialValues(object, ...)
# S3 method for JointModel
initialValues(object, n_chains, ...)Arguments
- object
where to get the initial values from.
- ...
Not currently used.
- n_chains
the number of initial values to generate. See details.
Details
There are multiple ways of specifying initial values to Stan, see the init argument
in cmdstanr::model-method-sample for full details. Within this package we supply
initial values via a list of lists where each inner list contains the initial values
for a single chain. As such the n_chains argument specifies the number of inner lists
to generate.
See the Vignette for further details of how to specify initial values.
See also
Other LinkComponent:
LinkComponent-class,
as.StanModule.LinkComponent(),
as.list.LinkComponent(),
getParameters()