Marking the sample

        marksample touse

is an alternative to

        tempvar touse
        mark `touse' `if' `in' `weight'
        markout `touse' `varlist'
  • marksample is convenient when used after syntax
  • use marksample anytime you are following standard Stata rules
  • if you wish not to exclude observations with missing values, use mark instead