Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: Confidence interval for proportions
From
Steve Samuels <[email protected]>
To
[email protected]
Subject
Re: st: RE: Confidence interval for proportions
Date
Mon, 10 Mar 2014 17:56:41 -0400
This is a good approach, indeed the correct approach. Since time is not
a count, events/time is a rate (events/person-time), not a proportion.
Steve
[email protected]
On Mar 10, 2014, at 12:08 PM, Joe Canner <[email protected]> wrote:
Peter,
How about:
forvalues x=1/`=_N' {
cii time[`x'] events[`x'], poisson // modify to taste
}
Regards,
Joe Canner
Johns Hopkins University School of Medicine
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Peter Jansen
Sent: Monday, March 10, 2014 11:51 AM
To: [email protected]
Subject: st: Confidence interval for proportions
I am look for a way to generate binomial confidence intervals for a database containing time / event data. Database looks like:
events time lcl ucl
1 100
2 150
etc.
One could obviously use the cii command, but in that case one needs to calculate it manually for each observation. The ci command calculates the confidence interval for the whole variable.
Thanks in advance for any hints.
PJ
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/