calc_dissimilarity: Calculate index of dissimilarity measure of segregation

Description Usage Arguments Value Examples

View source: R/calc_dissimilarity.R

Description

calculates index of dissimilarity on a dataset

Usage

1
2
3
4
5
6
7
calc_dissimilarity(
  group_df,
  out_groups = "NH White",
  alt_groups = NULL,
  parent_geo = c(),
  ...
)

Arguments

group_df

race specific df with a count for every GEOID

out_groups

character vector indicating the out group of the comparison. The default behavior selects "NH White" such that White-Non White segregation is being evaluated.

alt_groups

character vector indicating the alt groups of the comparison. The default behavior selects NULL such that all groups except the out group are selected.

parent_geo

character vector of additional columns to subdivide analysis

...

added for compatibility

Value

single row data frame with index of dissimilarity

Examples

1
calc_dissimilarity(get_acs_race("CA", "Orange", year = 2013))

nmmarquez/censeg documentation built on Sept. 12, 2020, 4:13 a.m.