validate_data: Validate Tiered Assessment Data

View source: R/validate_data.R

validate_dataR Documentation

Validate Tiered Assessment Data

Description

Checks whether a data frame is suitable for tiered binary response conversion.

Usage

validate_data(data, n_tier)

Arguments

data

A data frame containing binary tier responses.

n_tier

Number of tiers in each item.

Value

Invisibly returns TRUE if the data are valid.

Examples

data <- data.frame(
  Jwb_1 = c(1, 1, 0),
  Als_1 = c(1, 0, 0),
  Jwb_2 = c(0, 1, 1),
  Als_2 = c(1, 0, 1)
)

validate_data(data, n_tier = 2)


ConverTier2 documentation built on Nov. 12, 2026, 1:07 a.m.