ModelFit object, output from sampling
ModelFit object, output from sampling
standata
The original data that was used to prepare the model
cmdstanmcmc
CmdStanMCMC
object
new()
Create a new ModelFit You probably don't want to call this
ModelMCMC$new(standata, cmdstanmcmc)
standata
Data that were used to generate the samples
cmdstanmcmc
cmdstanr::CmdStanMCMC
output by model
A new ModelFit
object.
Estimate the LOO score
loo()
ModelMCMC$loo(cores = 1)
cores
int
A loo::psis_loo
object
create voxel tuning function posterior
make_vtf0()
ModelMCMC$make_vtf0(cores = 1)
cores
integer number of cores over which to parallelize
posterior::draws_array
,
Likelihood function
.lfun()
ModelMCMC$.lfun(data_i, draws)
data_i
single row of data
draws
posterior
The likelihood of a single observation Log-Likelihood function
.llfun()
ModelMCMC$.llfun(data_i, draws)
data_i
single row of data
draws
posterior
The log-likelihood of a single observation
clone()
The objects of this class are cloneable with this method.
ModelMCMC$clone(deep = FALSE)
deep
Whether to make a deep clone.