lineup_boot_allprop: Confidence intervals for lineup proportion

Description Usage Arguments Details Value References See Also Examples

Description

Computes bootstrapped confidence intervals for lineup proportion

Usage

1
lineup_boot_allprop(lineup_vec, k, conf = 0.95)

Arguments

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).

Details

Function that computes bootstrapped lineup proportion using 1000 bootstrap draws Calls 'boot function in 'boot' package

Value

Returns a vector of bias corrected confidence intervals for lineup proportion for each member in a lineup

References

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.

See Also

boot: https://cran.r-project.org/web/packages/boot/boot.pdf

Examples

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)

tmnaylor/r4lineups documentation built on May 10, 2019, 8:30 a.m.