boot_nopodec_mean: Bootstrap of the mean decomposition procedure.

View source: R/ZZ_bootstrap.R

boot_nopodec_meanR Documentation

Bootstrap of the mean decomposition procedure.

Description

Bootstrap estimates of nopodec_mean and nopodec. This serves to estimate for example confidence intervals of each component of the decomposition.

Usage

boot_nopodec_mean(
  data,
  treatment,
  variables,
  y,
  weights = NULL,
  R = 10,
  counterfactual = c("AB", "BA"),
  ...
)

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

y

name of the outcome variable for which you want to make the decomposition

weights

name of the weight variable (sample weights). If NULL (default value) it uses equal weights for all observations, adding a column of ones

R

The number of bootstrap replicates. This will be a single positive integer.

counterfactual

"AB" or "BA". "AB" means that we want to estimate the counterfactual (wage) of group A, as if their characteristics were distributed as in group B. "BA" is the opposite (characteristics of group B are balanced to those of group A).

...

other arguments passed on to boot.

Examples

## Not run: 
data(invented_wages)
b01 <- boot_nopodec_mean(data = invented_wages, treatment = "gender",
                        variables = c("sector", "education"), y = "wage",
                        R = 500)

## End(Not run)


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