lineup_prop_boot: Bootstrapped lineup proportion

Description Usage Arguments Details References See Also Examples

View source: R/lineup_prop_boot.R

Description

Base function for computing bootstrapped lineup proportion for a lineup member

Usage

1
lineup_prop_boot(lineup_vec, d, target_pos)

Arguments

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

Details

Function to call when bootstrap resampling using boot function

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 empirically 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
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")

r4lineups documentation built on May 2, 2019, 7:10 a.m.