📄 svy_tabulate_oneway.hlp
字号:
{smcl}
{* 30mar2005}{...}
{cmd:help svy: tabulate oneway}{...}
{right:dialog: {bf:{dialog svy_tabulate_oneway:svy: tabulate oneway}}{space 8}}
{right:also see: {help "svy: tabulate postestimation"}}
{right:{helpb "svy: tabulate twoway"}{space 8}}
{hline}
{title:Title}
{p2colset 5 35 37 2}{...}
{p2col :{hi:[SVY] svy: tabulate oneway} {hline 2}}One-way
tables for survey data{p_end}
{p2colreset}{...}
{title:Syntax}
{pstd}
Basic syntax
{phang2}
{cmd:svy}{cmd::} {cmdab:tab:ulate} {varname}
{pstd}
Full syntax
{phang2}
{cmd:svy} [{it:vcetype}] [{cmd:,} {it:svy_options}]
{cmd::} {cmdab:tab:ulate} {varname} {ifin}
[{cmd:,}
{it:{help "svy: tabulate oneway##tabulate_options":tabulate_options}}
{it:{help "svy: tabulate oneway##display_items":display_items}}
{it:{help "svy: tabulate oneway##display_options":display_options}}]
{pstd}
Syntax to report results:
{phang2}
{cmd:svy} [{cmd:,}
{it:{help "svy: tabulate oneway##display_items":display_items}}
{it:{help "svy: tabulate oneway##display_options":display_options}}]
{synoptset 22 tabbed}{...}
INCLUDE help svy_tab_optable
{marker tabulate_options}{...}
{synopthdr:tabulate_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 tab(varname)}}variable
to compute cell totals/proportions of{p_end}
{synopt :{opt miss:ing}}treat missing values like other values{p_end}
{synoptline}
{marker display_items}{...}
{synopthdr:display_items}
{synoptline}
{syntab:Table items}
{synopt :{opt cel:l}}cell proportions{p_end}
{synopt :{opt cou:nt}}weighted cell counts{p_end}
{synopt :{opt se}}standard errors{p_end}
{synopt :{opt ci}}confidence intervals{p_end}
{synopt :{opt deff}}display the DEFF design effects{p_end}
{synopt :{opt deft}}display the DEFT design effects{p_end}
{synopt :{opt srs:subpop}}report
design effects assuming SRS within subpopulation{p_end}
{synopt :{opt obs}}cell observations{p_end}
{synoptline}
{p 4 6 2}
When any of {opt se}, {opt ci}, {opt deff}, {opt deft}, or {opt srssubpop} are
specified, only of one {opt cell} or {opt count} can be specified. If none of
{opt se}, {opt ci}, {opt deff}, {opt deft}, or {opt srssubpop} is specified,
both {opt cell} and {opt count} can be specified.
{marker display_options}{...}
{synopthdr:display_options}
{synoptline}
{syntab:Reporting}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}
{p2coldent:+ {opt prop:ortion}}display proportions (default){p_end}
{synopt :{opt per:cent}}display percentages instead of proportions{p_end}
{synopt :{opt nomarg:inal}}suppress column marginal{p_end}
{synopt :{opt nolab:el}}suppress displaying the value labels{p_end}
{synopt :{opt for:mat(%fmt)}}cell format, default {cmd:format(%6.0g)}{p_end}
{synopt :{opt cellw:idth(#)}}cell width{p_end}
{synopt :{opt csepw:idth(#)}}cell-separation width{p_end}
{synopt :{opt stubw:idth(#)}}stub width{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
+ {opt proportion} is not shown in the dialog box.
{title:Description}
{pstd}
{cmd:svy: tabulate} produces one-way tabulations for complex survey data or
for other clustered data. See {helpb "svy: tabulate twoway"} for two-way
tabulations for complex survey 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 tab(varname)} specifies that counts be
cell totals of this variable and proportions (or percentages) should be
relative to (i.e., weighted by) this variable. For example, if this variable
denotes income, then the cell "counts" are instead totals of income for each
cell, and the cell proportions are proportions of income for each cell.
{phang}
{opt missing} specifies that missing values of {it:varname} are to be treated
as another row category, rather than be omitted from the analysis
(the default).
{dlgtab:Table items}
{phang}
{opt cell} requests that cell proportions (or percentages) be displayed. This
is the default if {opt count} is not specified.
{phang}
{opt count} requests that weight cell counts be displayed.
{phang}
{opt se} requests that the standard errors of either cell proportions
(the default) or weighted counts be displayed.
When {opt se} (or {opt ci}, {opt deff}, or {opt deft}) is specified, only one
of {opt cell} or {opt count} can be selected. The standard error computed is
the standard error of the one selected.
{phang}
{opt ci} requests confidence intervals for either cell proportions or
weighted counts.
{phang}
{opt deff} and {opt deft} request that the design-effect measure DEFF and DEFT
be displayed for each cell proportion or weighted counts. See {hi:[SVY] estat} for details.
{pmore}
Note that options {opt deff} and {opt deft} are not allowed with estimation
results that employed direct standardization of poststratification.
{phang}
{opt srssubpop} requests that DEFF and DEFT be computed using an estimate fo
SRS (simple random sampling) variance for sampling within a subpopulation. By
default DEFF and DEFT are computed using an estimate of the SRS variance for
sampling from the entire population. Typically, {opt srssubpop} would be
given when computing subpopulation estimates by strata or by groups of strata.
{phang}
{opt obs} requests that the number of observations for each cell be
displayed.
{dlgtab:Reporting}
{phang}
{opt level(#)}; see {help estimation options}
{phang}
{opt proportion}, the default, requests that proportions be displayed.
{phang}
{opt percent} requests that percentages be displayed.
{phang}
{opt nomarginal} requests that column marginal not be displayed.
{phang}
{opt nolabel} requests that variable labels and value labels be ignored.
{phang}
{opt format(%fmt)} specifies a format for the items in the
table. The default is {hi:%6.0g}. See
{hi:[U] 12.5 Formats: controlling how data are displayed}.
{phang}
{opt cellwidth(#)}, {opt csepwidth(#)}, and
{opt stubwidth(#)} specify widths of table elements in the
output; see {helpb tabdisp}. Acceptable values for the {opt stubwidth()}
option range from 4 to 32.
{pstd}
Note that {cmd:svy:} {cmd:tabulate} uses the {cmd:tabdisp} command (see
{helpb tabdisp}) to produce the table.
Only five items can be displayed in the table at one time, where the {opt ci}
option implies 2 items.
If too many items are selected, a warning will appear immediately. To view
additional items, redisplay the table while specifying different options.
{title:Examples}
{phang}
{cmd:. webuse nhanes2b}
{p_end}
{phang}
{cmd:. svyset psuid [pweight=finalwgt], strata(stratid)}
{p_end}
{phang}
{cmd:. svy: tabulate race}
{p_end}
{phang}
{cmd:. svy: tabulate race, format(%11.3g) count ci deff deft}
{p_end}
{title:Also see}
{psee}
Manual: {bf:[SVY] svy: tabulate oneway}
{psee}
Online: {help "svy: tabulate postestimation"};{break}
{helpb "svy: tabulate twoway"},
{helpb svydes},
{helpb tabulate oneway}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -