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
How to change the data in letters ?Hello. The column I actually have is address1. I want to change the contents of address1 to address2…
How to control MRTs in PPML Gravity ModelCan i control MRTs in PPML method by estimating exporter, importer and year group dummies by followi…
Variable name and variable label are not shown after the execution of "putexcel" commandMy data Code: * Example generated by -dataex-. To install: ssc install dataex clear input int i…
Test for endogeneity when using in between-effectsHello everyone, I am trying to run the following model xi: xtivreg sba ids fco vvm nan avi i.year (…
Stata markdown: can dyndoc create md files instead of html?I'm working in a project with many collaborators, all of which have Stata version 15. We use the dyn…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse comand
Post a Comment