Learn R Programming

guess (version 0.7.0)

normalize_responses: Normalize raw item responses

Description

Normalize raw item responses

Usage

normalize_responses(
  x,
  na_as = c("dk", "missing"),
  missing_action = c("omit", "error")
)

Value

character vector containing "0", "1", "d", or NA

Arguments

x

response vector

na_as

classification of NA responses

missing_action

structural missingness handling