[R] rcspline.problem

Bart Ferket b.ferket at erasmusmc.nl
Thu Jul 19 16:10:57 CEST 2012

Dear professor Harrell, 

I probably have the same problem as Haleh Ghaem Maralani.

I am using the rms package and the rcspline.plot function to assess the
relation of a continuous predictor to the log hazard function. 

I would like to use the "adj" statement, for example using this test


test <-read.csv("file.csv",header=TRUE) 
rcspline.plot(test$factor, test$Time,model="cox", adj=cbind(test$adj1,

Then I get the following Error. 

-0.7860188  3.4871734 -4.6087226 -0.6761077 -0.9358280 
[1] -3686.955 -3646.681
Error in pchisq(q, df, lower.tail, log.p) : 
  Non-numeric argument to mathematical function

Could you please help us understanding how to use the adj statement?

Bart Ferket, MD, dept. Epidemiology, ErasmusMC Rotterdam


View this message in context: http://r.789695.n4.nabble.com/rcspline-problem-tp3501627p4637039.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list