📄 svy_mean.hlp
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help svy: mean}{...}
{right:dialog: {bf:{dialog svy_mean}}{space 16}}
{right:also see: {help "svy: mean postestimation"}}
{hline}
{title:Title}
{p2colset 5 24 26 2}{...}
{p2col :{hi:[SVY] svy: mean} {hline 2}}Estimate means for survey data{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 42 2}
{cmd:svy} [{it:vcetype}]
[{cmd:,} {it:svy_options}]
{cmd::} {cmd:mean} {varlist} {ifin} [{cmd:,} {it:options}]
{synoptset 27 tabbed}{...}
INCLUDE help svy_sum_optable
{synopthdr:options}
{synoptline}
{syntab:Model}
{synopt :{opt std:ize(varname)}}variable
identifying strata for standardization{p_end}
{synopt :{opt stdw:eight(varname)}}weight variable
for standardization{p_end}
{synopt :{opt nostdr:escale}}do
not rescale the standard weight variable{p_end}
{syntab:if/in/over}
{synopt :{opt over}{cmd:(}{it:varlist} [{cmd:,} {opt nolab:el}]{cmd:)}}identify
multiple subpopulations{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
{cmd:svy: mean} produces estimates of finite-population means from survey
data; see {helpb mean} for a description of sample means from nonsurvey data.
{title:Options}
{phang}
{it:svy_options}; see {helpb svy}.
{dlgtab:Model}
{phang}
{opt stdize(varname)}
specifies that the point estimates be adjusted by direct standardization
across the strata identified by {it:varname}. This option requires the
{opt stdweight()} option.
{phang}
{opt stdweight(varname)}
specifies the weight variable associated with the standard strata identified
in the {opt stdize()} option. The standardization weights must be constant
within the standard strata.
{phang}
{opt nostdrescale}
prevents the standardization weights from being rescaled within the
{opt over()} groups. This option requires {opt stdize()} but is ignored if
the {opt over()} option is not specified.
INCLUDE help svy_sum_opdesc
{title:Examples}
{phang}
{cmd:. webuse nmihs}
{p_end}
{phang}
{cmd:. svyset [pw=finalwgt], strata(strata)}
{p_end}
{phang}
{cmd:. svy: mean birthwgt}
{p_end}
{phang}
{cmd:. svy: mean birthwgt, over(race)}
{p_end}
{phang}
{cmd:. webuse nmihs}
{p_end}
{phang}
{cmd:. svyset [pw=finalwgt], strata(strata)}
{p_end}
{phang}
{cmd:. svy: mean birthwgt, over(race marital)}
{p_end}
{phang}
{cmd:. webuse nmihs}
{p_end}
{phang}
{cmd:. svyset [pw=finalwgt], strata(strata)}
{p_end}
{phang}
{cmd:. svy, subpop(if race == "black":race) nolegend:}
{cmd:mean birthwgt, over(marital)}
{p_end}
{title:Also see}
{psee}
Manual: {bf:[SVY] svy: mean}
{psee}
Online: {help "svy: mean postestimation"};{break}
{helpb mean},
{helpb "svy: proportion"},
{helpb "svy: ratio"},
{helpb "svy: total"}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -