make_scoring_matrix_aem: Make scoring matrix

Description Usage Arguments Details Value Examples

View source: R/scoring_matrices.R

Description

Makes response matrix, i.e. matrix describing how each latent trait (represented in columns) affects (or not) chances to answer each response (represented in rows).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
make_scoring_matrix_aem(
  responses,
  sequence = c("mae", "mea", "aem", "ame", "ema", "eam", "simultaneous"),
  nMiddle = 2L,
  nExtreme = 1L,
  nAcquiescence = floor(length(responses)/2),
  reversed = FALSE,
  aType = c("separate", "common"),
  iType = c("separate", "common")
)

Arguments

responses

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

sequence

text: "simultaneous" or a three-letters sequence describing the order of decisions made by a respondent:

  • 'm' stands for choosing between middle category and some other category

  • 'a' stands for choosing between acquiescence response (i.e. located after/below a middle one) and some other response

  • 'e' stands for choosing between extreme category and some other category

nMiddle

(maximum) number of middle categories

nExtreme

(half of the) number of extreme categories

nAcquiescence

number of acquiescence categories

reversed

logical value - is item a reversed one? (see details)

aType

determines a way in which scoring pattern for acquiescence is generated when it appears in different branches of the IRTree (whether to create separate columns allowing for different discrimination of the acquiescence in different nodes of the tree or to create only a single column holding discrimination in different nodes of the tree constant)

iType

determines a way in which scoring pattern for additional (see the description of the 'aType' parameter above) intensity trait will be generated (see details)

Details

sequence other than "simultaneous":

For number of responses between 5 and 6 function generates scoring matrix in a way mimicking Böckenholt's approach (2017) to describe response to the item as a sequence of binary decisions involving choosing of the middle, extreme and acquiescence categories - this decisions may be made in different order, what is controlled by argument sequence.

Please note that following Böckenholt acquiescence trait is managed in a little different way that the other two. If choice involving acquiescence may be made in different nodes of IRTree (i.e. for different combinations of values in previous columns of the scoring matrix), separate column describing decision in each node (for each combination) is created by default (and names of these columns are a followed by integer index). That allows for specifying different IRT parameters for each node. Setting argument aType = "common" allows to collapse these column into one if you want to constrain model parameters between nodes in a convenient way.

With less than 5 possible responses functions apply the same logic, but not all of the three aforementioned styles can be involved because lack of variability in possible responses.

With more than 6 possible responses there must be additional trait added to scoringMatrix to describe process of choice between all the possible responses. In such a case function adds additional columns to a scoring matrix that names are i (standing for intensity) followed by an index and are filled up with scores for such combinations of values in previous columns of the scoring matrix that occur more than once. Scores in these columns are sequences of non-negative integers either increasing (reversed=FALSE) or decreasing (reversed=TRUE) that are generated independent for each unique combination of values in the previous columns and by default each of such combinations is described by a separate column (allowing for specification of different model parameters). Analogously to acquiescence trait these columns can be collapsed into one by setting iType = "common".

sequence is "simultaneous":

In this case a GPCM scoring matrix is generated mimicking approach of Plieninger (2016), i.e. assuming that response process is a simultaneous and four factors: intensity of the trait that is not a response style (column i), tendency to choose middle categories (column m) tendency to choose extreme categories (column e) and tendency to choose acquiescence categories (column a) contribute altogether to propensity of choosing each response.

Value

matrix of integers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Bockenholt 2017: 73
(bockenholtMAE5 <- make_scoring_matrix_aem(5, "mae"))
# Bockenholt 2017: 76
(bockenholtMAE6 <- make_scoring_matrix_aem(6, "mae"))
# Bockenholt 2017: 77
(bockenholtAEM6 <- make_scoring_matrix_aem(6, "aem"))
# Plieninger 2016: 39
(plieninger5 <- make_scoring_matrix_aem(5, "simultaneous"))
(plieninger5r <- make_scoring_matrix_aem(5, "simultaneous", reversed = TRUE))

# some more complicated cases:
make_scoring_matrix_aem(10, "ema", nMiddle = 3, nExtreme = 2)
make_scoring_matrix_aem(10, "ema", nMiddle = 3, nExtreme = 2,
                        aType = "common", iType = "common")
make_scoring_matrix_aem(9, "mae", nMiddle = 3, nExtreme = 2, reversed = TRUE)

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