»  Home »  Resources & support »  Users Group meetings »  1999 UK Stata Users Group meeting »  Marking the sample

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

Stata

Shop

Support

Company


The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn YouTube Instagram
© Copyright 1996–2022 StataCorp LLC   •   Terms of use   •   Privacy   •   Contact us