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

st: New program: NDBCI


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   st: New program: NDBCI
Date   Tue, 17 Aug 2004 22:06:29 -0500

I recently had to produce a detailed report of incidence rates for many variables and by groups. Stata's -ci. had a number of problems regarding incomplete displays and poor formatting. So taking Nick Cox's usual advice, I created a new program - really a wrapper for Stata's ci.

It displays the number of cases (Stata's ci does not), produces output in the desired number of person years, allow well-formatted output for each level of a by group, allows replacement of dependent variable and grouping variable names with descriptions, allows formatting of numerical output and allows for fine tuning of the display. Here's an example.


. ndbci cycl if lpuse , exposure (_ndbtime) bygroup(edcat) level(90) per(1000) outcome(Vanquished) format(%9.1f) group(Educ> ation) col2(-3) col1(-1)

Years 1000 yr --Poisson Exact --
Outcome | Education Count Exposure Rate [90% Conf. Interval]
-------------+---------------------------------------------------------------
Vanquished | 0-8 4 784.0 5.1 1.7 11.7
Vanquished | 8-11 12 2274.0 5.3 3.0 8.5
Vanquished | 12 56 9335.0 6.0 4.7 7.5
Vanquished | 13-15 54 6608.5 8.2 6.4 10.3
Vanquished | 16 or > 58 6819.0 8.5 6.8 10.6

. ndbci cycl if lpuse , exposure (_ndbtime) bygroup(edcat) level(90) per(100000) outcome(Vanquished) format(%9.0f) group(Education) col2(-3) col1(-1)

Years 100000 yr --Poisson Exact --
Outcome | Education Count Exposure Rate [90% Conf. Interval]
-------------+---------------------------------------------------------------
Vanquished | 0-8 4 784 510 174 1168
Vanquished | 8-11 12 2274 528 304 855
Vanquished | 12 56 9335 600 474 749
Vanquished | 13-15 54 6609 817 643 1025
Vanquished | 16 or > 58 6819 851 676 1058


Thanks to Kit Baum the program may be obtaine from the BU archives.

ssc install ndbci


Fred Wolfe





Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125 Fax (316) 263-0761
[email protected]


*
* 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