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

Re: st: confidence interval for proportion


From   Roger Newson <roger.newson@kcl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: confidence interval for proportion
Date   Tue, 02 Dec 2003 13:00:55 +0000

At 16:39 01/12/03 -0800, B. Pizacani wrote:
Is there a way to do a crosstab of two categorical
variables, say, using -tabulate- and get confidence
intervals for the proportions? I know -svytab- does
this for weighted data, but it looks like I have to do
it in two steps for unweighted data from a simple
random sample. Thanks, B. Pizacani
One possible solution might be to use official Stata's -binreg- (or -glm- with -link(iden) family(bernoulli)-), together with the -parmby- program in the -parmest- package, downloadable from SSC. -parmby- creates an output data set with 1 observation per model parameter and data on confidence intervals and P-values. For more information on how to use -parmby- together with other packages to produce tables of confidence intervals, you might like to see my Stata Journal article (Newson, 2003), which you can download as a pre-publication draft from my website (see my signature below), using either a browser or the Stata -net- command.

I hope this helps.

Roger

References

Newson R. Confidence intervals and p-values for delivery to the end user. The Stata Journal 2003; 3(3): 245-269.


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: roger.newson@kcl.ac.uk
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index