Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Confidence intervals using svymean


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: Confidence intervals using svymean
Date   Sun, 25 Jul 2004 14:14:52 -0400

You need to look at the var/covar matrix in e(V).  You can get the standard
errors as the square roots of the diagonal elements. You need to calculate
your own confidence intervals from this using info about d.f.  For example:

svymean x1 x2
mat v=e(V)
mat b=e(b)
scalar tval= invttail(`e(df_r)',.025)
scalar x1ci95lo=b[1,1]-sqrt(v[1,1])*tval
scalar x1ci95hi=b[1,1]+sqrt(v[1,1])*tval
scalar x2ci95hi=b[1,2]+sqrt(v[2,2])*tval
...
Michael Blasnik
[email protected]

----- Original Message ----- 
From: "Joao Pedro W. de Azevedo" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 24, 2004 8:03 PM
Subject: st: Confidence intervals using svymean


> Dear Stata users,
> I would like to know if anyone knows how I could save the confidence
> intervals after using svymean.
> I've tried both ereturn list and return list, and neither one of them
> presented me matrix that reseambled either the confidence intervals or the
> std erros.
> Am I missing something?
> Many thanks in advance,
> JP
>


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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