Statalist


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

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


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Estimating a model where the dependent variale is a ratio
Date   Thu, 3 Sep 2009 23:16:11 +0200

<>

http://www.stata.com/support/faqs/stat/logit.html


HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Johannes
Schoder
Gesendet: Donnerstag, 3. September 2009 21:04
An: statalist@hsphsun2.harvard.edu
Betreff: st: Estimating a model where the dependent variale is a ratio

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/


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