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
order variables using foreachDear all, I have around 1600 variables with suffixes coming from the variable id. I was wondering w…
Ensuring correct model specification (diff-in-diff)Hello! I am studying the impact of non-monetary rewards incentive introduced by online platform on …
Loops I have two questions regarding two problems that I have been facing so far. First after runni…
Convert column into rowHi , I want to transport the follwoing data sample ( column into row ) ----------------------- copy…
P-Values for Heteroskedasticity-Robust InferenceHi there, What distribution are the p-values based off of when an OLS regression of y on 1,x1,...,x…
Subscribe to:
Post Comments (Atom)
0 Response to Take values of previous year if values for current period are not availabe
Post a Comment