Hi everyone,I was wondering if there is a faster way to do multiple linear regression for multiple outcomes?Even though I can use proc glm for each multiple linear regression (there are about 30 some outcomes, that we will be looking into), it is quite tedious to do so...
example outcomes: SBP, DBP, PP, RASBP, LASBP etc...
independent variables: age, bmi, gender(0, 1), edulevel(1, 2, 3)
outcomes, age, bmi are continuous variablesgender, education levels are categorical
PROC GLM can handle all of the outcomes in a single pass, plus it is one of the multithreaded procs, so if you have multiple CPUs available, it can really speed some of the computations. You could try::
proc glm data=yourdata;
class gender edulevel;
model sbp dbp rasbp lasbp <put as many here as you have>=gender edulevel gender*edulevel age bmi;
<insert other stuff here to get lsmeans, etc.>
quit;
Let us know if this needs more attention.
Steve Denham
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.