Generate a new variable by using "bysort" and "egen" command in Stata by Samsun

Опубликовано: 21 Март 2026
на канале: Learn Coding with Us
3,862
30

This is a very helpful video to create a new variable by using "bysort" and "egen" command together in Stata. "bysort" command will sort your data, and "egen" command will create a new variable with your specified function, such as mean, median, sum, count, etc.

Please like the video, share it with your friends, and subscribe to our channel. Stay tuned!

Donate to support our channel:
https://www.paypal.com/donate/?busine...


Thank you so much.