[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-316214-105":59,"doc-detail-316214-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","svy-the-survey-prex-command","svy - The survey preﬁx command","","svy is a Stata prefix for fitting statistical models to complex survey data while accounting for survey settings defined by svyset. It supports different variance estimation methods via vcetype, including linearized Taylor, bootstrap, BRR, jackknife, and SDR. The command provides controls for subpopulation estimation through if/in and subpop(), reporting confidence levels, and formatting or suppressing output such as headers, legends, adjustments, and coefficient legends. It also documents compatibility limits with mi estimate.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/svy-the-survey-prex-command/316214/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/svy-the-survey-prex-command/316214.png","ImageObject",300,407,{"name":92,"@type":93},"Noah","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-10","2026-09-20",true,{"@type":102,"interactionType":103,"userInteractionCount":52},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of the svy prefix command?","Question",{"text":112,"@type":113},"svy fits statistical models for complex survey data while accounting for survey settings identified by svyset.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does specifying vcetype affect variance estimation?",{"text":117,"@type":113},"Specifying vcetype overrides the default variance estimation method from svyset and selects the corresponding approach (linearized Taylor, bootstrap, BRR, jackknife, or SDR).",{"name":119,"@type":110,"acceptedAnswer":120},"How can subpopulation estimates be computed with svy?",{"text":121,"@type":113},"Use the subpop() option to define the single subpopulation, based on observations where varname meets the given if conditions. Using only if or in restrictions may often produce incorrect variance estimates for subpopulations.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},316214,1790996857,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":52,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":39,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":46,"preview_page_count":4},8796095462418,"https://ap-avatar.wpscdn.com/avatar/80000253c1241d02b47?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778826106357471780","Title  \nsvy—The survey preﬁx command  \nSyntax  \nsvy 􀀂 vcetype 􀀃 􀀂 , svy options eform option 􀀃 : command  \nvcetype Description  \n\n| SE\u003Cbr>linear ized Taylor-linearized variance estimation\u003Cbr>bootstrap bootstrap variance estimation; see [SVY] svy bootstrap\u003Cbr>brr BRR variance estimation; see [SVY] svy brr\u003Cbr>jackknife jackknife variance estimation; see [SVY] svy jackknife\u003Cbr>sdr SDR variance estimation; see [SVY] svy sdr |  |\n| --- | --- |\n| Specifying a vcetype overrides the default from svyset.\u003Cbr>svy options description |  |\n| if/in\u003Cbr>subpop( 􀀂varname 􀀃 􀀂if 􀀃)\u003Cbr>SEdof(\\#)\u003Cbr>bootstrap options\u003Cbr>brr options\u003Cbr>jackknife options\u003Cbr>sdr options\u003Cbr>Reporting level(\\#) nocnsreport display options\u003Cbr>ynoheader\u003Cbr>ynolegend\u003Cbr>ynoadjust\u003Cbr>y noisily y tracey coeflegend | identify a subpopulation\u003Cbr>design degrees of freedom\u003Cbr>more options allowed with bootstrap variance estimation; see [SVY] bootstrap options\u003Cbr>more options allowed with BRR variance estimation; see [SVY] brr options\u003Cbr>more options allowed with jackknife variance estimation; see [SVY] jackknife options\u003Cbr>more options allowed with SDR variance estimation; see [SVY] sdr options\u003Cbr>set conﬁdence level; default is level(95)\u003Cbr>do not display constraints\u003Cbr>control spacing and display of omitted variables and base and empty cells\u003Cbr>suppress table header suppress table legend\u003Cbr>do not adjust model Wald statistic display any output from command trace the command\u003Cbr>display coefﬁcients' legend instead of coefﬁcient table |\n\ny noheader, nolegend, noadjust, noisily, trace, and coeflegend are not shown in the dialog boxes for estimation commands.  \nsvy requires that the survey design variables be identiﬁed using svyset; see [SVY] svyset.  \nmi estimate may be used with svy linearized if the estimation command allows mi estimate; it may not be used with svy bootstrap, svy brr, svy jackknife, or svy sdr.  \nWarning: Using if or in restrictions will often not produce correct variance estimates for subpopulations. To compute estimates for a subpopulation, use the subpop() option.  \nSee [U] 20 Estimation and postestimation commands for more capabilities of estimation commands.  \nDescription  \nsvy ﬁts statistical models for complex survey data. Typing  \n. svy: command  \nexecutes command while accounting for the survey settings identiﬁed by svyset.  \ncommand deﬁnes the estimation command to be executed. Not all estimation commands are supported by svy. See [SVY] svy estimation for a list of Stata's estimation commands that are supported by svy. See [P] program properties for a discussion of what is required for svy to support an estimation command. The by preﬁx may not be part of command.  \nOptions  \n􀀃 􀀃 if/in 􀀀 􀀀  \nsubpop(subpop) speciﬁes that estimates be computed for the single subpopulation identiﬁed by subpop, which is  \n􀀂varname 􀀃 􀀂if 􀀃  \nThus the subpopulation is deﬁned by the observations for which varname  0 that also meet the if conditions. Typically, varname = 1 deﬁnes the subpopulation, and varname = 0 indicates observations not belonging to the subpopulation. For observations whose subpopulation status is uncertain, varname should be set to a missing value; such observations are dropped from the estimation sample.  \nSee [SVY] subpopulation estimation and [SVY] estat.  \n􀀃 􀀀  \n  SE  􀀃 􀀀  \ndof(\\#) speciﬁes the design degrees of freedom, overriding the default calculation, df = Npsu 􀀀Nstrata. bootstrap options are other options that are allowed with bootstrap variance estimation speciﬁed by svy bootstrap or speciﬁed as svyset using the vce(bootstrap) option; see [SVY] bootstrap options.  \nbrr options are other options that are allowed with BRR variance estimation speciﬁed by svy brr or speciﬁed as svyset using the vce(brr) option; see [SVY] brr options.  \njackknife options are other options that are allowed with jackknife variance estimation speciﬁed by svy jackknife or speciﬁed as svyset using the vce(jackknife) option; see [SVY]jackknife options.  \nsdr options are o","cbCaiqHuarmFA7Ez","https://ap.wps.com/l/cbCaiqHuarmFA7Ez","pdf",148447,"English","# Syntax\n## vcetype Description\n## Options\n# Remarks","[{\"question\":\"What is the purpose of the svy prefix command?\",\"answer\":\"svy fits statistical models for complex survey data while accounting for survey settings identified by svyset.\"},{\"question\":\"How does specifying vcetype affect variance estimation?\",\"answer\":\"Specifying vcetype overrides the default variance estimation method from svyset and selects the corresponding approach (linearized Taylor, bootstrap, BRR, jackknife, or SDR).\"},{\"question\":\"How can subpopulation estimates be computed with svy?\",\"answer\":\"Use the subpop() option to define the single subpopulation, based on observations where varname meets the given if conditions. Using only if or in restrictions may often produce incorrect variance estimates for subpopulations.\"}]","svy - The survey preﬁx command | PDF",1789911163]