estimate_logit_score: Estimate a Cross-Sectional Logit Score

View source: R/model-criticism.R

estimate_logit_scoreR Documentation

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")
)

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.

Value

numeric vector of logit scores (length = n individuals)

Examples

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

guess documentation built on Aug. 3, 2026, 9:07 a.m.