[R] basehaz() in package survival and warnings with coxph

Terry Therneau therneau at mayo.edu
Thu Aug 9 15:00:56 CEST 2012


I've never seen this, and have no idea how to reproduce it.
For resloution you are going to have to give me a working example of the 
failure.

Also, per the posting guide, what is your sessionInfo()?

Terry Therneau

On 08/09/2012 04:11 AM, r-help-request at r-project.org wrote:
> I have a couple of questions with regards to fitting a coxph model to a data
> set in R:
>
> I have a very large dataset and wanted to get the baseline hazard using the
> basehaz() function in the package : 'survival'.
> If I use all the covariates then the output from basehaz(fit), where fit is
> a model fit using coxph(), gives 507 unique values for the time and the
> corresponding cumulative hazard function. However if I use a subset of the
> varaibles, basehaz() gives 611 values for the time and cumulative hazard.



More information about the R-help mailing list