⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svydes.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 22mar2005}{...}
{cmd:help svydes}{...}
{right:dialog:  {bf:{dialog svydes}}}
{hline}

{title:Title}

{p2colset 5 21 23 2}{...}
{p2col :{hi:[SVY] svydes} {hline 2}}Describe survey data{p_end}
{p2colreset}{...}


{title:Syntax}

{p 8 15 2}
{cmd:svydes} [{varlist}] {ifin} [{cmd:,} {it:options}]


{synoptset 20 tabbed}{...}
{synopthdr:options}
{synoptline}
{syntab:Main}
{synopt :{opt stage(#)}}sampling
	stage to describe; default is {cmd:stage(1)}{p_end}
{synopt :{opt final:stage}}display
	information per sampling unit in the final stage{p_end}
{synopt :{opt single}}display
	only the strata with a single sampling unit{p_end}
{synopt :{opt gen:erate(newvar)}}generate
	a variable identifying strata with a single sampling unit{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{cmd:svydes} requires that the survey design variables are identified using
{cmd:svyset}; see {helpb svyset}.


{title:Description}

{p 4 4 2}
{cmd:svydes} displays a table that describes the strata and the sampling units
for a given sampling stage in a survey dataset.


{title:Options}

{dlgtab:Main}

{phang}
{opt stage(#)} specifies the sampling stage to describe.
The default is {cmd:stage(1)}.

{phang}
{opt finalstage} specifies that results be displayed for each sampling unit
in the final sampling stage; that is, a separate line of output is produced
for every sampling unit in the final sampling stage.
This option is not allowed with {opt stage()}, {opt single}, or
{opt generate()}.

{phang}
{opt single} specifies that only the strata with a single sampling unit be
displayed in the table.

{phang}
{opt generate(newvar)} stores a variable that identifies strata
with a single sampling unit for a given sampling stage.


{title:Examples}

{phang}
{cmd:. webuse nhanes2b}
{p_end}
{phang}
{cmd:. svyset psuid [pweight=finalwgt], strata(stratid)}
{p_end}
{phang}
{cmd:. svydes}
{p_end}
{phang}
{cmd:. svy: mean hdresult}
{p_end}
{phang}
{cmd:. svydes hdresult, single}
{p_end}
{phang}
{cmd:. svydes hdresult, finalstage}
{p_end}
{phang}
{cmd:. gen newstr = stratid}
{p_end}
{phang}
{cmd:. gen newpsu = psuid}
{p_end}
{phang}
{cmd:. replace newpsu = psuid + 2 if stratid == 1}
{p_end}
{phang}
{cmd:. replace newstr = 2 if stratid == 1}
{p_end}
{phang}
{cmd:. svyset newpsu [pweight=finalwgt], strata(newstr)}
{p_end}
{phang}
{cmd:. svydes hdresult, finalstage}
{p_end}
{phang}
{cmd:. svy: mean hdresult}
{p_end}

{phang}
{cmd:. webuse nhanes2b}
{p_end}
{phang}
{cmd:. svy: mean hdresult}
{p_end}
{phang}
{cmd:. svydes if e(sample), single}
{p_end}


{title:Also see}

{p 4 13 2}
Manual:  {hi:[SVY] svydes}

{p 4 13 2}
Online:  {helpb svy}, {helpb svyset}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -