Description Usage Arguments Value References See Also Examples
Computes the distances within and between sub-groups according to the procedure designed by Shaw (2004) for faultline analyses.
1 | faultlines_fls(x, subgroup)
|
x |
dataframe. Binary variables indicating the categorical memberships of group members. |
subgroup |
character. Name of the variable informing about subgroup membership. |
A dataframe specifying the subgroups internal alignement (FLS_IA_0, FLS_IA_1, FLS_IA), the cross-subgroups alignment (FLS_CGA), and the faultline score (FLS).
Shaw, J. B. 2004. The Development and Analysis of a Measure of Group Faultlines. Organizational Research Methods 7 (1): 66–100.
make_discrete
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, dichotomize variables and identify subgroups
library(dplyr)
library(tidyr)
library(purrr)
fl <- fictiveteams %>%
group_by(team) %>%
nest() %>%
mutate(data = map(data, make_discrete, ncat = 2, method = "km")) %>%
mutate(subgp = map(data, find_subgroups, gpnbr = 2)) %>%
unnest()
# Compute demographic differences
fl %>%
group_by(team) %>%
nest() %>%
mutate(data = map(data, faultlines_fls, subgroup = "subgroup")) %>%
unnest()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.