compute_p_r_cond_g | R Documentation |
This is a utility function for performing BISG. It operates on a dataframe obtained from the Census Bureau via the provided eiCompare helper function.
compute_p_r_cond_g(counts, cols = c("whi", "bla", "his", "asi", "oth"))
counts |
A tibble containing counts (divided amongst constituent groups) per geographic units (rows). |
cols |
The columns denoting the constituent groups within each geographic units. |
A tibble with dimensions equal to counts, with each entry denoting the probability of selecting a person per racial group (columns) conditioned on racial group (rows).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.