View source: R/multid_functions.R
| compare_multid | R Documentation |
Computes the difference (x minus y) on every Multi-d' index,
for example simultaneous versus sequential lineups, or high- versus
low-similarity lineups. When both objects carry bootstrap draws, standard
errors, percentile intervals and normal-approximation p-values are given
for each difference. The two conditions are treated as independent samples:
the standard error is the square root of the sum of the two bootstrap
variances, and the interval is taken from differences between randomly
re-paired draws, so the result does not depend on whether the two fits used
the same seed.
compare_multid(x, y, labels = c("x", "y"), seed = NULL)
x, y |
Objects of class |
labels |
Names for the two conditions. |
seed |
Optional random seed for re-pairing the bootstrap draws. |
A data frame of class "multid_comparison".
# Simultaneous vs sequential lineups, Lee & Penrod's (2019) Table 3
sim <- make_multid(counts = c(G = 52, Fp = 25, Rp = 24, I = 28, Fa = 26, Ra = 46),
correction = "none")
sqn <- make_multid(counts = c(G = 44, Fp = 19, Rp = 39, I = 15, Fa = 17, Ra = 68),
correction = "none")
compare_multid(sim, sqn, labels = c("simultaneous", "sequential"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.