fhat_strata2 | R Documentation |
Estimates empirical joint frequencies of strata, in and out of the common support.
fhat_strata2(.cs_strata)
.cs_strata |
the output of |
a data frame with number of rows equal to the number of strata multiplied by 2 (for each group), with the following columns:
strata
character vector with the combinations of the modalities of the considered variables;
name
of the column used as the binary treatment;
common_support
logical that indicates wether the strata is in or out the common support;
Nhat
estimate of the number of individuals in the strata;
fhat
estimate of the relative frequency of the strata for each group, in and out the common support;
fhat_groups
estimate of the relative frequency of the strata for each group (without the distinction of in and out the common support).
common_support_strata2
, whose result is the input of this function.
See reweight_strata2
, that takes the result of this function as its input.
data(invented_wages)
c00 <- common_support_strata2(invented_wages, treatment = "gender",
variables = c("sector", "education"),
y = "wage", weights = "sample_weights")
fhat_strata2(c00)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.