BookmarkSubscribeRSS Feed
CathyVI
Pyrite | Level 9

I will like to perform the following on sas.

I want to run a regression model of A with B, adjusted for C. A is a continous variable, B is a risk factor e.g. BP, BMI etc. C is age.

I tried this but didnt quite get it;

proc logistic data = DATASET outmodel=test1;

model A = C|B;

run;

2 REPLIES 2
PaigeMiller
Diamond | Level 26
proc glm data=dataset;
    model a = c|b;
run; quit;

It's not clear to me what you are trying to do with OUTMODEL= in your original code.

--
Paige Miller
jiltao
SAS Super FREQ
PROC LOGISTIC is for dichotomous response variables by default. If A is a continuous variable, you might want to use PROC REG.
proc reg data=Dataset;
Model a= b c;
Run;
Quit;

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!
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 348 views
  • 2 likes
  • 3 in conversation