View source: R/robust_engine.R
| estimate_robust_scale | R Documentation |
Estimates a robust location parameter for the vector of IRT scaling functions using iteratively re-weighted least squares (IRLS) with the bi-square loss. This is the core estimation engine of aiDIF.
estimate_robust_scale(
mle,
alpha = 0.05,
scale_by = "pooled",
tol = 1e-07,
maxit = 100L
)
mle |
A validated mle list. |
alpha |
Significance level controlling the bi-square
tuning parameter |
scale_by |
Scaling denominator; passed to
|
tol |
Convergence tolerance. Default |
maxit |
Maximum IRLS iterations. Default |
A list of class rdif_fit with elements:
estEstimated robust scale parameter.
weightsBi-square item weights.
rho_valueValue of objective at solution.
n_iterNumber of iterations used.
kTuning parameter used.
yRaw scaling function values.
vcov_estCovariance matrix of y at solution.
dif_testWald item-level DIF test (data.frame).
dtf_testWald test of differential test functioning.
dat <- simulate_aidif_data(n_items = 5, seed = 1)
fit <- estimate_robust_scale(dat$human)
print(fit$est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.