How to create dummy variables in STATA

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Course: STATA for Complete Beginners
    100% Free.
    To download exercises and course files access:
    bit.ly/statacoursefiles
    Disclaimer: I used to work with Stata and sell this course online for US$19. Since I no longer work with Stata and will not update the course, I decided to help others by making the course available for free. If you enjoyed it, please leave your comment - I am always happy to know I could help someone out with my work :)
    If you wish to say hello directly, you can also connect with me on LinkedIn on / souzalucasr
    Thank you and happy Learning!
    Lucas Reis

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

  • @tmpcox
    @tmpcox 2 года назад +1

    the "tab variable, gen(dum)" line of code is very handy! thanks!

  • @abdullahrabaya9235
    @abdullahrabaya9235 4 года назад +1

    Very interesting ways. Thanks a lot

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

    Thank you!

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

    Good content, I love every bit..

  • @MuhammadIrfan-xv7bb
    @MuhammadIrfan-xv7bb 2 года назад +1

    Great. Just completed 22 videos and found it so helpful. Thanks alot

    • @souzalucasr
      @souzalucasr  2 года назад

      Thank you very much for your comment, Muhammad! I’m glad this was helpful to you

  • @t.j.2275
    @t.j.2275 3 года назад +1

    thanks

  • @monalisas6001
    @monalisas6001 2 года назад

    Can you upload a video on how to do fractional factorial design in stata.

  • @arlette-6490
    @arlette-6490 3 года назад +3

    i super recognize the accent hehe

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

    What is the code to create a dummy variable who take value 1 if we have the same statistics over 10 successive years for example and takes the value 0 if we have the same statistics over less than 10 successive years ?

  • @asoabdullah9507
    @asoabdullah9507 4 года назад +1

    Great contribution, I wonder if you work as freelancer sir?

  • @sarakary5002
    @sarakary5002 2 года назад

    Hello Lucas, I found your videos very helpful. Thanks so much. I need some help on Stata tailored toward my research paper. Can you please let me know if you would be interested in tutoring a couple of sessions?

  • @richardyeboah3851
    @richardyeboah3851 4 года назад +1

    How do I get the do file

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

    what is the code if you want to have a dummy for trunk size between >=14 and =

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

      generate dum= trunk>=14 & trunk

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

    You didn't show the reference category in the formulation of dummy variable from categorical variable.

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

    the .do file please ?

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

      Hi, Aghiles.
      I've just added a link to the video description where you'll find all files and videos for the course and their respective links.
      Lucas

  • @kaizoku4life
    @kaizoku4life 4 года назад +1

    thanks