BookmarkSubscribeRSS Feed
ngio
Calcite | Level 5

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;

 

2 REPLIES 2
Reeza
Super User

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

ngio
Calcite | Level 5

Please see attached log. thanks

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1857 views
  • 0 likes
  • 2 in conversation