BookmarkSubscribeRSS Feed
ksaikali
Calcite | Level 5

proc bglimm data=ADQS nmc=100000 thin=2 seed=976352
outpost=CenterOut;
class GPPpGaBL TRTP;
model resp(event='1') = gpppgabl trtp/ dist=bin link=logit;
*random int / subject=Center monitor;
estimate "log OR" TRTP 0 1 -1/e;
ods output estimates = est;
run;

 

data est;
set est ;
odds750=exp(Mean);
o750l=exp(HPDLower);
o750u=exp(HPDUpper);
run;

 

data centerout;
set centerout;

p_750 = logistIc(intercept +GPPPGABL__3__MODERATE+TRTP2);
p_placebo=logistic(intercept +GPPPGABL__3__MODERATE);
d_750=p_750-p_placebo;
r_750=p_750/p_placebo;
o_750=(p_750/(1-p_750))/(p_placebo/(1-p_placebo));

if d_750 < 0 then pd_750=2 ; else pd_750=0;

if o_750<1 then po_750=2 ; else po_750=0;


run;

 

1st question ,  can I compute the odds ratio using o_750 calculations ?

2ns question ; why I am getting different results between the mean of o_750 and odds750 from the estimate statement?

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 0 replies
  • 227 views
  • 0 likes
  • 1 in conversation