Dear John,

I googled "contrasts Cox regression" and found

https://stats.stackexchange.com/questions/15603/performing-contrasts-among-treatment-levels-in-survival-analysis

where Frank Harrell reports how to do what you want with his rms package. At least I think so, haven't tried it myself.

Best, Göran

On 2021-04-06 05:28, Sorkin, John wrote:
I would like to define contrasts on the output of a coxph function.
It appears that the contrast function from the contrast library does
not have a method defined that will allow computation of contrasts on
a coxph object.

How does one define and evaluate contrasts for a cox model?

Thank you, John

John David Sorkin M.D., Ph.D. Professor of Medicine Chief,
Biostatistics and Informatics University of Maryland School of
Medicine Division of Gerontology and Geriatric Medicine Baltimore VA
Medical Center 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD
21201-1524 (Phone) 410-605-7119 (Fax) 410-605-7913 (Please call phone
number above prior to faxing)


______________________________________________ R-help@r-project.org
mailing list -- To UNSUBSCRIBE and more, see 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.


______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to