Dear forum,
I have a dataset which looks like this
Company code year .....
123 2000
123 2001
244 2000
244 2001
355 2000
588 2000
588 2001
Now I want to regress my data. The regression should take all company data from 2001. If the company has only data for 2000, the regression should take 2000 (like the number 355 in my dataset). I do not have "missing data", I already cutted them out. So replacing missing values is not possible for me.
How can I do that?
My regression at the moment is like this:
reg car size if year==2001, robust
Related Posts with Take values of previous year if values for current period are not availabe
the criteria of choiceHello I hope you are doing well. I have a question, please, about the criteria for choosing between …
How to deal with unequal variance - mixed effects linear regressionHello, I have run a linear mixed model to test the within-subject difference in activity behaviours…
Multiple Fixed Effects with Regression reghdfeHi everyone, I am now replicating the paper of Kumar et. al (2021). Social Learning and Analyst Be…
xtabond2 vs xtdpdgmmHello, I'm trying to study the spillover effect of trading with Arab Spring countries on economic gr…
Error 639Hi I am trying to run a do file and getting the following error message I have checked and there is…
Subscribe to:
Post Comments (Atom)
0 Response to Take values of previous year if values for current period are not availabe
Post a Comment