make_scoring_matrix_trivial: Make scoring matrix

View source: R/scoring_matrices.R

make_scoring_matrix_trivialR Documentation

Make scoring matrix

Description

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.

Usage

make_scoring_matrix_trivial(
  responses,
  nTraits = 1L,
  traitsNames = paste0("F", 1L:nTraits)
)

Arguments

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 are provided

traitsNames

optionally a character vector containing names of the traits

Value

a matrix of integers

Examples

make_scoring_matrix_trivial(5, 2)
make_scoring_matrix_trivial(5, traitsNames = c("A", "B"))

tzoltak/rstyles documentation built on Dec. 4, 2024, 5:16 p.m.