View source: R/denominator_sensitivity.R
| denominator_sensitivity | R Documentation |
Computes the LTG-SMD estimate under each of six symmetric denominator rules applied to the group-specific reference-sample true-score standard deviations: geometric (default), arithmetic, harmonic, root mean square, minimum, and maximum. This profile mirrors the six symmetric denominators compared in Simulation D (Section 5.3 of the companion paper; Supplementary Section D.4) and is recommended as supplementary material (Supplementary Section F.2.4), particularly when group-specific reference true-score variances differ markedly.
denominator_sensitivity(x)
x |
An "ltg_smd" object. |
A data frame with one row per denominator rule, columns
denominator, D, estimate. Class
"denominator_sensitivity".
set.seed(2026)
gen_items <- function(n, shift = 0) {
true <- rnorm(n)
data.frame(
item1 = true + rnorm(n, sd = 0.6) + shift,
item2 = true + rnorm(n, sd = 0.6) + shift,
item3 = true + rnorm(n, sd = 0.6) + shift,
item4 = true + rnorm(n, sd = 0.6) + shift
)
}
study_df <- rbind(
cbind(condition = "control", gen_items(15)),
cbind(condition = "treatment", gen_items(15, shift = 0.5))
)
reference_df <- rbind(
cbind(condition = "control", gen_items(30)),
cbind(condition = "treatment", gen_items(30, shift = 0.5))
)
result <- compute_ltg_smd(study_df, reference_df,
group_var = "condition", items = c("item1", "item2", "item3", "item4"),
group_levels = c(reference = "control", focal = "treatment"))
sens <- denominator_sensitivity(result)
print(sens)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.