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
Gravity model of migration: ppml vs. ppmlhdfeDear all, I'm working on a gravity model of migration for my thesis. My data contains 28 EU countri…
reshape - wide connectionsI have variables in wide that belong together i groups (eg. var1a and var2a). I would like to reshap…
SEM, error coefficients output.Hi, How can I receive the outputs for the "path coefficient" of error terms to each items of a laten…
Cox regression assumptionI am doing a research to examine the association between sleep and all-cause mortality. The average …
New Stata 16 versions of dolog, dotex and dologx on SSCThanks as always to Kit Baum, new versions of the dolog, dotex and dologx packages are now available…
Subscribe to:
Post Comments (Atom)
0 Response to Take values of previous year if values for current period are not availabe
Post a Comment