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
Issues with regression on Asset pricing Models (Panel data)Hello, I am writing my master's thesis; however, I have not reached a standstill regarding running …
Merging two datasetsHello, I have to merge two datasets. The key variable is str32. The problem I'm facing is that in o…
ANCOVA or MANCOVA? Help is MUCH appreciatedHi all, I am undertaking a thesis and it has been a long while since I've been at university (and u…
estadd local not working in Stata 17Since I started using Stata 17, I encountered a problem that I cannot seem to fix. Normally, I would…
xttobit or fracreg for panel data? My dependent variable is from 0 to 1.Hello everyone, I am a PhD student from strategy area. I encountered a problem in model choice. My d…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse different columns differently
Post a Comment