exposure: Calculates pairwise exposure indices

View source: R/exposure.R

exposureR Documentation

Calculates pairwise exposure indices

Description

Returns the pairwise exposure indices between groups

Usage

exposure(data, group, unit, weight = NULL)

Arguments

data

A data frame.

group

A categorical variable contained in data. Defines the first dimension over which segregation is computed.

unit

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

weight

Numeric. (Default NULL)

Value

Returns a data.table with columns "of", "to", and "exposure". Read results as "exposure of group x to group y".


elbersb/mutual documentation built on Feb. 12, 2024, 6:40 a.m.