Description Usage Arguments Details References See Also Examples
Base function for computing bootstrapped lineup proportion for a lineup member
1 | lineup_prop_boot(lineup_vec, d, target_pos)
|
lineup_vec |
A numeric vector of lineup choices |
d |
Indices for bootstrap sample. Argument used by boot function to select samples for bootstrapping |
target_pos |
A scalar, representing target position in lineup. Must be declared by user |
Function to call when bootstrap resampling using boot function
Davison, A.C. & Hinkley, D.V. (1997). Bootstrap methods and their application. Cambridge University Press.
Wells, G. L.,Leippe, M. R., & Ostrom, T. M. (1979). Guidelines for empirically assessing the fairness of a lineup. Law and Human Behavior, 3(4), 285-293.
boot
: https://cran.r-project.org/web/packages/boot/boot.pdf
1 2 3 4 | lineup_vec <- round(runif(100, 1, 6))
bootobject <- boot::boot(lineup_vec, lineup_prop_boot, target_pos = 3, R = 1000)
cis <- boot::boot.ci(bootobject, conf = 0.95, type = "all")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.