Stata svy
The -svy- prefix command adjusts estimation commands to take a survey design into account.
Usage
The -svyset- command must be used first, to declare the survey design.
As an example:
use https://stats.idre.ucla.edu/stat/stata/faq/svysmall, clear svyset house [pweight = wt], strata(eth) svy: regress y x1 x2 x3
