extrapolate_with_confidence: Extrapolate a number using pro

Description Usage Arguments Value

View source: R/utility_functions.R

Description

Extrapolate a number using pro

Usage

1
2
3
4
5
6
extrapolate_with_confidence(
  population_size,
  percentage_sampled,
  number_of_positives,
  conf_int
)

Arguments

population_size

The true size of the population

percentage_sampled

Percentage of the population sampled

number_of_positives

How many positives have been found

conf_int

Can be any of the classical two-sided values: 0.8, 0.9, 0.95

Value

Returns a list containing: - proportion of the sample that was marked positive - confidence interval around number_of_positives - confidence interfal around the true population


alesaccoia/alexr documentation built on Dec. 19, 2021, 12:26 a.m.