Description Usage Arguments Value References See Also Examples
Compute a score of demographic difference using the procedure suggested by Li and Hambrick (2005) for the study of faultlines.
1 | faultlines_demdiff(x, subgroup)
|
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. |
A dataframe with one row (for the whole group) containing the index of demographic difference (DemDiff).
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.
make_0_to_1
find_subgroups
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.