Learn R Programming

examly (version 0.2.0)

pbiserial_rest: Point-biserial correlation for item analysis

Description

Calculates the correlation between a single item's score and the rest of the total score.

Usage

pbiserial_rest(item, rest)

Value

The point-biserial correlation coefficient.

Arguments

item

A numeric vector of dichotomous item scores (0/1).

rest

A numeric vector of the total scores, excluding the item.

Examples

Run this code
item1 <- c(1, 0, 1, 0, 1, 1)
rest_score <- c(10, 8, 12, 5, 9, 11)
pbiserial_rest(item1, rest_score)

Run the code above in your browser using DataLab