gen_esize_m_ci: Bootstrapped Confidence Intervals for Effective Size

Description Usage Arguments Value Examples

Description

Function for computing Effective Size (Malpass, 1981, as adjusted by Tredoux, 1998) with CIs from bootstrap df of lineups

Usage

1
gen_esize_m_ci(lineupsizes, perc = 0.05)

Arguments

lineupsizes

A vector of bootstrapped effective sizes

perc

Defaults to .05. Can be specified by user, according to desired level of alpha (scalar)

Value

Confidence intervals for effective size

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Data:
lineup_vec <- round(runif(100, 1, 6))
k <- 6

#Use gen_boot_samples to get bootstrapped data:
bootdata <- gen_boot_samples(lineup_vec, 1000)

#Compute effective size over df of bootstrapped data:
lineupsizes <- gen_esize_m(bootdata, 6)

#Call:
gen_esize_m_ci(lineupsizes)
gen_esize_m_ci(lineupsizes, perc = .025)
gen_esize_m_ci(lineupsizes, perc = .975)

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