Introduction to Programming Loops in Stata

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

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

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

    Thank you very much, Mike! You make it seem so simple... I am much more confident now thanks to your guidance. Please post more videos like this when you can.

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

    Thanks a ton . please make more stata videos. They are really great ...

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

    Incredible stuff. This really really helped me out in my thesis. I really appreciate it man. Thanks a lot and keep up the good work :D

  • @marianafernandezdelcastill4673
    @marianafernandezdelcastill4673 2 ปีที่แล้ว +1

    Hi, is there a way to use a loop to display multiple regression results as you did in the last section of the video but without using a time variable?

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

    Hi Mike,
    Thank you for the posting. If I have data about unemployment rate (UNRATE) and corruption (CRP) across 20 countries (country id from 1 to 20) and if I want to run a regression "reg UNRATE CRP" for each country, how can I do this using the loops codes?

  • @haimkichik
    @haimkichik 4 ปีที่แล้ว +2

    Nice video!!! Thanks so much!

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

      Thank you, Haim - I’m very glad you found the video to be helpful. Please let me know if there are other topics you’d like me to cover.

  • @gereleebat-erdene7096
    @gereleebat-erdene7096 4 ปีที่แล้ว +2

    Thnk u so much. I rlly appreciated for this video. Do u have any book recommendation for this entire loop thing?

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

      I added a link in the description for "An Introduction to Stata Programming" by Baum, which covers loops, as well as many, many other useful topics. The "Microeconometrics Using Stata" book (also linked in description) has some examples of loops as well.

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

    Hi Mike,
    Could you give me an advice for my case?
    I have panel data of 100 companies with time frame from 2009 - 2017. Now, I need to run regression for each company and save coefficient of each regression.
    Thank you very much!

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

    @ mike Jonas econometrics; I have a quarterly dataset (1999q1-2015q4) with several IDs. But I want to keep the data if the value of a variable (Total loans) >= 30000 irrespective of the year and quarter. How do I set the function for such exercise? I defined available =0, and replace available =1 if Total loans>= 30000. But along the lines, in Q1 for some ID they are =0 and in q4=1 but I want to keep All years and quarters as long as it is =1 in a single quarter. Does anyone have an idea?

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

    this really was very helpful! thank you so much

  • @jagatdave
    @jagatdave 8 หลายเดือนก่อน

    @Mike Jonas___ Can you pelase share Federal reserve data with this video? If possible, Please upload a new video showing how to down load Federal reserve data into STATA through API Key.... Just a request.. Thanks for the video.

  • @a.hashmi3393
    @a.hashmi3393 3 ปีที่แล้ว

    thanks a lot

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

    there is problem with the sound

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

    where is the audio? can hear just whispers.

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

    Hello guys whoever you are reading this i would very appreciate it if you would let me know how i can solve this problem. So right now this is the command that i would like to repeat:
    _pctile expcap [fweight = wert] if province == "Aceh", p(20)
    replace p20prov = r(r1) if province == "Aceh"
    the command above works perfectly with the value "Aceh" is the variable in the list which has many values
    I was trying this line of command, however it just won't work:
    foreach prov of province {
    _pctile expcap [fweight = wert] if province == "'prov'", p(20)
    replace p20prov = r(r1) if province == "'prov'"
    }
    if you know how to solve it please reply in the comment section thank you

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

    Hello, could you please help me with a Stata assignment? Could I schedule a zoom meeting with you? The assignment is due tomorrow and I’m truly lost with STATA.

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

      I'm not available over zoom, but can try to respond to specific questions over email: mrjonas23@gmail.com

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

    The thing I hate the most in stata. 😵

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

    I cannot hear you bro, and I am not deaf.