Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: Hazard ratios from results into a table


From   "D.W.Richards" <d.w.richards@open.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Hazard ratios from results into a table
Date   Wed, 3 Aug 2011 15:54:59 +0100

Hi Maarten,

Have downloaded the manual and am reading chapter 7 now.  Thanks for the advice,

Dan

-----Original Message-----
From: Maarten Buis [mailto:maartenlbuis@gmail.com] 
Sent: 03 August 2011 14:54
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Hazard ratios from results into a table

On Wed, Aug 3, 2011 at 1:24 PM, D.W.Richards wrote:
> I am using survival analysis to obtain a hazard ratio for each investor based on data about their transactions in the stock market.  The code I have been using is:
>
> bys investorid: stcox var1
>
> This produces a hazard ratio for each investor but the output is very long and difficult to use for further analysis.  To transfer each hazard ratio from the output, I am currently cutting and pasting the hazard ratio into an excel sheet.  Then putting this information back into stata for further analysis.

Seems to me you are trying to do a multilevel survival analysis in two
steps: first estimate a coefficient by investor, and than explain
those coefficients using investor level explanatory variables. In that
case you can try doing this all in one using -gllamm-. There is a
section on survival analysis in the -gllamm- manual, which you can
download from <www.gllamm.org>.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------

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

-- 
The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302).


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