boot_nopodec_mean | R Documentation |
Bootstrap estimates of nopodec_mean
and nopodec
.
This serves to estimate for example confidence intervals of each component
of the decomposition.
boot_nopodec_mean(
data,
treatment,
variables,
y,
weights = NULL,
R = 10,
counterfactual = c("AB", "BA"),
...
)
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 |
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 |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.