Description Usage Arguments Value References Examples
View source: R/heckitmfx_log.R
Partial and total marginal effects for two-step sample selection models (Heckit) with log-transformed outcome variable. Partial marginal effects refer to marginal effects associated with changes in the probability of selection and with changes in the conditional outcome. Total marginal effects refer to marginal effects on the unconditional outcome.
1 | heckitmfx_log(data, selection, outcome)
|
data |
The dataset |
selection |
The selection equation |
outcome |
The outcome equation |
A dataframe with estimated parameters, partial and total marginal effects
Hoffmann, R. & Kassouf, A. L. (2005) Deriving conditional and unconditional marginal effects in log earnings equations estimated by Heckman's procedure, Applied Economics, 37:11, 1303-1311, DOI: https://www.doi.org/10.1080/00036840500118614. (Equation 14).
1 2 3 4 5 6 7 8 | # Example following Hoffmann & Kassouf (2005) specification (eqs. 1 & 2)
## Not run: heckitmfx_log(data, L ~ z1 + z2, log(g) ~ x1 + x2)
# Example using simulated data of household tourism expenditures (in logarithms)
data(tourexp)
selection <- "participation ~ income + education + health"
outcome <- "log(expenditure) ~ income + education + tripweather"
heckitmfx_log(tourexp, selection, outcome)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.