I am using a Cox time to event model and wanting to do an univariable analysis. Is there a macro for that or do I have to test each variable one at a time?
Sure, the following is for the predictor sex for example:
proc phreg data=suicide covsandwich(aggregate);
class sex(ref='male')
model time*event(0) = sex/ties=breslow;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!