Hello everyone, I am working on survival data with incidence of cancer and some food consumption data in quartiles. Exposition : quartile of sugared food Confusion factor : age, BMI, sex. Outcome : cancer I would like to draw a curve of cumulative hazard rate function (for example with Nelson Aalen estimator, a non parametric estimator of the cumulative hazard rate function) like this graph below : where we would see the cumulative risk of cancer in function of the 4 quartiles of food consumption. Caption of the graph : "Nelson-Aalen curves showing the outcome of new-onset overweight depending on ultraprocessed food consumption at baseline. Adjusted for sex, age, marital status, educational status" If someone had an idea of a beginning of script, i would be really grateful. i am doing Cox model with this type of script : proc phreg data=mydata;
class sexe;
model survival_time*censure(1)=sexe age IMC;
strata quartile_ultraprocessed ;
run; Thanks in advance, have a nice day,
... View more