= Stata svy = The '''`-svy-`''' prefix command adjusts estimation commands to take a survey design into account. <> ---- == Usage == The [[Stata/SvySet|-svyset-]] command must be used first, to declare the survey design. As [[https://stats.oarc.ucla.edu/stata/faq/how-do-i-use-the-stata-survey-svy-commands/|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 }}} ---- == See also == [[https://www.stata.com/manuals/svysvy.pdf|Stata manual for -svy-]] ---- CategoryRicottone