niche.summary: Summarizes information on each membership organization

Description Usage Arguments Details Value Examples

View source: R/niche.summary.R

Description

Aggregates information on each organization and returns five summary measures—the number of individuals in the organization, the number of individuals in the organization's niche, the number in the organization but not in the niche, the number of individuals exclusively in the niche, and the number of individuals who overlap with other niches.

Usage

1
niche.summary(blauObj)

Arguments

blauObj

An object of class blau initialized with the function blau. The function niches must have been called previously by the user.

Details

The purpose of this function is to get a better sense of how the niches are organized within each ecology.

The rows represent niches. The number of rows corresponds to the number of niches.

Computes five measures:

OrgMem: computes how many people are in each of the organizations that structure the niche.

NicheMem: computes to how many people are in each of the niches

NichExc: computes how many people are exclusive to that niche and only to that niche (not in any other niche);

NicheOvr: computes how many people are in 2 or more niches

MemExc: computes how many people are in the organization but not in the organization's niche. This happens because they are outside the demographic boundaries of the set standard deviations that are used to define the niche.

Value

Returns an object of class data.frame that contains the five summary measures as columns, along with two columns identifying the ecology and the niche corresponding to the information provided.

Examples

1
2
3
4
data(TwoCities)
b <- blau(TwoCities, node.ids = 'respID', ecology.ids = 'samp')
b <- niches(b, dev.range = rep(1.5, 10)) # 10 is the number of dimensions
niche.summary <- niche.summary(b)

Blaunet documentation built on July 1, 2020, 5:22 p.m.