Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: R: growth rate


From   "Carlo Lazzaro" <carlo.lazzaro@tin.it>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: R: growth rate
Date   Wed, 4 Jun 2008 16:24:57 +0200

Dear Rachele,

please take a look at what follows (assuming that you are comparing two
periods and that the population at risk of hospitalization for each period
is made up of 500 individuals):
---------begin example------------------------
set obs 10000
g id=_n
g period=1 in 1/500
replace period=2 in 501/1000
g year=1
g Hosp=1 in 1/150
replace Hosp=0 in 151/500
replace Hosp=1 in 501/700
replace Hosp=0 in 701/1000
g Risk_time=1-0
stset Risk_time, id(id) failure(Hosp==1) scale(1)
sts test period, logrank
---------end of example------------------------

Another choice may be to use -irr-

HTH and Kind Regards,

Carlo
-----Messaggio originale-----
Da: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Rachele Capocchi
Inviato: mercoledý 4 giugno 2008 11.54
A: statalist@hsphsun2.harvard.edu
Oggetto: st: growth rate

Dear Statalisters,

I have to do a trend analysis on the hospitalization rates in 5 years, 
between 2001 and 2005. I have the absolute numbers of hospitalization, 
the population of all years and I calculated the hospitalization rates 
yearly.
I need to calculate the CI for the growth rate (ex. 12,5% - 13,5% growth 
rate from 2001 to 2005) and the p value.
Which test I have to do ?

Thanks a lot,
Rachele


Rachele Capocchi
Agenzia Regionale SanitÓ Toscana
"U.O. Centro Statistico Elaborazione Dati"
Sede Operativa - viale Milton,7
50134 Firenze
Tel. 055-4624354
Fax. 055-4624345 




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



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