Re: [R] plot(cox.zph())

2007-09-27 Thread Terry Therneau
The problem posed was the following: > fit <- coxph( > zp <- cox.zph(fit) > plot(zp[1]) Error in plot.window(xlim, ylim, log, asp, ...) : need finite 'ylim' values There were 21 covariates, but over 7000 events, so the Cox model fits ok. After sending me t

[R] plot(cox.zph())

2007-09-26 Thread Pu, Aihua
Hello, I got error message when applying the plot function to the cox.zph object to create the Schoenfeld residual plots. > plot(zph.revasFit[1]) Error in plot.window(xlim, ylim, log, asp, ...) : need finite 'ylim' values In addition: Warning messages: 1: NaNs produced in: sqrt(x$var