BookmarkSubscribeRSS Feed
mconway
Calcite | Level 5

Hi! I am a thesis student and I do not have a strong background in statistics. I need to run an ordinal logistic regression and I was not taught how to run this in my courses. 

The best way I can describe the data is that I have four independent variables that are continuous and one dependent variables that is ordinal. I believe I am on SAS version 9.4 (I was not sure how to find it so I looked up code that would tell me the version). Any help is greatly appreciated! 

5 REPLIES 5
Reeza
Super User

To find version, run following and check the log.

proc product_status;run;

Examples for Ordinal Regression:

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_logistic_examples03.htm

 

Full Code:

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_code_logiex3.htm

 


@mconway wrote:

Hi! I am a thesis student and I do not have a strong background in statistics. I need to run an ordinal logistic regression and I was not taught how to run this in my courses. 

The best way I can describe the data is that I have four independent variables that are continuous and one dependent variables that is ordinal. I believe I am on SAS version 9.4 (I was not sure how to find it so I looked up code that would tell me the version). Any help is greatly appreciated! 


 

mconway
Calcite | Level 5

Hi thank you so much! We were able to get here but I am still struggling with frequency. I have four levels to my dependent variable if that helps. I have listed the code with what we have. Thanks again! Any help is greatly appreciated! 

 

proc hplogistic data=MYLIB NAME; 

   /*freq freq;/* 

   /*class Additive(ref='4') / param=ref ;*/ 

   model Dependent Variable= Independent Variable 1 |Independent Variable 2 |Independent Variable 3| Independent Variable 4 |Independent Variable 5 |Independent Variable 6;

   title 'Multiple Response Cheese Tasting Experiment'; 

run; 

Reeza
Super User
Frequency is only required if you have a variable that indicates how many types that particular situation/case occured. You may not need it at all.
sbxkoenk
SAS Super FREQ
/* Put SAS version ("long" -> with maintenance release and P-date)*/
%PUT &=sysvlong; 

/* Put version of every module in LOG */ 
proc product_status; run;

Also, check here (look at first 3 hits) :
https://www.lexjansen.com/search/searchresults.php?q=ordinal%20logistic%20regression

 

Koen

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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