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
Prediction graphDear community! I have a task to produce a graph of three realistic scenarios for health spending (i…
Storing and accessing output of multiple estimation commands within programI've defined a program that generates random data and calls two estimation commands: reg and ppml. I…
GSEM mediation: Limitations in assessing model fitGreetings, I'm running Stata 15.1 on OSX and working with cross-sectional survey data. I'm trying t…
How to merge two panel data sets?Dear Statalist members, I want to merge two panel data sets. One contains information regarding 200…
Setting up dataset for rds_networkHi, I need to create the respondent-driven sampling variables identifying recruits from two variabl…
Subscribe to:
Post Comments (Atom)
0 Response to How to create observations for missing years
Post a Comment