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
Extract New Variable from Frequency Table by CategoryHey everyone, I am using Stata 16 on Mac. I am trying to create a new variable from the percentage…
Plotting regression coefficients using coefplot commandDear Statalist Members, I need to plot the estimated regression coefficients. I have attached my da…
How to generate a variable with only one gender?Hello, I have a variable which shows whether the respondent works in a male dominated or a female d…
linear regression by time intervalHello, I have a problem. I am working on panel data and I want to do a linear regression by time int…
Error with suest command "xx could not be restored"Hi everyone! I am trying to regress the outputs from two different regressions my code looks somewh…
Subscribe to:
Post Comments (Atom)
0 Response to First difference with panel data with multiple observations per year
Post a Comment