score_groups: Generate two Score Groups

View source: R/Summary.R

score_groupsR Documentation

Generate two Score Groups

Description

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.

Usage

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.

Details

The score groups are used for tests of item homogeneity.

Value

Score group variable, a factor with two levels.


iarm documentation built on Aug. 27, 2022, 5:06 p.m.