Dear all,
I have a dataset with multiple variables on the firm and investor level over multiple years. I need the data for a firm to have information only once for each year.
For it, I used the following code: collapse (max)PRISignatoryStatus, by(ISIN Year) - however, it deletes all other variables. I need it to indeed "filter" by ISIN and Year but for all variables in the dataset.
Could you please let me know what I am doing wrong?
Thank you very much in advance.
Related Posts with Collapse comand
Resolving problem with day gaps in STATAI am a new STATA user and new to this forum. I am working with daily price data of the Australian do…
keep banks (id) with 3-consecutive years of observation or more in my panel dataGreetings statalist users, I need help with codes to eliminate the entire id (along with all its ob…
Extracting multiple years mentioned in a stringHi, I am trying to identify the date when a drug reached Phase III in the clinical trial process. M…
Identifying "Episodes"Hello All, I am doing a difference-in-difference analysis. I need to create an identifier, or a var…
No constant in first difference regressionI am running a first difference regression. I have seen the nocons option included on several posts …
Subscribe to:
Post Comments (Atom)
0 Response to Collapse comand
Post a Comment