Posterior draws of respondent proficiencySource:
Calculate posterior draws of respondent proficiency. Optionally retain all posterior draws or return only summaries of the distribution for each respondent.
An object of class
measrdcm. Generated from
Optional new data. If not provided, the data used to estimate the model is scored. If provided,
newdatashould be a data frame with 1 row per respondent and 1 column per item. All items that appear in
newdatashould appear in the data used to estimate
Optional. Variable name of a column in
newdatathat contains respondent identifiers.
NULL(the default) indicates that no identifiers are present in the data, and row numbers will be used as identifiers. If
newdatais not specified and the data used to estimate the model is scored, the
resp_idis taken from the original data.
An R expression specifying how missing data in
datais coded (e.g.,
-99, etc.). The default is
Should summary statistics be returned instead of the raw posterior draws? Only relevant if the model was estimated with
method = "mcmc". Default is
The percentiles to be computed by the
[stats::quantile()]function. Only relevant if the model was estimated with
method = "mcmc". Only used if
A list with two elements:
If summary is
FALSE, each element is a tibble with the number of rows
equal to the number of draws in
object with columns:
.draw, the respondent identifier, and one column of
probabilities for each of the possible classes.
If summary is
TRUE, each element is a tibble with one row per respondent
and class or attribute, and columns of the respondent identifier,
mean, and one column for every value specified in