faultlines_demdiff: Compute a score of demographic difference using the procedure...

Description Usage Arguments Value References See Also Examples

Description

Compute a score of demographic difference using the procedure suggested by Li and Hambrick (2005) for the study of faultlines.

Usage

1
faultlines_demdiff(x, subgroup)

Arguments

x

dataframe. Table informing about team members' characteristics (all team members should belong to the same team), numeric or binary. Ideally, all values should be scaled between 0 and 1 before running the analysis.

subgroup

character. Name of the variable indicating subgroups memberships.

Value

A dataframe with one row (for the whole group) containing the index of demographic difference (DemDiff).

References

Li, J., and D. C. Hambrick. 2005. Factional groups: A new vantage on demographic faultlines, conflict, and disintegration in work teams. Academy of Management Journal 48 (5): 794–813.

See Also

make_0_to_1

find_subgroups

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(construct)
data("fictiveteams")
# prepare the data: group the observations per team, scale between 0 and 1, identify subgroups
library(dplyr)
library(tidyr)
library(purrr)
fl <- fictiveteams %>%
   group_by(team) %>%
   nest() %>%
   mutate(data = map(data, make_0_to_1)) %>%
   mutate(subgp = map(data, find_subgroups, gpnbr = 2)) %>%
   unnest()
# Compute demographic differences
fl %>%
   group_by(team) %>%
   nest() %>%
   mutate(data = map(data, faultlines_demdiff, subgroup = "subgroup")) %>%
   unnest()

NicolasJBM/grpcomp documentation built on May 28, 2019, 2:21 p.m.