In a panel database of companies (bisnode), the revenue information is not always for the full year...sometimes it's quarterly, for example...
So I want to collapse rows such that rows that belong to the same company for the same year are merged. Not just that, I want most columns to average out, but I 2 columns to aggregate (sum).
Can I even run collapse such that it runs differently (average v sum) on different columns?
Related Posts with Collapse different columns differently
regressing group observations identified by id in loop and for each regression create a table outputHello. I am trying to create some doc/docx regression table output for each group of observations th…
Change in the default bandwidth of -lpoly- from Stata 15/16 to 17Hello Stata and Statalisters, The default bandwidth of -lpoly- appears to have changed from Stata 1…
Variables not constant within tableDear all, I am trying to reshape the following dataset below and I am encountering an error as foll…
Drop observations for date A if > 90 days before or after date BPlease help! How can I write a command in Stata so that..... for each individual ID_number, I unifor…
Single-item outcome in an intervention effectHello I would really appreciate some help in conducting a task which is very unfamiliar for me and …
Subscribe to:
Post Comments (Atom)
0 Response to Collapse different columns differently
Post a Comment