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

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