How to Aggregate Data by Group Stata | Collapse in Stata
3.5 هزار بار بازدید -
2 سال پیش
-
This video discussed how to
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 state.
Download the exercise file:
https://payhip.com/b/nf0KU
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
Download Do/Data file from the following link:
https://thedatahall.com/aggregate-dat...
Best 10 Introductory Econometrics Books
https://thedatahall.com/best-10-intro...
Introduction to Econometrics by James H. Stock and Mark Watson
https://amzn.to/3p88SZy
Econometrics for Dummies by Roberto Pedace
https://amzn.to/3NAhwKB
Mostly Harmless Econometrics: An Empiricist’s Companion by Joshua
https://amzn.to/3NA3kkJ
Using Econometrics: A Practical Guide by A. H. Studenmund
https://amzn.to/3VuTnam
Website: thedatahall.com
Disclaimer: Some links are affiliate links that help the channel at no cost to you.
Download the exercise file:
https://payhip.com/b/nf0KU
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
Download Do/Data file from the following link:
https://thedatahall.com/aggregate-dat...
Best 10 Introductory Econometrics Books
https://thedatahall.com/best-10-intro...
Introduction to Econometrics by James H. Stock and Mark Watson
https://amzn.to/3p88SZy
Econometrics for Dummies by Roberto Pedace
https://amzn.to/3NAhwKB
Mostly Harmless Econometrics: An Empiricist’s Companion by Joshua
https://amzn.to/3NA3kkJ
Using Econometrics: A Practical Guide by A. H. Studenmund
https://amzn.to/3VuTnam
Website: thedatahall.com
Disclaimer: Some links are affiliate links that help the channel at no cost to you.
2 سال پیش
در تاریخ 1401/05/21 منتشر شده
است.
3,532
بـار بازدید شده