Hi!
I am wondering if it is at all possible to do a first difference regression with panel data that has multiple observations per year.
The data I am using is a survey that about 20 000 people answer every year. I have observations from between 2011 and 2017. I would like to see how people's social trust is affected by different variables that I also have included in the data set (such as gini coefficient for all the counties that the respondents are from).
If i run the command "tsset IDnr year, yearly" i get this result:
panel variable: IDnr (unbalanced)
time variable: year, 2011 to 2017, but with gaps
delta: 1 year
And when I run the regression "reg d.y d.x1 x2" I get a very low number of observations (about 2 000).
What am I doing wrong? I am a total beginner att both statistics and Stata so please excuse me if it is super obvious.
Thanks in advance!
Related Posts with First difference with panel data with multiple observations per year
Summary statistics with categorical variablesHi, i was trying to compute the summary statistics for a set of categorical variables and used asdoc…
Invalid Syntax while loopinghello, i dont know why stata keeps me showing invalid syntax in this loop: foreach x of p524a1_14 p…
Arranging bars of graph barHello community. I am producing a graph with Stata. Here is the output : Array And here is the code …
Survival Analysis - different outputsHello everyone, I am trying to do survival analysis on 2018 Nigeria Demographic and Health Survey D…
Merger Simulationhi Stata people, I would like to have your expertise on a problem!! I am analyzing the demand estim…
Subscribe to:
Post Comments (Atom)
0 Response to First difference with panel data with multiple observations per year
Post a Comment