Learn R Programming

guess (version 0.7.0)

estimate_logit_score: Estimate a Cross-Sectional Logit Score

Description

Computes the logit of each person's proportion correct. This is a descriptive score, not a fitted item-response model.

Usage

estimate_logit_score(
  responses,
  na_as = c("dk", "missing"),
  missing_action = c("omit", "error")
)

Value

numeric vector of logit scores (length = n individuals)

Arguments

responses

data.frame of binary responses (0/1)

na_as

classification of NA responses

missing_action

structural missingness handling

Details

Observed d/DK responses are scored as incorrect in this binary correctness baseline. They remain a distinct response category in the LCA functions.

Examples

Run this code
sim <- simulate_lca(n = 100, seed = 123)
score_pre <- estimate_logit_score(sim$pre)
score_post <- estimate_logit_score(sim$post)

Run the code above in your browser using DataLab