English, Article, Journal or magazine article edition: The advantages of using macros with loops Shuk-Li Man; Hannah Evans

User activity

Share to:
 
Bookmark: http://trove.nla.gov.au/version/74423
Physical Description
  • preprint
Language
  • English

Edition details

Title
  • The advantages of using macros with loops
Author
  • Shuk-Li Man
  • Hannah Evans
Physical Description
  • preprint
Notes
  • Using loops and macros in Stata can hold many advantages, mainly reducing the length of your do files, allowing errors to be tracked and fixed quickly and efficiently, faster running do files and providing us with re-usable programs which can be used in subsequent data analyses with similar scenarios. In this presentation we shall cover the following areas: * Storing global and local macros within Stata, with applied examples including storing categories of a variable, storing data summaries and names of files within a directory. * The commands foreach, forval and while, with applied examples. * Applied examples of how to combine macros with loops and show why this can be useful.
  • RePEc:boc:usug07:04
Language
  • English
Contributed by
OAIster

Get this edition

Other links

  • Set up My libraries

    How do I set up "My libraries"?

    In order to set up a list of libraries that you have access to, you must first login or sign up. Then set up a personal list of libraries from your profile page by clicking on your user name at the top right of any screen.

  • All (1)
  • Unknown (1)
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.

User activity


e.g. test cricket, Perth (WA), "Parkes, Henry"

Separate different tags with a comma. To include a comma in your tag, surround the tag with double quotes.

Be the first to add a tag for this edition

Be the first to add this to a list

Comments and reviews

What are comments? Add a comment

No user comments or reviews for this version

Add a comment