Python
Often, the observations of your data belong to a larger group, e.g., you have observations on the state-level, and states belong to regions. If you would like to do some analyses on the “higher” level (or aggregate), you can use collapse. This creates a dataset aggregated by certain statistics (e.g. mean, sum, max…).