compute_p_g: Computes the probability a person is located in a specific...

View source: R/bisg.R

compute_p_gR Documentation

Computes the probability a person is located in a specific geographic unit.

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(counts, cols = c("whi", "bla", "his", "asi", "oth"))

Arguments

counts

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

cols

The columns denoting the constituent groups within each geographic units.

Value

A vector containing the probability of selecting a person from each geographic unit.


bisg documentation built on July 26, 2023, 5:20 p.m.