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
AR(1) is insignificant in difference GMMHello ! I am trying to estimate the following model in both difference and system GMM. However, the…
Using reghdfe command with if-statementsHello, bit of a complex one here: I’m currently working as a research assistant, using my superviso…
merging datasets with different dimensionsHi all, I would like to merge together 16 datasets which are defined by country and are made as fol…
Impact of an average change on dependent variable over timeHello! For my thesis I wanted to test a hypothesis which requires a model that I wouldn't know how t…
xtprobit margin problemHello to All Stata Users! HTML Code: xtoprobit y x z, vce(cluster id) is the model I run . However…
Subscribe to:
Post Comments (Atom)
0 Response to Take values of previous year if values for current period are not availabe
Post a Comment