Hey,
I want to create new observations for missing years.
For example, I have data on wages and months of work each year for each id.
For people that were unemployed I don't have any observation in that year.
Current data:
year months wage
2011 12 11000
2012 9 8000
2014 12 15000
The new required data:
year months wage
2011 12 11000
2012 9 8000
2013 0 0
2014 12 15000
any help would be appreciated,
Thanks,
Brit
Related Posts with How to create observations for missing years
Why when I control for a key variable results do not change?Dear Statalist, I am estimating the effect of parental separation on the amount of time a child spe…
Get the row number of a cellHi everyone, Suppose a variable y, with 100 obs, ranked by id (1 to 100). And among these obs, only…
Descriptive statsHello ! so i hvae trying this code i found in a tutorial to create a table similar to the one joind …
Reshape panel data variable to create a new merged variableDear stata's, Surely the question has a simple answer, but I'm out of ideas on how to find an answe…
Predicting ProbabilityHey everyone, first of all, I'm not an expert in working with stata, which is why is require your h…
Subscribe to:
Post Comments (Atom)
0 Response to How to create observations for missing years
Post a Comment