RWGJ: RWGJ: Within-Group Agreement (multiple items)

View source: R/RWGJ.R

RWGJR Documentation

RWGJ: Within-Group Agreement (multiple items)

Description

This function estimates James, Demaree, & Wolf's (1984) within-group agreement statistic for a multi-item scale, denoted RWGJ.

Usage

RWGJ(x, grpid, scale, model, reset = F, cutoff)

Arguments

x

Items to use when estimating RWGJ

grpid

Grouping/clustering variable

scale

Number of scale points ranging from 5 to 11

model

User-supplied description of multilevel measurement model (e.g., consensus)

reset

Logical option for handling negative estimates of RWG; FALSE retains negative values; TRUE resets values to 0

cutoff

User-supplied cutoff value for justifying data aggregation

Details

The input consists of a data frame, and the names of the grouping variable and item. The output consists of a data frame containing the group names, the variance within each group, and estimates of rwg based on multiple null response distributions (see LeBreton and Senter, 2008).

Link to James, Demaree, & Wolf (1984): Link to LeBreton & Senter (2008): Link to LeBreton, Moeller, & Senter (2021):

Value

List containing results of analysis.

Examples

data(lq2002, package = "multilevel")
RWGJ(x = lq2002[,c(3:13)], grpid = lq2002$COMPID, model = "consensus",
     scale = c(1,5), reset = TRUE, cutoff=0.50)

james-lebreton/WGA documentation built on Oct. 17, 2022, 4:05 a.m.