Stata Lecture 13: Understanding Foreach, Forvalues, and Levelsof Loop

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

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

  •  6 месяцев назад

    Hello Mr. I have a variable with 10 different values ​​and I need, from each one these values, to create a table that contains data from another variable. Could you guide me in defining this procedure? Thank you very much!

  • @tommy.h.descartes
    @tommy.h.descartes Год назад

    Thank you. But is I have a number of countries in a variable and I want to shorten the country names how would I go about doing this?

    • @Kroft-Tutorials
      @Kroft-Tutorials  Год назад

      Dear Tommy,
      I would suppose a substring command from the egen package would help.
      Type substr(varname,1,x) to get the first x letters.
      Warm regards,
      Bram

  • @khedirderres3726
    @khedirderres3726 Год назад

    Thanks