[R] crash when using hazard.ratio.plot from rms package

2011-01-25 Thread Hongying Li
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

[R] (no subject)

2010-08-23 Thread Hongying Li
Hi all, I have a question about survplot in Design package. There is an option to print the number of subjects at risk at the start of each time interval. But I do not know how the time interval is decided, i.e. I do not know the correspoding time to the number at risk printed. How can I get

[R] coxph

2010-08-09 Thread Hongying Li
Hello, when using coxph function from survival package, what do you do if you encounter such problem like: Warning message: In fitter(X, Y, strats, offset, init, control, weights = weights, : Loglik converged before variable 3,4 ; beta may be infinite. Thanks!

Re: [R] reading dates in Excel into R

2010-07-30 Thread Hongying Li
it would be useful to have dates read from Excel depend on the format set for displaying those dates in Excel. HTH ,,, Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Hongying Li Sent: Friday, 30

[R] reading dates in Excel into R

2010-07-29 Thread Hongying Li
I am reading dates in Excel2007 into R. Here are the functions I used: library(RODBC) channel-odbcConnectExcel2007(myfile.xlsx) tmp-sqlFetch(channel,1,as.is=T) The dates in myfile.xlsx are all in this format: mm/dd/. But when I read it to R, some columns look like -mm-dd 00:00:00,