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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1158 views
  • 0 likes
  • 2 in conversation