View source: R/scoring_matrices.R
make_scoring_matrix_trivial | R Documentation |
Makes trivial response matrix, corresponding to the most simple,
the same for each trait GPCM scoring scheme. This function may be useful if
one wants to use generate_slopes
and
generate_intercepts
functions to generate items' parameters
with no reference to response styles.
make_scoring_matrix_trivial(
responses,
nTraits = 1L,
traitsNames = paste0("F", 1L:nTraits)
)
responses |
a vector of available responses (categories) - can be a character vector or positive integer describing number of responses |
nTraits |
optionally the number of traits affecting the item response;
disregarded if |
traitsNames |
optionally a character vector containing names of the traits |
a matrix of integers
make_scoring_matrix_trivial(5, 2)
make_scoring_matrix_trivial(5, traitsNames = c("A", "B"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.