location_quotient: Location Quotient

Description Usage Arguments Details Source Examples

View source: R/single_group_measures.R

Description

A location quotient (LQ) is an analytical statistic that measures a region’s concentration of a particular attribut relative to a larger geographic unit (e.g. census tract to state). In economics, an LQ is computed as an industry’s share of a regional total for some economic statistic (earnings, GDP by metropolitan area, employment, etc.) divided by the industry’s share of the national total for the same statistic. For example, an LQ of 1.0 in mining means that the region and the nation are equally specialized in mining; while an LQ of 1.8 means that the region has a higher concentration in mining than the nation.

Usage

1
2
3
location_quotient(group, population, na.rm = FALSE)

lq(group, population, na.rm = FALSE)

Arguments

group

A numeric vector of the proportion of the population

population

A numeric vector the length of group with its proportion of population.

na.rm

logical. Should missing values (including NaN) be removed? Used only if summed is set to TRUE.

Details

LQ is equivalent to the percentage of a group in a single observation divided by the percentage of that group in the population of all observations, i.e. (group/population)/(Σ(group)/Σ(population))

Source

U.S. Bureau of Economic Analysis: https://www.bea.gov/help/faq/478

Examples

1
2
3
4
data("bay_race")
# calculate the location quotient for Hispanic people in each tract in the bay area
location_quotient(group = bay_race$hispanic,
population = bay_race$total_pop)

arthurgailes/rsegregation documentation built on May 23, 2021, 6:33 a.m.