Hello everyone,
I have three variables in my dataset - company name, year, and profit. The year variable is from 2001 to 2019. Some companies don't have observations for some years, let's say the company A has years and profits only for only 2002 and 2004. I want to add missing years for the companies, that will include all years from 2001 to 2019. The proft for those added gap years can be missing observations. I would highly appreciate if you could advise me on how I can do it on Stata.
Thank you very much in advance,
Nick
Related Posts with Adding gap years in the observations
Combine graphs through graph editorDear community! I have created two graphs and edited both of them through graph editor, now I would …
tsline graph replacing time xlabel with contents of a string variable?I am using tsline to produce a graph of an environmental measurement (noise) varying with time - but…
Stata 16 - remove "Stata" default folderStata 16 creates a "Stata" folder in the Documents folder whenever it starts. I want to change the s…
Mixed frequency dataI am currently testing the response of 3 UK stock indices to macroeconomic shocks. I have Policy sho…
Mathematical function ceilHi guys, I generated the variable "revenue" in steps of 50 Mio. After that I want to generate the c…
Subscribe to:
Post Comments (Atom)
0 Response to Adding gap years in the observations
Post a Comment