R: fixst包支持面板数据分析吗?

R: Does fixest package support panel data analysis?

我正在使用 fixst 包。到目前为止取得了不错的成绩。

我的数据可以设置为面板。有什么办法可以固定到运行运行面板数据分析

我的模型看起来像这样:

model <- fenegbin(incident~ treatdummy + 
poverty + 
industry + 
rural  + 
offset(log(pop))|state,
               se= "HC1",
            data=subset(df1))

最佳,

是的。您可以在估算函数中使用 panel.id 参数来访问一组面板方法。

来自documentation

panel.id The panel identifiers. Can either be: i) a one sided formula (e.g. panel.id = ~id+time), ii) a character vector of length 2 (e.g. panel.id=c('id', 'time'), or iii) a character scalar of two variables separated by a comma (e.g. panel.id='id,time'). Note that you can combine variables with ^ only inside formulas (see the dedicated section in feols).

有关详细信息,请参阅 here

Fixest 旨在 运行 固定效应估计。您可以按照此处的 video 快速了解如何使用 Fixest 进行面板分析。