faultlines_fls: Computes the distances within and between sub-groups...

Description Usage Arguments Value References See Also Examples

Description

Computes the distances within and between sub-groups according to the procedure designed by Shaw (2004) for faultline analyses.

Usage

1
faultlines_fls(x, subgroup)

Arguments

x

dataframe. Binary variables indicating the categorical memberships of group members.

subgroup

character. Name of the variable informing about subgroup membership.

Value

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).

References

Shaw, J. B. 2004. The Development and Analysis of a Measure of Group Faultlines. Organizational Research Methods 7 (1): 66–100.

See Also

make_discrete

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, 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()

NicolasJBM/constRuct documentation built on May 27, 2019, 12:17 p.m.