score_groups function

Generate two Score Groups

Generate two Score Groups

Creates a grouping variable which divides the sample in two groups (high and low scorers) of roughly equal size, without taking into account persons with extreme scores.

score_groups(dat.items, label = FALSE)

Arguments

  • dat.items: A data frame with the responses to the items.
  • label: If TRUE the levels of the group factor are named according to the split used, if FALSE (default) the group factor has levels 1 and 2.

Returns

Score group variable, a factor with two levels.

Details

The score groups are used for tests of item homogeneity.

  • Maintainer: Marianne Mueller
  • License: GPL-2
  • Last published: 2022-08-27

Useful links