Standardizing a Variable in Stata

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • How to use Stata to standardize a quantitative variable

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

  • @intellectamit
    @intellectamit 8 лет назад +7

    Haha! I was hitting my head with the codes and calculate mean and std dev separately. You solved the problem in a second :)
    Thanks dear Robert.

  • @marthajulianarodriguezg.1172
    @marthajulianarodriguezg.1172 4 года назад +1

    Thanks. It was great to watch your video. I was so worried about this topic.

  • @MarcP865
    @MarcP865 3 года назад

    Thank you very much for this quick and helpful guide! :)

  • @Kuchupuku
    @Kuchupuku 5 лет назад +1

    Thank you this was very helpful!

  • @laxen122
    @laxen122 4 года назад +2

    Very useful for my bachelor thesis, thank you

  • @rachelsperando7089
    @rachelsperando7089 8 лет назад +2

    is there a way to write a loop to standardize all variables at once?

    • @liamjwright
      @liamjwright 5 лет назад

      foreach var of varlist *{
      egen `var'_std=std(`var'), mean(0) std(1)
      }

  • @robertaastolfi2825
    @robertaastolfi2825 4 года назад

    It made my data all the same - LOL (wrong comand, now its ok).