![]() Make sure you remember all the global macros you created elsewhere. We use a dollar sign to refer to a global macro: $ globalmacro.īe careful with the global macros that are accessible from all do-files and programs. Global macros work across the programs in Stata. Local reason `" "Work on a class assignment/paper" "Use specialized databases (e.g. However, if the strings contain spaces in between, we need to enclose `" "'. ![]() Usually we can define macros of strings with or without the quotation marks. Note that the left side is a backtick(`) usually found on the top left corner of the keyboard, and the right side is a apostrophe('). This is how you refer to a local macro: `localmacro'. ![]() Local macros only work in the current do-file or program. Macros are strings we assign to represent variables, values, texts, commands, statements etc. Gabriel Rossman, Introduction to Stata Programmingīack to top Macros Local and global macros UCLA: Statistical Consulting Group, Introduction to Stata Programming
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |