Dear all, I always encounter a crash when running hazard.ratio.plot from rms package with my predictor as a factor. It works fine when the predictor is a continous score. Anyone encounters this too? Is this a bug or something? Thanks, Lilian [[alternative HTML version deleted]]
Peter Ehlers
2011-Jan-26 02:52 UTC
[R] crash when using hazard.ratio.plot from rms package
On 2011-01-25 17:08, Hongying Li wrote:> > Dear all, > I always encounter a crash when running hazard.ratio.plot from rms package with my predictor as a factor. > It works fine when the predictor is a continous score. > Anyone encounters this too? Is this a bug or something?Could you define "crash" for us? Even better, include a *reproducible* example of your problem. Peter Ehlers> Thanks, > Lilian > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Dennis Murphy
2011-Jan-26 05:39 UTC
[R] crash when using hazard.ratio.plot from rms package
Hi:>From the function's Description on its help page:The hazard.ratio.plot function repeatedly estimates Cox regression coefficients and confidence limits within time intervals. The log hazard ratios are plotted against the mean failure/censoring time within the interval. ^^^^ It would appear that the x argument of the function needs to be a numeric time variable. Dennis On Tue, Jan 25, 2011 at 5:08 PM, Hongying Li <colorleaf@hotmail.com> wrote:> > Dear all, > I always encounter a crash when running hazard.ratio.plot from rms package > with my predictor as a factor. > It works fine when the predictor is a continous score. > Anyone encounters this too? Is this a bug or something? > Thanks, > Lilian > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Seemingly Similar Threads
- cph/nomogram Design/RMS package hazard ratio: interquartile vs per unit
- Relative Risk/Hazard Ratio plots for continuous variables
- Nomogram with stratified cph in rms package, how to get failure probability
- Problem comparing hazard ratios
- How to change value of y axis from log relative Hazard to relative Hazard