Stata - How to use outreg2

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

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

  • @hexgrl
    @hexgrl 10 หลายเดือนก่อน +2

    this was so much more helpful than any of the other resources I found - the only one that actually got the results I wanted! thank you so much!!!

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

    Even though this wasn't exactly what I was looking for; I was looking for how to write a title using outreg2, your explanation was so clear and concise I was able to derive it on my own.

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

    You know, I had an entire 30 minutes of a lecture I wholly ignored because of people like you. This is education in the 21st century, thank you very much

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

    thank you for this video! clear, concise and great words of wisdom at the end too

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

    I love your videos!
    they are saving me everytime!
    thank you!

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

    Steffen, thank you so much. This video is so helpful!

  • @tarkanh2519
    @tarkanh2519 ปีที่แล้ว +5

    Excellent stick to the point video. Thank you Stephen. I will go through all videos.

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

    This has been exactly what I was looking for, thank you so much!

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

      Glad I could help!
      Please lmk if there is something else you are looking for!

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

    Hey Steffen, Thank you so much for this video!
    I am in the process of writing up my undergraduate Economics dissertation and this video will be of huge help :)

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

      Happy to help :)
      If you have any ideas for other Stata topics, feel free to suggest!
      Good luck with your dissertation.
      -The video: "Writing an Empirical Master Thesis" should be of help.

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

      @@SteffensClassroom do you have any idea how I can hide my country fixed effects results using outreg2? I would like to add a row that says "Country fixed effects = YES'" but I want to hide all the results for each country to make my table look neater.
      Thank you again :)

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

      Sure!
      Check the drop() option for outreg2. The variables you add in here will not be reported in the table, but are still included in the model.
      Lmk how it goes!

  • @radhikaudayk7308
    @radhikaudayk7308 9 หลายเดือนก่อน +1

    Thank you, professor, very much useful video

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

    FANTASTIC tutorial! Thank you!!

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

    Thank you so much for this beautiful video ❤️❤️❤️

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

    thank you! SO HELPFUL!!

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

    This video is awesome !
    I need to compare adj R-square with different regression model , how to put it into the table?

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

      Hi Wendy!
      If you add the option adjr2 to the outreg2 command, it will add the adjusted R^2.
      I hope this helps!

  • @ToniZ2010
    @ToniZ2010 5 หลายเดือนก่อน +1

    a qq: A Question: with Stata, I am able to label vars successfully ( I can see that in the data table). But I am unable to see the labeled vars names in a logistic model output. Is there a way to make vars' label appeared in the model output (var name, coefficient, t- value, p, and CI)?

    • @SteffensClassroom
      @SteffensClassroom  5 หลายเดือนก่อน

      Hi!
      I believe that you are referring to the label option in the outreg2 command :)

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

    Hey Steffen, thank you for this video.
    I want to ask, can the "outreg2 command be used for summary table?

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

      Hi!
      It is possible, I believe. However, I prefer using asdoc for summary statistics. I also have a video on that. Otherwise, you can always type: help outreg2 in your command video. It has a very detailed help file.

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

    Steffen legend

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

    Great stuff man. Thanks a lot!
    I'm trying to make a do-file for a PSM analysis generate the difference in ATT between treatment and control groups in 14 dependent variables in a single column, but it is generating 1 column for each dependent variable. I tried using the "onecol", but it didn't solve my problem.
    Do you have any insight on this?

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

      Hi Bruno!
      Thanks for the question. Indeed outreg2 behaves a bit 'weird' when it comes to PSM estimates. onecol does indeed not do the trick. I have searched around a bit, and came across the following: www.statalist.org/forums/forum/general-stata-discussion/general/1415218-use-outreg2-to-produce-an-unusual-regression-table
      They simply generate the table by hand. It is a little more involved, but maybe it will help you.
      Sorry I didn't have a simply solution!

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

    how do I create a tableone with baseline descriptive characteristics at one on STATA? is there any package like in R?

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

      Hello!
      For summary statistics I usually use the asdoc package. I also describe that in another video.

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

      Amazing, thank you! Have you done any videos about propensity score matching and when to match and when to adjust for covariate using STATA? my problem though is how to get info of cohorts with table of baseline characteristics after PSM. I get the same cohort I had before matching. I now btw by using tebalance summarise I can have a sort of description of mean difference for the covariate before and after, but I just want to have a simple normal tableone. thanks a lot you rule!@@SteffensClassroom

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

    Great Stuff. Question, how do I use Outreg2 on global outcomes, it seems to only add the last global regression.

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

      Hello Stef!
      Outreg2 adds the latest regression results. If I understand your question right, then you need to run outreg2 after each regression. Option replace on the first one, and option append afterwards.
      If you are using out on a global set, you need to make a loop. See groups and loops video.
      I hope this helps, otherwise feel free to send me a mail.

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

      @@SteffensClassroom Think I found it:
      . global outcomes "vote trstun"
      . foreach var of global outcomes {
      reg `var' $controls, robust
      outreg2 using Steve-outreg-file, word dec(3) append ctitle(`var') label
      }
      Using `var` within the brackets solved it for me.

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

      Happy you figured it out :) This was indeed answered in the groups and loops video.

  • @ToniZ2010
    @ToniZ2010 5 หลายเดือนก่อน +1

    Do we need to install outreg2 each time using? Or it's installed permanently?

  • @elisardojordy2154
    @elisardojordy2154 5 หลายเดือนก่อน

    what to write int the command if i wanna show the adj r square in the tabel with outreg?

    • @SteffensClassroom
      @SteffensClassroom  5 หลายเดือนก่อน

      adjr2
      You can see it in the help file. Type help outreg2.

  • @bidishasarker6080
    @bidishasarker6080 9 หลายเดือนก่อน

    Thank you so much

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

    Why do many columns appear when I download, if I only want one?

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

      Hmmm I think it is because you have run the outreg2 command with append a few times. Each time you run it, it adds a column. You should remove the file and runnthe code again. Please make sure to set it up properly in your do-file :)

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

      @@SteffensClassroom how can i delete columns and stay with 2 columns? Whats it name of the command?

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

      @@stefanomuzio4615 Like I said. Each time you run outreg2 it creates a column. You need to line this up in a do-file if you want to do this effectively. If you have added too many columns, delete the file you have created, or simply add the option replace in the do-file the first time you add a column. Just like I explain in the video. After you have run the command twice, simply stop.

  • @Daniel-yz1wc
    @Daniel-yz1wc 6 หลายเดือนก่อน

    Hi, im trying
    outreg2 using myfile
    but i keep getting this error .
    - is not a valid command name
    (error occurred while loading outreg2.ado)
    r(199);
    someone knows what does it mean?

    • @SteffensClassroom
      @SteffensClassroom  6 หลายเดือนก่อน

      Did you make sure to install this command first?
      Ssc install outreg2?

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

    why is my output in excel even after typing word

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

      Hello!
      So you use option word, correct? And not option excel. Make sure that you only use the option that you want. You should get a txt file plus the file that you specified in the options.

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

    thank you 谢谢