pwc: Part-whole correlation for numeric data frames

View source: R/pwc.r

pwcR Documentation

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)

Arguments

dat

a data.frame with numeric columns (items)

Value

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

Examples

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

eatTools documentation built on May 29, 2024, 6:03 a.m.