Hi!
I want to do a regression on panel data, the data consists of a bank (subscript i), in a country (subscript c), in a specific year (subscript t); and other dependent variables A_ict, B_ict, C_ict.
Please note that I need to included fixed effects (FE) in bank (i) and year (t). (but not report them, neither should the constant be reported)
Next, standard errors should be clustered at bank (i) level.
Can you confirm if the following is the right code to use in Stata?
INDEP_ict = α + β1 A_ict + β2 B_ict + β3 C_ict + u_i + v_t + ε_it
egen panel_id = group(bank country) xtset panel_id year xtset id year xtreg INDEP A B C i.year, fe vce(cluster bank)
outreg2 using regression_results, replace excel dec() drop(i.year)
Thank you in advance.
Related Posts with three way panel data regression with fixed effects and clustered error term
boottest: just as wild, 10X fasterAppendix A.2 of the paper about boottest describes an opportunity to speed up the program's construc…
Propensity Sample Match with Fixed EffectsI am working on a large data set that includes observations from two different years (it's not a pan…
How to transform this kind of data to panel dataHi everyone, I have a dataset like follows, MMM US Equity MMM US Equity MMM US Equity ABBN SW Eq…
Creating all matched pairs Code: clear all set obs 50 generate id1 = . replace id1 = 1 if _n > 0 & _n < 10 replace …
Durbin Wu Hausman TestHello, i am struggling with interpreting results from Durbin-Wu Hausman Test for Pooled OLS and fi…
Subscribe to:
Post Comments (Atom)
0 Response to three way panel data regression with fixed effects and clustered error term
Post a Comment