请注意,当时我对使用 Fix 感兴趣效应(面板数据)模型,与这些分解不直接兼容。对于 FE 类型模型有一个未完成的处理程序,但不应使用它。我本想用它创建一个包,但一直没有时间去做。
I have used Oaxaca type decompositions. Did never find any package for R, so I wrote some functions that do it. It is similar to the corresponding package in Stata.
Note that at the time I was interested in using Fixed Effects (panel data) models, which are not directly compatible with these decompositions. There is an unfinished handler for FE type models, but it should not be used. I meant to create a package out of it, but never got around to it.
It can also calculate bootstrapped standard errors to provide a sense of how much estimation uncertainty there is.
The vignette gives a detailed description of the package's capabilities, as well as providing some examples of its use. See here: "oaxaca: Blinder-Oaxaca Decomposition in R"
发布评论
评论(2)
我使用了瓦哈卡类型分解。从来没有找到任何 R 包,所以我写了一些函数来做到这一点。与Stata中的相应包类似。
您可以在以下位置找到它的副本:
https://github.com/eyjo/Oaxaca
请注意,当时我对使用 Fix 感兴趣效应(面板数据)模型,与这些分解不直接兼容。对于 FE 类型模型有一个未完成的处理程序,但不应使用它。我本想用它创建一个包,但一直没有时间去做。
I have used Oaxaca type decompositions. Did never find any package for R, so I wrote some functions that do it. It is similar to the corresponding package in Stata.
You can find a copy of it in:
https://github.com/eyjo/Oaxaca
Note that at the time I was interested in using Fixed Effects (panel data) models, which are not directly compatible with these decompositions. There is an unfinished handler for FE type models, but it should not be used. I meant to create a package out of it, but never got around to it.
CRAN 上的 oaxaca 包可以估计线性模型的 Blinder-Oaxaca 分解,并生成显示结果的条形图:http://cran.r-project.org/web/packages/oaxaca/index.html
它还可以计算引导标准错误以提供对估计不确定性有多大的感觉。
该插图详细描述了该包的功能,并提供了一些其使用示例。请参阅此处:“瓦哈卡:R 中的 Blinder-Oaxaca 分解”
The
oaxaca
package on CRAN can estimate Blinder-Oaxaca decompositions for linear models, as well as producing bar charts that show the results: http://cran.r-project.org/web/packages/oaxaca/index.htmlIt can also calculate bootstrapped standard errors to provide a sense of how much estimation uncertainty there is.
The vignette gives a detailed description of the package's capabilities, as well as providing some examples of its use. See here: "oaxaca: Blinder-Oaxaca Decomposition in R"