BookmarkSubscribeRSS Feed
VioletaB
Calcite | Level 5

Hello,

 

I am trying to run the following code:

 

proc logistic data=l;
class trt(ref="0") group  GR1 GR1/ param=ref;
model crit(event="1")= trt  group BASE GR1 GR1 / alpha=0.05 expb plcl plrl lackfit orpvalue;
Run;

base is continuous variable, all others are binary. I get the following NOTE: At least one element of the (projected) gradient is greater than 1e-3 and it looks that this is due to calculating p-value. if orpvalue removed from the model statement, this note is not present anymore.  Is there any other way to calculate p-value for Odds Ratio with proc logistic or example of how to do this with proc glimmix or genmode?

 

Thank you

 

2 REPLIES 2
sbxkoenk
SAS Super FREQ

There are some alternative ways in
... SAS Note 53376: "Computing p-values for odds ratios."

Usage Note 53376: Computing p-values for odds ratios

https://support.sas.com/kb/53/376.html

 

Ciao, Koen

Ksharp
Super User
Not sure. But deserve to try option FIRTH:

model crit(event="1")= trt group BASE GR1 GR1 / firth ;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 2 replies
  • 690 views
  • 3 likes
  • 3 in conversation