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
coefplot: how to align y-axis and markers?Hi, I'm using -coefplot- to create a graph showing the balance between covariates for a treatment a…
String Cleaning - Possibly automate the taskI wish to retain information on a person's grades which is observed in the variable below. The text …
Combine list options header and sepbyMy question doesn't go far past the title - is there a way to have the list command re-display the h…
Split variable problemHi I want to divide a variable I have by 2. 01aug2018 will be one variable and the other time. Sampl…
bar chart dummy percentHey guys, I have a dummy variable (var) for 4 diffrent years. I want to have a bar chart that shows…
Subscribe to:
Post Comments (Atom)
0 Response to First difference with panel data with multiple observations per year
Post a Comment