A macro in Stata is comprised of a name and contents.
I have a number of variables whose name begins with the prefix indoor. What comes after indoor is not numeric (…
loops stata stata-macrosIn Stata, I have a set of variables that all begin with pkg. In their current state, their endings are …
foreach stata stata-macrosI'm a newcomer to Stata after using R for a long time. I'm trying to perform any action which involves …
stata stata-macrosI have 5000 variables and 91,534 observations in my dataset. I want to drop all variables that have all their values missing: …
stata stata-macrosI have a Stata file file1.dta and one of the variables is income. I need to calculate average_income, …
stata local-variables stata-macros