| fit_aidif | R Documentation |
The primary estimation function of aiDIF. Runs the robust DIF
procedure under both human and AI scoring using the built-in IRLS engine
(estimate_robust_scale), then tests for Differential AI
Scoring Bias (DASB).
fit_aidif(
human_mle,
ai_mle = NULL,
alpha = 0.05,
scale_by = "pooled",
tol = 1e-07,
maxit = 100L
)
human_mle |
A validated mle list for human-scored data. |
ai_mle |
A validated mle list for AI-scored data, or |
alpha |
Significance level. Default |
scale_by |
Denominator for standardising intercept differences:
|
tol |
IRLS convergence tolerance. Default |
maxit |
Maximum IRLS iterations. Default |
An object of class "aidif".
estimate_robust_scale,
scoring_bias_test, simulate_aidif_data
dat <- simulate_aidif_data(n_items = 6, seed = 1)
mod <- fit_aidif(dat$human, dat$ai)
print(mod)
summary(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.