Skip to content
Prev 387706 / 398502 Next

Plotting adjusted KM curve

Dear John,

I think that what you're looking for is

plot(survfit(fit1Cox, newdata=data.frame(age=rep(65, 2), 
sex=factor("female", "male"))))

assuming, of course, that sex is a factor with levels "female" and "male".

I hope this helps,
  John

John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/
On 2021-04-04 9:34 p.m., Sorkin, John wrote:
Message-ID: <bd421645-0754-9c59-9499-e312b44a783e@mcmaster.ca>
In-Reply-To: <31181_1617586517_1351ZHCt005276_MN2PR03MB5167831095C7DEFEFAF23E76E2779@MN2PR03MB5167.namprd03.prod.outlook.com>