Programming the statistical procedures from SAS

PROC MIANALYZE freezes SAS

Reply
Occasional Contributor
Posts: 10

PROC MIANALYZE freezes SAS

I am trying to run a MI with logistic regression. The proc MI and proc logistic run fine, but when I try to run the proc MIanalyze, it just runs forever until the computer freezes.

 

proc mi data=smokingr seed=550 out=p.outmi nimpute=10 minmaxiter=50;
class sex race smoking partnered ses smoke_d vitstat;
var sex race age2 yeardx_new smoke_d vitstat count ses partnered smoking;
fcs logistic(smoking ses/ link=glogit) logistic(partnered);
run;

 

proc logistic data=p.outmi;
class sex race(ref="NH White") smoking(ref="Yes") partnered(ref="Not partnered") ses(ref="Low") / param=ref;
model vitstat = sex race age2 ses partnered smoke_d smoking yeardx_new count;
by _imputation_;
ods output ParameterEstimates=parms;
run;

 

proc print data=parms; run;

 

proc mianalyze parms(classvar=classval)=parms;
title "pooled estimates SAS MI";
class sex race smoking partnered ses smoke_d;
modeleffects intercept sex race age2 ses partnered smoke_d smoking yeardx_new count;
ods output parameterestimates=MIestimates;
run;

Super User
Posts: 18,580

Re: PROC MIANALYZE freezes SAS

[ Edited ]

1. How big is your data? Number of rows or GB?

2. Does it work with sample data, try an example from the documentation?

http://documentation.sas.com/?docsetId=statug&docsetVersion=14.2&docsetTarget=statug_mianalyze_examp...

3. What version of SAS and SAS/STAT are you running?

Occasional Contributor
Posts: 10

Re: PROC MIANALYZE freezes SAS

[ Edited ]

The example code runs perfectly. My data is small, about 2500 observations and its SAS 9.4

Ask a Question
Discussion stats
  • 2 replies
  • 152 views
  • 0 likes
  • 2 in conversation