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

📄 ci.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 14feb2005}{...}
{cmd:help ci}, {cmd:help cii}{right:dialogs:  {bf:{dialog ci}}  {bf:{dialog cii_binomial:cii (binomial)}}{space 9}}
{right: {bf:{dialog cii_normal:cii (normal)}}  {bf:{dialog cii_poisson:cii (poisson)}}}
{hline}

{title:Title}

{p2colset 5 15 17 2}{...}
{p2col :{hi:[R] ci} {hline 2}}Confidence intervals for means, proportions, and
counts{p_end}
{p2colreset}{...}


{title:Syntax}

{phang}Syntax for ci

{p 8 11 2}
{cmd:ci} [{varlist}] 
{ifin}
{weight}
[{cmd:,} {it:{help ci##options:options}}]

{phang}Immediate command for variable distributed as normal

{p 8 12 2}
{cmd:cii} {it:#obs} {it:#mean} {it:#sd} [{cmd:,} 
{it:{help ci##ciin_option:ciin_option}}] 

{phang}Immediate command for variable distributed as binomial

{p 8 12 2}
{cmd:cii} {it:#obs} {it:#succ} [{cmd:,}
{it:{help ci##ciib_options:ciib_options}}] 

{phang}Immediate command for variable distributed as Poisson

{p 8 12 2}
{cmd:cii} {it:#exposure} {it:#events} {cmd:,} {cmdab:p:oisson} 
[{it:{help ci##ciip_options:ciip_options}}] 

{synoptset 21 tabbed}{...}
{marker options}
{synopthdr}
{synoptline}
{syntab:Main}
{synopt :{opt b:inomial}}binomial 0/1 variables; compute exact confidence
intervals{p_end}
{synopt :{opt p:oisson}}Poisson variables; compute exact confidence
intervals{p_end}
{synopt :{opth e:xposure(varname)}}exposure variable; 
implies {opt poisson}{p_end}
{synopt :{opt exa:ct}}calculate exact confidence intervals; the default{p_end}
{synopt :{opt wa:ld}}calculate Wald confidence intervals{p_end}
{synopt :{opt w:ilson}}calculate Wilson confidence intervals{p_end}
{synopt :{opt a:gresti}}calculate Agresti{c -}Coull confidence intervals{p_end}
{synopt :{opt j:effreys}}calculate Jeffreys confidence intervals{p_end}
{synopt :{opt t:otal}}output all groups combined (for use with {opt by}
only){p_end}
{synopt :{opt sep:arator(#)}}draw separator line after every {it:#} variables;
default is {cmd:separator(5)}{p_end}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{opt by} may be used with {cmd:ci} (but not with {cmd:cii}); 
see {helpb by}.{p_end}
{p 4 6 2}
{opt aweight}s and {opt fweight}s are allowed, but {opt aweight}s may not be
specified with options {opt binomial} or {opt poisson}, see {help weight}.
{p_end}

{synoptset 21}{...}
{marker ciin_option}{...}
{synopthdr :ciin_option}
{synoptline}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}
{p2line}
{p2colreset}{...}

{synoptset 21}{...}
{marker ciib_options}{...}
{synopthdr :ciib_options}
{synoptline}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}
{synopt :{opt exa:ct}}calculate exact confidence intervals; the default{p_end}
{synopt :{opt wa:ld}}calculate Wald confidence intervals{p_end}
{synopt :{opt w:ilson}}calculate Wilson confidence intervals{p_end}
{synopt :{opt a:gresti}}calculate Agresti{c -}Coull confidence intervals{p_end}
{synopt :{opt j:effreys}}calculate Jeffreys confidence intervals{p_end}
{synoptline}
{p2colreset}{...}

{synoptset 21 tabbed}{...}
{marker ciip_options}{...}
{synopthdr :ciip_options}
{synoptline}
{p2coldent :* {opt p:oisson}}numbers are Poisson-distributed counts{p_end}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
* {opt poisson} is required.


{title:Description}

{pstd}
{cmd:ci} computes standard errors and confidence intervals for each of the
variables in {varlist}.

{pstd}
{cmd:cii} is the immediate form of {cmd:ci}; see {help immed} for a general
discussion of immediate commands.

{pstd}
In the binomial and Poisson variants of {cmd:cii}, the second number specified
({it:#succ} or {it:#events}) must be an integer or between 0 and 1.  If the
number is between 0 and 1, Stata interprets it as the fraction of successes or
events and converts it to an integer number representing the number of
successes or events.  The computation then proceeds as if two integers had
been specified.


{title:Options}

{dlgtab:Main}

{phang}
{opt binomial} tells {cmd:ci} that the variables are 0/1 variables and that
binomial confidence intervals will be calculated. ({cmd:cii} produces binomial
confidence intervals when only two numbers are specified.)

{phang}
{opt poisson} specifies that the variables (or numbers in the case of
{cmd:cii}) are Poisson-distributed counts; exact Poisson confidence intervals
will be calculated.

{phang}
{opth exposure(varname)} is used only with {opt poisson}.  You do not need
to specify {opt poisson} if you specify {opt exposure()};
{opt poisson} is assumed. {it:varname} contains the total exposure (typically a
time or an area) during which the number of events recorded in {it:varlist} were
observed.

{phang}
{opt exact}, {opt wald}, {opt wilson}, {opt agresti}, and {opt jeffreys}
specify that variables are 0/1 and specify how binomial confidence intervals
are to be calculated.

{pmore}
{opt exact} is the default and specifies exact (also known in the literature
as Clopper{c -}Pearson) binomial confidence intervals.

{pmore}
{opt wald} specifies calculation of Wald confidence intervals.

{pmore}
{opt wilson} specifies calculation of Wilson confidence intervals.

{pmore}
{opt agresti} specifies calculation of Agresti{c -}Coull confidence intervals.

{pmore}
{opt jeffreys} specifies calculation of Jeffreys confidence intervals.

{phang}
{opt total} is for use with the {opt by} prefix. It requests that, in addition
to output for each by-group, output be added for all groups combined.

{phang}
{opt separator(#)} specifies how often separation lines should be inserted
into the output.  The default is {cmd:separator(5)}, meaning that a line is
drawn after every 5 variables.  {cmd:separator(10)} would draw the line after
every 10 variables. {cmd:separator(0)} suppresses the separation line.

{phang}
{opt level(#)} specifies the confidence level, as a percentage, for confidence
intervals.  The default is {cmd:level(95)} or as set by {cmd: set level};
see {helpb level}.


{title:Examples}

    {cmd:. ci mpg}
    {cmd:. ci mpg price, level(90)}
    {cmd:. ci promoted, binomial}
    {cmd:. ci promoted, binomial wilson}
    {cmd:. ci promoted, binomial agresti}
    {cmd:. ci promoted, binomial jeffreys}
    {cmd:. ci count, poisson}
    {cmd:. ci deaths, exposure(pyears)}

    {cmd:. cii 166 19509 4379}{right:(166 obs, mean=19509, sd=4379)  }
    {cmd:. cii 166 19509 4379, level(90)}
    {cmd:. cii 10 1}{right:(10 binomial events, 1 observed success)  }
    {cmd:. cii 10 1, wilson}{right:(same as above with Wilson interval)  }
    {cmd:. cii 1 27, poisson}{right:(27 Poisson events observed)  }


{title:Also see}

{psee}
Manual:  {bf:[R] ci}

{psee}
Online:
{helpb bitest},
{helpb centile},
{helpb means},
{helpb pctile},
{helpb stci},
{helpb summarize},
{helpb ttest}
{p_end}

⌨️ 快捷键说明

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