[R] tansformation of variables in cph from rms package

Frank Harrell f.harrell at vanderbilt.edu
Sat Feb 26 15:43:21 CET 2011


Yao,

I wonder how likely it is that log transformations fit the data.  More often
I find that the flexibility of restricted cubic splines is needed.

One of the things that people take for granted when using log() is that they
are assuming that k=0 in making the transformation log(x + k).  It is often
the case the the proper origin is not zero.  This also impacts the problem
you encountered.

Besides all that, you can specify limits to predictors to nomogram() in a
variety of ways as listed in the help file.  Try that.
Frank

-----
Frank Harrell
Department of Biostatistics, Vanderbilt University
-- 
View this message in context: http://r.789695.n4.nabble.com/tansformation-of-variables-in-cph-from-rms-package-tp3325545p3325911.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list