Hi everyone,
I am working with panel data (60 coutries, 2010-2022) and want to analyze the impact of several independent variables on different dependent variables across country groups (e.g., developing vs. developed countries)
Question 1: I am planning to assign each country to a fixed group based on its classification in a base year (or initial year) and keep it constant throughout the panel. Is this a common and recommended approach?
How do most authors prefer fixed (time-invariant) classification, time-varying classification, or other methods?
Question 2: I am thinking of splitting the dataset into two separate files (one for each group) and running regressions separately on each file. However, this seems time-consuming.
I have read about using by or bysort in Stata. Does using the by: prefix (or bysort) produce equivalent results to running the same regressions on two separately saved datasets?
Any references to good papers or best practices would be highly appreciated.
Thank you in advance!
I am working with panel data (60 coutries, 2010-2022) and want to analyze the impact of several independent variables on different dependent variables across country groups (e.g., developing vs. developed countries)
Question 1: I am planning to assign each country to a fixed group based on its classification in a base year (or initial year) and keep it constant throughout the panel. Is this a common and recommended approach?
How do most authors prefer fixed (time-invariant) classification, time-varying classification, or other methods?
Question 2: I am thinking of splitting the dataset into two separate files (one for each group) and running regressions separately on each file. However, this seems time-consuming.
I have read about using by or bysort in Stata. Does using the by: prefix (or bysort) produce equivalent results to running the same regressions on two separately saved datasets?
Any references to good papers or best practices would be highly appreciated.
Thank you in advance!

Comment