Learn R Programming

airt (version 0.2.2)

make_polyIRT_data: Converts continuous performance data to polytomous data with 5 categories.

Description

This function converts continous performance data to polytomous data with 5 categories

Usage

make_polyIRT_data(df, method = 1)

Value

The polytomous data frame.

Arguments

df

The input data in a dataframe or a matrix

method

If 1, then the data is an accuracy measure between 0 and 1. If 2, then the performance data is possibly has a bigger range. So we divide it into 5 equal bins to make it polytomous.

Examples

Run this code
set.seed(1)
x1 <- runif(500)
x2 <- runif(500)
x3 <- runif(500)
x <- cbind(x1, x2, x3)
xout <- make_polyIRT_data(x)

Run the code above in your browser using DataLab