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
Three-level ZINB in StataHi, I use Stata 16.1 and I need to run a 3-level Zero Inflated Negative Binomial regression. I have…
exporting many tables to excelHi , I have a question about how I can export many tables in a good format. I am trying to run regre…
generating separate variables from one variables's observations, is there a loop?Dear all, From the variable v I would like to generate 3 variables: v1, v2, v3. Given that these ar…
Weights in the rdbwselect commandI am trying to use the rdbwselect command and it has the the following syntax (from The Stata Journa…
Cleaning for Optimal Modeling (ft. Panel Data)Hello Everyone, Let's say I would like to do a linear regression on some Panel data without knowing…
Subscribe to:
Post Comments (Atom)
0 Response to How to create observations for missing years
Post a Comment