Dear Stata Community,
I am relatively new to Stata (switched from R to Stata) and I am currently experiencing some difficulties in adding rows to my dataset. I did not find an easy solution to do it apart from adding rows at the end of a dataset which is not desired in my case.
My dataset consists of more than 300'000 rows and I want to add rows for a specific "identifier" if there are insufficient observations/rows available. An example: A firm is delisted 12 months after the effective date of an M&A transaction and thus, only 12 rows are available in my dataset. In my analysis, however, I want to add rows for each firm with insufficient "rows" and fill in additional information until a period of at least 36 months is covered for each firm (i.e. I want to implement a similar approach as outlined by Mitchell and Stanfford (2000, p.298), Managerial Decisions and Long-Term Stock Price Performance).
Is there an easy command in order to do this time efficiently?
Thank you in advance and kind regards
Andreas Mueller
I am relatively new to Stata (switched from R to Stata) and I am currently experiencing some difficulties in adding rows to my dataset. I did not find an easy solution to do it apart from adding rows at the end of a dataset which is not desired in my case.
My dataset consists of more than 300'000 rows and I want to add rows for a specific "identifier" if there are insufficient observations/rows available. An example: A firm is delisted 12 months after the effective date of an M&A transaction and thus, only 12 rows are available in my dataset. In my analysis, however, I want to add rows for each firm with insufficient "rows" and fill in additional information until a period of at least 36 months is covered for each firm (i.e. I want to implement a similar approach as outlined by Mitchell and Stanfford (2000, p.298), Managerial Decisions and Long-Term Stock Price Performance).
Is there an easy command in order to do this time efficiently?
Thank you in advance and kind regards
Andreas Mueller
Comment