home.social

#statatip — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #statatip, aggregated by home.social.

fetched live
  1. A very pro #StataTip:

    You can split & stack your dofiles in tabbed windows. Just drag a dofile to the left of the dofile editor and click "New vertical tab group"

    This is highly useful for parallel updating or comparing multiple files, and makes the workflow easier.

  2. A pro #StataTip for #reshape that I just rediscovered while fixing some code on the train:

    One can use the @ in reshape commands to indicate where the j-index is. This is especially useful if:
    (a) variable names r not consistent (fig 👇)
    (b) variable names have mutiple numbers

  3. A #StataTip: If you are repeatedly using the same set of commands, for example for graphs or regressions, then:

    1) start using macros, and/or
    2) define small programs

    This saves you:
    (a) space, and
    (b) the hassle of copy/pasting

    and looks neater!

  4. Once in a while I post a #StataTip. Below is a thread that collects them all:

    ---
    RT @asjadnaqvi
    A 🧵 to consolidate the #Statatip posts from the past three years! Bookmark these.

    If you want to read them in detail, have a look at the Awesome @Stata tips collection:

    medium.com/the-stata-guide/the

    Its updated every 2-3 months or so. Many tips below 👇
    twitter.com/AsjadNaqvi/status/

  5. #StataTip: to suspend the execution of a @[email protected] loop (eg when certain conditions are met), add --continue-- and Stata will move to the next iteration (to stop the loop entirely, write --continue, break--)