BookmarkSubscribeRSS Feed
samrae
Calcite | Level 5


I am trying to do a logistic regression in sas enterprise guide 5.1. I have 1 dependent variable and 13 independent variables. out of the 13 independent variables 12 are possible confounders and I am specifically looking at one variable but I still want to get the crude odds ratio and 95% ci for all independent variables.
5 REPLIES 5
PaigeMiller
Diamond | Level 26

What is the specific question you want answered?

--
Paige Miller
samrae
Calcite | Level 5

I want to know how to input it correctly. For some reason I list my dependent variable and all 13 variables under the explanatory variables section including the main independent variable. One of my variables is Sex which is not a numeric variable so i placed it under the "group by analysis" tab however i need it to generate an odds ratio and 95% ci as well in relation to my dependent variable

samrae
Calcite | Level 5

After doing all of that Ii get an error message saying there were no observations or something along those lines.

PaigeMiller
Diamond | Level 26

Exact details would help.

The exact error message, word-for-word, verbatim, leaving nothing out, would be most helpful.

The full set-up that you provided EG would also be necessary.

--
Paige Miller
samrae
Calcite | Level 5

I imported my data which was an excel file. I then sorted it. Then I clicked Task-> Regression-> logistics->I then put my dependent variable under the tab designated for it. Then the rest of my variables I placed under quantitative variables(this includes both confounders and my main independent variable). I then placed "sex" the only variable I have that isn't a numeric one under the section that says classification variables. then I went to the left window pane, clicked effects and placed my main independent variable in the effects column. then I ran it and the error message says

ERROR: EVENT=. category is not a valid response category.


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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 5 replies
  • 2436 views
  • 0 likes
  • 2 in conversation