Stata command modifiers | If/in/by/bysort statement in Stata

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 3

  • @vickdeem
    @vickdeem 3 года назад +1

    I've been looking for this information. Thanks.

  • @ann-sophiekouadioiv1841
    @ann-sophiekouadioiv1841 2 года назад

    Thanks for this, is there a way to set the condition as "begin with" let's say I have a dataset of telephone number from different countries and I would like to add certain area code on the number based on the digit that the observation start with. How do I tell stata that if a specific obs start with "xy" then gen "mn" ?