make_scoring_matrix_trivial: Make scoring matrix

Description Usage Arguments Value Examples

View source: R/scoring_matrices.R

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

1
2
3
4
5
make_scoring_matrix_trivial(
  responses,
  nTraits = 1L,
  traitsNames = paste0("F", 1L:nTraits)
)

Arguments

responses

vector of available responses (categories) - can be a character vector or positive integer describing number of responses

nTraits

optionally number of traits affecting the item response; disregarded if traitsNames are provided

traitsNames

optionally character vector containing names of the traits

Value

matrix of integers

Examples

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

rstyles documentation built on July 23, 2021, 5:07 p.m.