Hi all,
I have a panel dataset of companies with trading days for the period from 2010 until 2020. However, i will need to drop the company who has more than 50% of missing values or the return is 0 Return in one of the trading years (2010 or 2011 or...).
As i see I need to generate a trading days for USA for this period (2010- june2020) and than match the days of trading of each company, so if the return of the company is missing or the return is equal to 0, that company to be drooped from the sample. However, i do not know how to write this command.Attached i am sending a sample.
Knowing the expertise that you have, I was hoping that you could help me in solving this problem.
Sincerely,
Related Posts with Missing values more than 50% of trading days
Concatenating multiple variables into one variableDear Statalist, I am struggling with the "egen - concat" command to join the list of 4 variables in…
Overlapping-rolling windowDear Statalisters, I am running into an issue with rolling windows and I need your kind help with t…
Adding new lines in a given data setFor some reasons, I need to add a new line above a given data set to show the summations of variable…
What does 1.009e-12 mean?What does 1.009e-12 mean? Can you show it in a decimal expression? How to transfer it to decimal ex…
Cross-lagged panel models with binary and continuous outcome variables: gsem or sem (?) + other questionsGreetings, I'm running Stata 15.1 on OSX and working with yearly panel data. My hypothesis predicts…
Subscribe to:
Post Comments (Atom)
0 Response to Missing values more than 50% of trading days
Post a Comment