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 on April 23, 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   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Hazard ratios from results into a table
Date   Wed, 3 Aug 2011 15:54:03 +0200

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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index