Learn R Programming

eatTools (version 0.7.8)

pwc: Part-whole correlation for numeric data frames

Description

Computes the part-whole correlation (correlation of an item with the whole scale except for this item)

Usage

pwc(dat)

Value

A data.frame with three columns: First column item identifier, second column with conventional item-scale correlation, third column with part-whole correlation

Arguments

dat

a data.frame with numeric columns (items)

Examples

Run this code
dat <- data.frame ( item1 = c(0,1,1,3), item2 = c(2,3,1,3), item3 = c(1, NA, 3,3))
pwc(dat)

Run the code above in your browser using DataLab