Category: CollTipStata
-
#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)’)
-
#StataTip: use missing(VAR)==1 to condition on variable VAR being missing
-
#StataTip: useĀ –set varabbrev off– to only allow full variable names in your Stata code (and no abbreviations)
-
#Statatip: use inrange(VAR,MIN,MAX)==1 to condition on MIN<=VAR<=MAX
-
#Statatip: always define your Stata version in your do-file with e.g. “version 17” – this can be crucial for replicating results later