makevec_prop: Helper functions

View source: R/boot_helper.R

makevec_propR Documentation

Helper functions

Description

Several helper functions that compute bootstrap confidence limits from proportions.

Usage

makevec_prop(prop, n)

Arguments

prop

A single finite proportion between 0 and 1.

n

A positive whole-number sample size. n * prop must be a whole number.

Examples

# Expand a choice proportion of 0.25 among 20 mock witnesses into a
# binary choice vector
makevec_prop(0.25, 20)

r4lineups documentation built on Nov. 10, 2026, 1:08 a.m.