common_support2: Establishes the Common Support between two groups of...

View source: R/common_support.R

common_support2R Documentation

Establishes the Common Support between two groups of individuals, based on the (empirical) joint distribution of some characteristics (variables).

Description

Establishes the Common Support between two groups of individuals, based on the (empirical) joint distribution of some characteristics (variables).

Usage

common_support2(data, treatment, variables)

Arguments

data

data frame

treatment

column name of the binary variable

variables

character vector of the variables' names, for which the common support has to be established

Value

a data frame with all the combinations of the modalities of the variables considered. In addition two columns: common_support (logical, TRUE if in the common support), strata (identifier of a unique combination of the modalities of the variables)

See Also

See common_support_strata2, which uses this function and then joins with the original data.

Examples

data(invented_wages)
common_support2(invented_wages, treatment = "gender",
                variables = c("sector", "education"))


gibonet/decr documentation built on Jan. 5, 2024, 7:26 a.m.