MARKER: Stata module to generate indicator variable marking desired sample
Nicholas J. Cox
marker creates a 0-1 variable markvar, such that markvar has value 1 if all values are present (not missing) for every variable in varlist and have sensible non-zero weights if weights are specified and satisfy any if or in condition specified, and 0 otherwise. The name of markvar defaults to _marker, providing that is not already in use. The main use of marker is to define samples so that the results of commands that automatically ignore any observations with missing values on any of the variables specified (e.g. regress) are comparable with the results of other commands that do not do this (e.g. summarize). Once the sample has been defined, it can be specified by ... if markvar == 1 or even more concisely by ... if markvar
In order to set up a list of libraries that you have access to,
you must first login
or sign up.
Then set up a personal list of libraries from your profile page by
clicking on your user name at the top right of any screen.