📄 bstat.hlp
字号:
{smcl}
{* 07mar2005}{...}
{cmd:help bstat}{right:dialog: {bf:{dialog bstat}}{space 19}}
{right:also see: {help bootstrap postestimation}}
{hline}
{title:Title}
{p2colset 5 18 20 2}{...}
{p2col :{hi:[R] bstat} {hline 2}}Report bootstrap results{p_end}
{p2colreset}{...}
{title:Syntax}
{phang}
Bootstrap statistics from variables
{p 8 14 2}
{cmd:bstat}
[{varlist}] {ifin} [{cmd:,} {it:options}]
{phang}
Bootstrap statistics from file
{p 8 14 2}
{cmd:bstat}
[{it:namelist}] [{opt using} {it:filename}] {ifin} [{cmd:,}
{it:options}]
{synoptset 17 tabbed}{...}
{synopthdr}
{synoptline}
{syntab:Main}
{synopt :{opt s:tat(vector)}}observed values for each statistic{p_end}
{synopt :{opt accel(vector)}}acceleration values for each statistic{p_end}
{synopt :{opt mse}}use MSE formula for variance estimation{p_end}
{syntab:Reporting}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}
{synopt :{opt n(#)}}{it:#} of observations from which bootstrap samples
were taken{p_end}
{synopt :{opt notable}}suppress CIs{p_end}
{synopt :{opt noh:eader}}suppress the table header{p_end}
{synopt :{opt nol:egend}}suppress the table legend{p_end}
{synopt :{opt v:erbose}}display the full table legend{p_end}
{synopt :{opt ti:tle(text)}}use {it:text} as title for bootstrap results{p_end}
{synoptline}
{p 4 6 2}See {help bootstrap postestimation} for features available after estimation.
{title:Description}
{pstd}
{cmd:bstat} is a programmer's command that computes and displays estimation
results from bootstrap statistics.
{pstd}
For each variable in {it:varlist} (the default is all variables), {cmd:bstat}
computes a covariance matrix, estimates bias, and constructs several different
confidence intervals (CIs). The following CIs are constructed by {cmd:bstat}:
{pmore}
1. normal CIs (using the normal approximation){break}
2. percentile CIs{break}
3. bias-corrected (BC) CIs{break}
4. bias-corrected and accelerated (BCa) CIs (optional)
{p_end}
{pstd}
{cmd:estat bootstrap} displays a table of one or more of the above
confidence intervals; see {help bootstrap postestimation}.
{pstd}
If given the {opt using} modifier, {cmd:bstat} uses the data in
{it:filename} to compute the bootstrap statistics while preserving the data
currently in memory. {cmd:bstat} uses the data in memory by default.
{pstd}
The following options may be used to replay estimation results from
{cmd:bstat}:
{pmore}
{opt l:evel(#)}
{opt notable}
{opt noh:eader}
{opt nol:egend}
{opt v:erbose}
{opt ti:tle(text)}
{pstd}
For all other options and the qualifiers {opt using}, {opt if}, and {opt in},
{cmd:bstat} requires a bootstrap dataset.
{title:Options}
{dlgtab:Main}
{phang}
{opt stat(vector)} specifies the observed value of each statistic (i.e., the
value of the statistic using the original dataset).
{phang}
{opt accel(vector)} specifies the acceleration of each statistic, which is
used to construct BCa CIs.
{phang}
{opt mse} indicates that {opt bstat} compute the variance using deviations of
the replicates from the observed value of the statistics. By default,
{opt bstat} computes the variance using deviations from the average of the
replicates.
{dlgtab:Reporting}
{phang}
{opt level(#)}; see {help estimation options}.
{phang}
{opt n(#)} specifies the number of observations from which bootstrap samples
were taken. This value is not used in any calculations but improves the
table header when this information is not saved in the bootstrap dataset.
{phang}
{opt notable} suppresses the display of the output table.
{phang}
{opt noheader} suppresses the display of the table header. This option
implies {opt nolegend}.
{phang}
{opt nolegend} suppresses the display of the table legend.
{phang}
{opt verbose} requests that the full table legend be displayed. By default,
coefficients and standard errors are not displayed.
{phang}
{opt title(text)} specifies a title to be displayed above the
table of bootstrap results; the default title is {opt Bootstrap results}.
{title:Examples}
{phang}{cmd:. bstat, stat(b) n('n')}
{phang}{cmd:. bstat b_mpg b_weight using bsout}
{phang}{cmd:. bstat b_mpg b_weight using bsout, accel((.07,.09))}
{title:Also see}
{psee}
Manual: {bf:[R] bstat}
{psee}
Online: {helpb bootstrap}, {helpb bsample}, {helpb char}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -