segcurve: A visual representation of two-group segregation

segcurveR Documentation

A visual representation of two-group segregation

Description

Produces a segregation curve, as defined in Duncan and Duncan (1955)

Usage

segcurve(data, group, unit, weight)

Arguments

data

A data frame.

group

A categorical variable or a vector of variables contained in data. Defines the first dimension over which segregation is computed.

unit

A categorical variable or a vector of variables contained in data. Defines the second dimension over which segregation is computed.

weight

Numeric. (Default NULL)

Value

Returns a ggplot2 object.


segregation documentation built on Aug. 25, 2023, 1:07 a.m.