【问题标题】:Linear probability model with fixed effects?具有固定效应的线性概率模型?
【发布时间】:2020-04-24 02:10:02
【问题描述】:

如果我想估计具有(区域)固定效应的线性概率模型,这与仅运行固定效应回归相同吗?也许我被语言绊倒了。我的目标是估计婴儿奖金的效果。我的因变量是 NEWBORN 的二元指标,我感兴趣的主要自变量是接收婴儿奖金的指标。我控制了年龄、年龄平方、教育、婚姻状况和家庭收入。

我应该使用:

## 1.) Linear Probability    
LPM <- lm(newborn ~ treatment + age + age_sq + highest_education + marital_stat + 
            hh_income_log, data=fertility_15_45)

## 2.) FE Model      
FE_model <- plm(newborn ~ treatment + age + age_sq + highest_education + marital_stat + 
                  hh_income_log, data = fertility_15_45, index="region", model="within")

【问题讨论】:

标签: r regression linear-regression plm economics


【解决方案1】:

您可能希望在 LPM 中添加区域虚拟对象以获得区域固定效果。 例子:

library(plm)
data(Cigar)

summary(plm(I(sales > 121.2) ~ price + pop, data=Cigar, model="within", index="state"))$coe
#            Estimate   Std. Error     t-value     Pr(>|t|)
# price -2.880255e-03 2.626505e-04 -10.9661107 7.519348e-27
# pop   -6.922327e-06 1.311006e-05  -0.5280165 5.975758e-01

summary(lm(I(sales > 121.2) ~ 0 + price + pop + factor(state), data=Cigar))$coe[1:2, ]
#            Estimate   Std. Error     t-value     Pr(>|t|)
# price -2.880255e-03 2.626505e-04 -10.9661107 7.519348e-27
# pop   -6.922327e-06 1.311006e-05  -0.5280165 5.975758e-01

【讨论】:

    猜你喜欢
    • 2019-05-15
    • 1970-01-01
    • 1970-01-01
    • 2022-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-18
    相关资源
    最近更新 更多