Evaluates frequencies and discrimination parameters of codes and categories
evaluate_psychometrics.RdEvaluates frequencies and discrimination parameters of codes and categories
Usage
evaluate_psychometrics(
design_coded,
units,
domains = NULL,
max_n_categories = 10,
overwrite = FALSE,
identifiers = c("group_id", "login_name", "login_code")
)Arguments
- design_coded
Tibble. Response data within the design merged by
complete_design().- units
Tibble. Unit data retrieved from the IQB Studio after setting the argument
metadata = TRUEforget_units()– otherwise the item values could only be inferred from the variable source tree, i.e., item scores are taken from variable scores that are no source variables for other derived variables. Could optionally also containunit_codesprepared byadd_coding_scheme()(saves some time).- domains
Tibble. Contains columns
domainandunit_key. Currently, the routine only works for one-dimensionaldomain, i.e., there is only onedomainfor eachunit_key. If not specified, theworkspace_labelis regarded as the unit domain.- max_n_categories
Tibble. Maximum number of categories to check for category frequencies for list values, e.g.,
[[01_1,01_2]]. Defaults to10.- overwrite
Logical. Should column
unit_codesbe overwritten if they exist onunits. Defaults toFALSE, i.e.,unit_codeswill be used if they were added tounitsbeforehand by applyingadd_coding_schemes().- identifiers
Character. Contains person identifiers of the dataset
coded. Defaults toc("group_id", "login_name", "login_code")which corresponds to the identifiers of the IQB Testcenter.