Description Usage Arguments Value References See Also Examples
Compute distances within and between sub-groups according to the procedure designed by Thatcher, Jehn, and Zanutto (2003) for faultlines analyses.
1 | faultlines_fau(x, subgroup)
|
x |
dataframe. Table informing about team members characteristics, 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 specifying the distances between subgroups centroids (FAU_CGD), the distances within sub-group (FAU_SGH), the distances within the whole group (FAU_GH) the proximity between sub-groups (DSG_CGA_'subgp_base'), the faultline score (FAU_strength) and the faultline distance (FAU_dist)
Thatcher, S. M. B., K. A. Jehn, and E. Zanutto. 2003. Cracks in Diversity Research: The Effects of Diversity Faultlines on Conflict and Performance. Group Decision and Negotiation 12 (3): 217–241.
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_fau, subgroup = "subgroup")) %>%
unnest()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.