RWGJ | R Documentation |
This function estimates James, Demaree, & Wolf's (1984) within-group agreement statistic for a multi-item scale, denoted RWGJ.
RWGJ(x, grpid, scale, model, reset = F, cutoff)
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 |
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):
List containing results of analysis.
data(lq2002, package = "multilevel") RWGJ(x = lq2002[,c(3:13)], grpid = lq2002$COMPID, model = "consensus", scale = c(1,5), reset = TRUE, cutoff=0.50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.