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
Lambert functionHi everyone, I would need to compute the Lambert function W(a) in Stata, but I cannot find a command…
Problem with multigroup SEMHello, I'd like to know what is the code for estimating the indirect effects in multigroup SEM. Fo…
Summing the values over specific range of variablesHello. I have a dataset on weekly hours that individuals worked for each week of the years. For exa…
Lagged response modelDear Statalisters, I am using a longitudinall dataset in which my main outcome is "QI score" (measu…
Margins postHi all, I have the following problem: using the margins plot command to look at the graph between my…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse different columns differently
Post a Comment