Standardizing a Variable in Stata

Поділитися
Вставка
  • Опубліковано 12 гру 2024

КОМЕНТАРІ • 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! :)

  • @laxen122
    @laxen122 4 роки тому +2

    Very useful for my bachelor thesis, thank you

  • @Kuchupuku
    @Kuchupuku 5 років тому +1

    Thank you this was very helpful!

  • @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).