Programming the statistical procedures from SAS

Multiple imputation

Reply
New Contributor
Posts: 3

Multiple imputation

[ Edited ]

Hi there,

I have been trying to mianalyze a multiple imputation survival data with phreg and i keep getting errors. Please help. Thanks

proc mi data=low_rectal nimpute=20 out=LOW_RECTAL_mi ;
class operation sex therapy treatment acps distal_margin radial_margin cat_age;
var operation sex therapy treatment acps distal_margin radial_margin cat_age age;
fcs reg logistic ;
ods select misspattern;
run;

ods graphics on;
proc phreg data= LOW_RECTAL_mi outest=out covout;
class operation sex therapy treatment acps 
distal_margin  radial_margin ;
class operation(ref='APR') sex(ref='F') therapy(ref='None') treatment(ref='surgery only') acps(ref='3') 
distal_margin(ref='Not reported')  radial_margin(ref='Not reported') ;
model os*os_censor(0)=operation sex therapy treatment acps distal_margin radial_margin cat_age age
/covb slentry=0.99 slstay=0.995 rl=both  best=5;
hazardratio operation/diff=all;
   ods output PARAMETERESTIMATES=parms2 covb=cov2; 
   by _imputation_;
   id univid;
   format cat_age age.;
run;
proc mianalyze parms=parms2 covb=cov2;
      modeleffects OperationAPR	SEXF	therapyNone	therapyPostOp	therapyPreOp	
					treatmentcombined	ACPS1	ACPS2	'DISTAL_MARGINNot involved'n	
					RADIAL_MARGINInvolved	'RADIAL_MARGINNot involved'n	cat_age
;
run;

 

Super User
Posts: 18,526

Re: Multiple imputation

You need to include the error message and/or the log. 

New Contributor
Posts: 3

Re: Multiple imputation

Please see attached log. thanks

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