Тёмный

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

Learn Coding with Us
Подписаться 447
Просмотров 3,2 тыс.
50% 1

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!

Опубликовано:

 

28 мар 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@Learn-Coding-with-Us
@Learn-Coding-with-Us 3 года назад
Welcome to our channel!! Please support our channel by subscribing, liking the videos, and sharing them with your friends. Your small help will tremendously benefit us to grow and promote our channel and bring incredible and knowledgeable content in the future to this channel. Thank you in advance for supporting our channel with your subscription and sharing our videos with your friends. Our channel loves to teach the content the best!!
@rchanes40
@rchanes40 2 года назад
i can´t do it. "egen ... std() may not be combined with by"
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Can you use "help egen" for confirmation of what kind of function you can use with "egen" command? Please do that. To my knowledge, "egen" can not do with the std() function. You need to use the basic variance formula: sigma^2 = E(x^2) - [E(x)]^2 to find the standard deviation. Please use "help egen" command to learn more. Thank you so much for watching our videos. Please like the video, share it with your friends, and subscribe to our channel. Stay tuned!
Далее
Using Stata: Merging Data
28:29
Просмотров 3,2 тыс.
Difference Between _n and _N in Stata
4:49
Просмотров 1 тыс.
Stata Lecture 11: The Bysort command
5:11
Просмотров 1,8 тыс.
Dummy Variables using the gen command in Stata
3:22
Просмотров 161 тыс.
Stata Lecture 15: Levering Egen and Bysort commands
8:13
The Quickest Stata Guide to BySort Commands
2:14
Просмотров 2,1 тыс.
Week 1 : CREATING NEW VARIABLES AND LABELS
9:27
Просмотров 134 тыс.