Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: Generating comparison/contingency tables


From   [email protected]
To   [email protected]
Subject   Re: st: Re: Generating comparison/contingency tables
Date   Mon, 1 Jun 2009 14:52:44 -0400

--
I was incorrect about -ci-.  It too uses a t-distribution.
-Steve
On Mon, Jun 1, 2009 at 2:45 PM,  <[email protected]> wrote:
> The ratio of the standard errors is the square root of n/(n-1).   Also
> -svy: mean- and, hence, -tabout-, but not -ci-,  will use the t
> distribution, not the Gaussian, although that will make little
> difference.
>
> -Steve
>  and the default confidence interval for -ci- is the
>
> On Mon, Jun 1, 2009 at 1:09 PM, Tomas M >
>> I compared the 95% confidence intervals with the tabout command and the -ci- command, but they do not match.  They are off by a few decimal places.  This, accordingly, leads to confidence intervals that are off by a few decimal places as well.
>>
>> Does anyone know why, or how the confidence intervals are calculated for each command?
>>
>> Thank you!
>>
>> Example:
>>
>> sysuse nlsw88,clear
>> svyset _n
>> tabout south coll using table3.txt, replace c(row se ci) f(1 5 3) clab(Row_% 95%_CI)  svy npos(lab) per
>> by south, sort: ci coll
>>
>> E.g.
>> with -tabout-: SE==1.18430, CI=21.834-26.478
>> with -ci-: SE==1.18449, CI=21.75603-26.40348
>>
>>
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index