#StataTip: for blockwise selection of code in #Stata|'s do-file editor, press the option key (Mac) or alt key (Windows) and mark the respective cells with your mouse/cursor.
#StataTip: for blockwise selection of code in #Stata|'s do-file editor, press the option key (Mac) or alt key (Windows) and mark the respective cells with your mouse/cursor.
#StataTip: use --set varabbrev off-- to only allow full variable names in your #Stata code (and no abbreviations)
#StataTip: use missing(VAR)==1 to condition on variable VAR being missing
#Statatip: use inrange(VAR,MIN,MAX)==1 to condition on MIN<=VAR<=MAX
#StataTip: use --which name_ado_file-- to show from which folder #Stata calls the .ado-file
#StataTip: use --set varabbrev off-- to only allow full variable names in your #Stata code (and no abbreviations)
#StataTip: use --set varabbrev off-- to only allow full variable names in your #Stata code (and no abbreviations)
#StataTip: to suspend the execution of a #Stata 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--)
#StataTip: if you want to use quotation marks in a local, embed the local in compound quotation marks:
local compound=`"Bernie said "Hi" "'|#StataTip: if you want to use quotation marks in a local, embed the local in compound quotation marks:
local compound=`"Bernie said "Hi" "'