| log_mll | R Documentation |
Calculate the log marginal likelihood with bridge sampling (Meng & Wong,
1996). This is a wrapper around bridgesampling::bridge_sampler().
Therefore, log marginal likelihood calculation is currently only available
for models estimated with {rstan} using MCMC.
log_mll(x, ..., force = FALSE)
x |
A measrdcm object estimated with
|
... |
Unused. |
force |
If the criterion has already been added to the
model object with |
The estimate of the log marginal likelihood.
Meng, X.-L., & Wong, W. H. (1996). Simulating ratios of normalizing constants via a simple identity: A theoretical exploration. Statistical Sinica, 6(4), 831-860. https://www.jstor.org/stable/24306045
model_spec <- dcm_specify(
qmatrix = dcmdata::mdm_qmatrix,
identifier = "item"
)
model <- dcm_estimate(
dcm_spec = model_spec,
data = dcmdata::mdm_data,
identifier = "respondent",
method = "variational",
seed = 63277
)
log_mll(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.