Learn R Programming

bisg (version 0.1.0)

compute_product_err: Calculate error on the product of the terms in the numerator of the BISG estimate.

Description

This serves as a helper function for computing the BISG error estimate.

Usage

compute_product_err(p_g_r, p_r_s, p_g_r_err, p_r_s_err)

Value

The error on p_g_r times p_r_s.

Arguments

p_g_r

A tibble denoting the probability of a geography, given race. Each row in the tibble denotes a voter.

p_r_s

A tibble denoting the probability of a racial group, given a surname. Each row in the tibble denotes a voter.

p_g_r_err

A tibble denoting the error on the probability of a geography, conditioned on racial group. Same size as p_g_r.

p_r_s_err

A tibble denoting the error on the probability of racial group, conditioned on race. Same size as p_r_s.