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
CONSORT DiagramDear Statalist, Is is possible to create a CONSORT flow diagram in stata without specifying the coo…
Peculiar AR(1) and AR(2) Results from xtabond2Hello! For a university project, I am investigating the impact of income inequality on economic gro…
Help to shorten a loop:>I would like to know what error am I making. I am trying to run the next loop. I don't want to w…
Mean of a variable by multiple variables in the same tableHi. In my data there are 20 variables (var1- var20) which are deciles created based on different fa…
Panel DataHey everyone, I'm fairly new to using Stata, so im still getting use to everything. I am using unbal…
Subscribe to:
Post Comments (Atom)
0 Response to three way panel data regression with fixed effects and clustered error term
Post a Comment