#StataTip: variable lists selected by “*” select all variables. To select all but a few (e.g. “year”) write –ds year, not– and get all variables but the one specified (results stored in local `r(varlist)’) Posted on June 16, 2022 by Jan Sauermann
#StataTip: use missing(VAR)==1 to condition on variable VAR being missing Posted on June 13, 2022 by Jan Sauermann Reply
#StataTip: use –set varabbrev off– to only allow full variable names in your Stata code (and no abbreviations) Posted on February 18, 2022 by Jan Sauermann Reply
#StataTip: use inlist(VAR,a,b,c,…,y)==1 to condition on numerical a, b, c, etc. Works also for string variables! Posted on November 19, 2021 by Jan Sauermann Reply
#Statatip: use inrange(VAR,MIN,MAX)==1 to condition on MIN<=VAR<=MAX Posted on November 19, 2021 by Jan Sauermann Reply
#Statatip: always define your Stata version in your do-file with e.g. “version 17” – this can be crucial for replicating results later Posted on October 8, 2021 by Jan Sauermann Reply
#StataTip: use –which name_ado_file– to show from which folder Stata calls the .ado-file Posted on September 1, 2021 by Jan Sauermann Reply