Statalist The Stata Listserver

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

Re: st: RE: r2 in -streg-/-stcox-

From   Maarten buis <>
Subject   Re: st: RE: r2 in -streg-/-stcox-
Date   Fri, 6 Oct 2006 20:32:44 +0100 (BST)

--- Nishant Dass <> wrote:
> why does the data of Hosmer and Lemeshow (that you use in your
> note as well) mainly consist of categorical covariates and
> not continuous variables?  Do continuous variables not lend
> easily to survival analysis?  

There is no problem with using continuous variables in survival
analysis other than the assumption that the effect on log hazard or log
time (depending on your model) is linear. This is of course no
different from any other model that allows continuous variables. 

The only exception is if you want to compare the Kaplan Meier survival
curves of different groups. In that case you will have to use a
categorical variable. This is why in my example on Kaplan Meier
estimates I use the distinction between poor and rich countries, and
GDP per capita (a continuous variable) for -streg- and -stcox- models.

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

Try the all-new Yahoo! Mail. "The New Version is radically easier to use"  The Wall Street Journal
*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index