BookmarkSubscribeRSS Feed
DW
Calcite | Level 5 DW
Calcite | Level 5

Hi,

 

Does anyone know if there is a way to get odds ratios (and 95% confidence intervals) for a multiple logistic regression model where data was imputed with proc mi (fcs logistic regression method) and combined with proc mianalyze?

 

This is the code I used:

 

PROC MIANALYZE PARMS(CLASSVAR=CLASSVAL)=temp.parmsout covb(effectvar=stacking)=temp.covbout;
CLASS homeowner carowner Ethnicity;
MODELEFFECTS age_reg homeowner carowner Ethnicity;
RUN;

 

This gives me the pooled parameter estimates from my 10 imputations and the variance information, but wondering if I can get pooled odds ratios? Or can I transform the estimates into odds ratios?

 

Any help would be much appreciated.

 

Many Thanks

1 REPLY 1
H
Pyrite | Level 9 H
Pyrite | Level 9

Alright, I just posted my own question - so I will pay it forward by tryig to tackle this one.

 

proc surveylogistic data=mydata varmethod=jk;
	by _imputation_;
	class X1 (ref='0') /param=ref;;
	model Y (event='1') = X1;
	ods output parameterestimates=ORs;
run;
proc mianalyze parms(classvar=classval)=ORs;
	class X1;
	modeleffects intercept X1;
run;

 

I hope this helps, I just grabbed this old piece of code from when I ran a comparable question.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 4881 views
  • 0 likes
  • 2 in conversation