Тёмный

Difference Between _n and _N in Stata 

The Data Hall
Подписаться 3,7 тыс.
Просмотров 1,1 тыс.
50% 1

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

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@selvakumarprasad5349
@selvakumarprasad5349 2 года назад
very useful and easy to understand.
@thedatahall
@thedatahall 2 года назад
Thanks
@duncanmphande2168
@duncanmphande2168 Год назад
This is very helpful. Please, how do you generate a variable that counts the unique number of firms? In this case of your data set there are 3 firms, each with unique id 1, 2 and 3.
@thedatahall
@thedatahall Год назад
Bys firm:generate total=_N
@cerdascendekia1851
@cerdascendekia1851 Год назад
Thank you for the videos. It is very useful. Btw, how can we identified the first data row in a panel data? Let say I wan to calculate return on each value in row _n divided by the first row.
@thedatahall
@thedatahall Год назад
bys firm (year): gen a=stock_price[_n]/stock_price[1]
Далее
Working With Dates in Stata
22:29
Просмотров 2,9 тыс.
Stata - 10 Tips and Tricks
11:12
Просмотров 1,8 тыс.
Stata Tuturial: Creating a Composite Variable
13:44
Просмотров 10 тыс.
Working With String Variables in Stata
20:37
Просмотров 1,3 тыс.
Introduction to difference in differences in Stata 17
59:06
Stata Lecture 15: Levering Egen and Bysort commands
8:13
Stata - How to use gen(erate) & egen
6:17
Просмотров 14 тыс.