idi: Item Discrimation Index

Description Usage Arguments Value Examples

View source: R/idi.R

Description

Calculates the item discrimation index

Usage

1
idi(data, item, perc_cut, use = "complete.obs", na.rm = T)

Arguments

data

data frame

item

An item (as a vector)

perc_cut

A number that defines the upper and lower percentile to use for the high and low achieving groups

use

How should missing data be handled? See the cor function. Default is "complete.obs"

na.rm

logical. Should missing values be removed? Defualt is TRUE.

Value

The item discrimination index

Examples

1
idi(SAPA, SAPA$reason.4, perc_cut = .27)

cddesja/hemp documentation built on April 7, 2021, 9:24 p.m.