Description Usage Arguments Details Value References See Also Examples
Computes bootstrapped confidence intervals for lineup proportion
1 | lineup_boot_allprop(lineup_vec, k, conf = 0.95)
|
lineup_vec |
A numeric vector of lineup choices |
k |
Number of targets in lineup. Must be specified by user (scalar). |
conf |
Desired level of alpha. Defaults to 0.95. May be specified by user (scalar). |
Function that computes bootstrapped lineup proportion using 1000 bootstrap draws Calls 'boot function in 'boot' package
Returns a vector of bias corrected confidence intervals for lineup proportion for each member in a lineup
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 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 5 6 | #Data:
lineup_vec <- round(runif(100, 1, 6))
#Call:
lineuprops_ci <- lineup_boot_allprop(lineup_vec, k= 6)
lineuprops_ci <- lineup_boot_allprop(lineup_vec, k= 6, conf = 0.975)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.