BookmarkSubscribeRSS Feed
Chi
Calcite | Level 5 Chi
Calcite | Level 5

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

1 REPLY 1
SteveDenham
Jade | Level 19

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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1218 views
  • 0 likes
  • 2 in conversation