View source: R/zzz-class-dcm-estimate.R
| dcm_estimate | R Documentation |
Estimate diagnostic classification models (DCMs; also known as cognitive diagnostic models) using 'Stan'. Models can be estimated using Stan's optimizer, or full Markov chain Monte Carlo (MCMC).
dcm_estimate(
dcm_spec,
data,
missing = NA,
identifier = NULL,
method = c("variational", "mcmc", "optim", "pathfinder"),
backend = getOption("measr.backend", "rstan"),
file = NULL,
file_refit = getOption("measr.file_refit", "never"),
...
)
dcm_spec |
A DCM specification created with |
data |
Response data. A data frame with 1 row per respondent and 1 column per item. |
missing |
An |
identifier |
Optional. Variable name of a column in |
method |
Estimation method. Options are |
backend |
Character string naming the package to use as the backend for
fitting the Stan model. Options are |
file |
Either |
file_refit |
Controls when a saved model is refit. Options are
|
... |
Additional arguments passed to Stan.
|
A measrdcm object.
model_spec <- dcm_specify(
qmatrix = dcmdata::mdm_qmatrix,
identifier = "item"
)
model <- dcm_estimate(
dcm_spec = model_spec,
data = dcmdata::mdm_data,
identifier = "respondent",
method = "optim",
seed = 63277
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.