How to create variables in STATA using GENERATE and EGEN

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 16

  • @rapmantheoneman
    @rapmantheoneman 3 ปีที่แล้ว +4

    This is the best explanation I have ever seen! Thanks, Lucas!

    • @souzalucasr
      @souzalucasr  3 ปีที่แล้ว

      Thank you for your kind words!

  • @syedshujaathussainzaidi248
    @syedshujaathussainzaidi248 3 ปีที่แล้ว +3

    Hi! Can we use egen for combining two or more categorical variable.

  • @punchline9131
    @punchline9131 3 ปีที่แล้ว +2

    Perfect explanation! I'am also using Stata for my analyses and your channel could be really helpful for me. Thanks a lot 👍 I will subscribe to your channel.

  • @varunmiglani110
    @varunmiglani110 ปีที่แล้ว

    using egen , i wanted to generate new variable calculating geometric mean of three variables. what will be commang for that

  • @zahraaqilasalsabila3825
    @zahraaqilasalsabila3825 3 ปีที่แล้ว +1

    Thankyou, very helpful!

  • @stephanierakotovao2242
    @stephanierakotovao2242 3 ปีที่แล้ว +1

    extremely helpful. Thank you!

    • @souzalucasr
      @souzalucasr  3 ปีที่แล้ว

      Thanks, Stéphanie! :)

  • @estebanalcala2746
    @estebanalcala2746 4 ปีที่แล้ว +1

    Thank you for this video!

    • @souzalucasr
      @souzalucasr  4 ปีที่แล้ว

      Thanks for your comment, Esteban! I'm glad my video helped you out

  • @Shahad-yw2zg
    @Shahad-yw2zg ปีที่แล้ว

    Could someone help , what code should I use to make my age variable that contains ages from 0-11 into groups of categories? I want the first age group be from 0-2 , the second 3-5 the third 6-8 and the forth 9-11

  • @Michaelmaggimee
    @Michaelmaggimee ปีที่แล้ว

    Thanks

    • @souzalucasr
      @souzalucasr  ปีที่แล้ว

      You're welcome, Michael. Thanks for your comment.

  • @LucasSilva-xw7jg
    @LucasSilva-xw7jg 2 ปีที่แล้ว

    Lucas, "unknown egen function"?

    • @souzalucasr
      @souzalucasr  2 ปีที่แล้ว

      Hey Lucas, I didn’t understand your question. Either way, I have not used STATA in a very very long time so I’ll likely not be able to help out.
      Feel free to post a more elaborate version of your question and maybe we can have one of the other people watching this video help you out.

    • @LucasSilva-xw7jg
      @LucasSilva-xw7jg 2 ปีที่แล้ว

      @@souzalucasr thaks!
      I can't use function egen. The show error: "unknown egen"