Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Estimating a model where the dependent variale is a ratio


From   Johannes Schoder <[email protected]>
To   [email protected]
Subject   st: Estimating a model where the dependent variale is a ratio
Date   Thu, 03 Sep 2009 15:03:44 -0400

Hi all,

I am struggling for a while with the following issue:
I should estimate a  model of the following form:
(Number of people diagnosed with cancer type i in county c who survived 5 years or more)/ (Total number of people diagnosed with cancer type i in county c)=beta_ln_Number of people diagnosed with cancer type i in county c

In my dataset I have information on the survival time in months for each individual, the county where he was diagnosed, and the cancer type he was diagnosed with.
My advisor is using SAS and used the command:
PROC GENMOD; class type county MODEL N_SURV/N_DIAG=ln_DIAG type REPEATED SUBJECT=county However, in Stata I don't know how to estimate a model where the dependent variable is a ratio (see the lhs variable above). Does anyone know how to estimate this kind of model in Stata?
Thanks a lot for your help!!
Best,
Johannes

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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