Stata - How to use Log-files

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Welcome to my classroom!
    This video is part of my Stata series. A series where I help you learn how to use Stata. In this video, I give an introduction on how to use log files!
    Note: What I show here is my take on the topic. I would be happy to receive comments!
    Useful links:
    ►Twitch: / steffens_classroom
    ►Twitter: / steff5001
    ►Workpage: www.rug.nl/staff/s.eriksen/
    ►Subscribe: cutt.ly/Qfu9cmV

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

  • @philippederome3883
    @philippederome3883 2 месяца назад +1

    Simple, clear and concise. Amazing tutorial !

  • @techpichardo1713
    @techpichardo1713 3 года назад +5

    Wow, this video really cleared some things up. Will be able to use STATA more efficiently now. Thanks!

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

      Glad you liked it. More videos should be added within a few days.

  • @caominhthong6436
    @caominhthong6436 Год назад +1

    Hi, just here to say that your video are awesome!

  • @grantgibson8680
    @grantgibson8680 3 месяца назад +1

    Hi Steffen, I know I'm 4 years late to the party, but I'm putting together a content playlist for my Stata learners and just wanted to flag that you're doing logs a bit wrong. You should specify the following:
    log using "C:\Users\Steffen\Videos\Stata videos\mylogfile", replace smcl (if you want to log in stata markup - this is the default)
    OR
    the *same* command, but with the option text
    log using "C:\Users\Steffen\Videos\Stata videos\mylogfile", replace text (if you want to log in ascii text)
    Stata will automatically append the correct file extension and your .txt version will be human readable :) The way you do it in your first example doesn't overwrite the default formatting of the output so stata writes to a text file in its markup language. SMCL is fine, but if you want to share your output with a co-investigator who doesn't have stata they won't be able to read it so you should use the ,text option to make it universally interpretable.
    Thanks for your videos which are generally quite good ! 😄

    • @SteffensClassroom
      @SteffensClassroom  3 месяца назад

      You are never late to the party. Not when it comes to Stata. Thanks for the comment. Much appreciated! I actually thought about updating this video a while back as I encountered this when finishing up a paper, but well... Forgot...
      If it is ok with you, I will add part of your comment in the video description.
      Thanks again!

  • @c.comploj3775
    @c.comploj3775 Год назад +1

    Is it not possible to change the name of the log file? Currently it says "unnamed" on every log file.

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

      Of course you can!
      See the video... 1:30

    • @c.comploj3775
      @c.comploj3775 Год назад +1

      @@SteffensClassroom No, that is the file name. Also in your log file example there is an "unnamed".

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

      Ah! I see. If you open the help file for the log command, you can see how you name it under 'Options for use with log'. There you will see the option for naming the log file.

    • @c.comploj3775
      @c.comploj3775 Год назад +1

      ​@@SteffensClassroom Found it! It seems quite useful to have many sub-files. Maybe you can consider making a short video in the future on this as well.