Learn R Programming

bisg (version 0.1.0)

compute_p_g_cond_r: Computes the probability a person is in a specific geographic unit, conditioned on a racial group.

Description

This is a utility function for performing BISG. It operates on a dataframe obtained from the Census Bureau via the provided eiCompare helper function.

Usage

compute_p_g_cond_r(geo_counts, cols = c("whi", "bla", "his", "asi", "oth"))

Value

A tibble with dimensions equal to counts, with each entry denoting the probability of selecting a person per geographic unit (rows) conditioned on racial group (columns).

Arguments

geo_counts

A tibble containing counts (divided amongst constituent groups) per geographic units (rows).

cols

The columns denoting the constituent groups within each geographic units.