Learn R Programming

irt (version 0.1.1)

item_analysis: Item Analysis Function

Description

Item Analysis Function

Usage

item_analysis(resp, criterion = NULL, suppress_output = FALSE)

Arguments

resp

A matrix or data.frame containing the item responses.

criterion

Provide a continuous criterion variable such as a total raw score, or theta score that will be used in the calculation of correlation calculations. If this value is NULL, the total score will be used.

suppress_output

If TRUE, the function will suppress console output. Default value is FALSE

Value

A list of

'id'

Item ID.

'n'

Number of examinees responded this item.

'pval'

p-value, proportion of examinees correctly answered items.

'pbis'

Point biserial correlation.

'bis'

Biserial correlation.

'pbis_adj'

Point biserial correlation between item and total score without this item.

'bis_adj'

Biserial correlation between item and total score without this item.

Examples

Run this code
# NOT RUN {
theta <- rnorm(100)
ip <- generate_ip(n = 20)
resp <- sim_resp(ip = ip, theta = theta, prop_missing = .2)
# Item analysis based on total scores
item_analysis(resp)
# Item analysis based on theta scores
item_analysis(resp, criterion = theta)

# }

Run the code above in your browser using DataLab