nopodec_Fhat: Empirical cumulative distribution function (ecdf) at value y...

View source: R/nopodec_Fhat.R

nopodec_FhatR Documentation

Empirical cumulative distribution function (ecdf) at value y for the two groups, in and out the common support. In the common support, counterfactual ecdf are estimated. It also estimates the number of individuals of the two groups.

Description

The results are all the components necessary to perform a decomposition of the ecdf difference between two groups, in four components (as in Nopo (2004)).

Usage

nopodec_Fhat(...)

## Default S3 method:
nopodec_Fhat(.reweight_strata_all, y = NULL, weights = NULL, value, ...)

## S3 method for class 'reweighted'
nopodec_Fhat(.reweighted, value, ...)

Arguments

...

arguments passed to or from other methods.

.reweight_strata_all

output of reweight_strata_all2

y

name of the outcome variable for which you want to make the decomposition. If NULL (default), the value is inherited from the attributes of .reweight_strata_all

weights

name of the weight variable (sample weights). If NULL (default), the value is inherited from the attributes of .reweight_strata_all.

value

value of y for which the ecdf is estimated

.reweighted

an object of class reweighted (the output of reweight_strata_all4)

Examples

data(invented_wages)
r00 <- reweight_strata_all2(invented_wages, treatment = "gender",
                       variables = c("sector", "education"),
                       y = "wage", weights = "sample_weights")

nopodec_Fhat(r00, value = 5000)

r00 <- reweight_strata_all4(invented_wages, treatment = "gender",
                       variables = c("sector", "education"),
                       y = "wage", weights = "sample_weights")

str(r00)
names(r00)
class(r00)

nopodec_Fhat(r00, value = 5000)


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