On 4/5/21 8:28 PM, 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 evalua
Dear John,
It's not clear to me exactly what you have in mind, but
car::linearHypothesis(), multcomp::glht(), and the emmeans package work
with Cox models. I expect there are functions in other packages that
will work too.
Here's an example, surely simpler than what you have in mind, but you
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.
B
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,
J
4 matches
Mail list logo