| score | R Documentation |
Calculate posterior draws of respondent proficiency. Optionally retain all posterior draws or return only summaries of the distribution for each respondent.
score(
x,
newdata = NULL,
missing = NA,
identifier = NULL,
summary = TRUE,
probs = c(0.025, 0.975),
force = FALSE
)
x |
An estimated model (e.g., from |
newdata |
Optional new data. If not provided, the data used to estimate
the model is scored. If provided, |
missing |
An |
identifier |
Optional. Variable name of a column in |
summary |
Should summary statistics be returned instead of the raw
posterior draws? Only relevant if the model was estimated with a method
that results in posterior distributions (e.g., "mcmc", "variational").
Default is |
probs |
The percentiles to be computed by the |
force |
If respondent estimates have already been added to the model
object with |
A list with two elements: class_probabilities and
attribute_probabilities.
If summary is FALSE, each element is a tibble with one row per
respondent. The columns include the respondent identifier, and one column
of probabilities for each of the possible classes or attributes (as
posterior::rvar() objects).
If summary is TRUE, each element is a tibble with one row per respondent
and class or attribute. The columns include the respondent identifier,
class or attribute, mean, and one column for every value specified in
probs.
rstn_mdm_lcdm <- dcm_estimate(
dcm_specify(dcmdata::mdm_qmatrix, identifier = "item"),
data = dcmdata::mdm_data,
missing = NA,
identifier = "respondent",
method = "optim",
seed = 63277,
backend = "rstan"
)
score(rstn_mdm_lcdm, summary = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.