How to Aggregate Data by Group Stata | Collapse in Stata
Mar 19, 2023
This video discussed how to collapse or aggreate data on a group variable i.e. how to sum variable for group in stata, how to find mean of varaible for a group in stata or how to find weighted average in stata.
00:00 Intro to collapse command
00:34 Aggregate a variable
3:37 Calculate mean across different groups
6:00 Single parameter for multiple variables
7:07 Multiple parameters and multiple variables
7:47 Multiple parameters of same variable
9:40 Case wise deletion
13:25 Weighted average using collapse
Website: thedatahall.com
Show More Show Less #Statistics


