Programming the statistical procedures from SAS

proc mianalyze with phreg output

Reply
New Contributor
Posts: 2

proc mianalyze with phreg output

Hi,

Any suggestions for debugging  PROC MIANALYZE code?   Thank you very much! :

1.  Ran PHREG with class variables on 10 imputation data sets (created with PROC MI)

proc phreg data=mydat;

  by _imputation_;

  class sex (descending) age_3gp (descending) hosp_type (descending);

  model tt_lastcontact_months*alive(1)=   sex  age_3gp  hosp_type / covb  risklimits;

  format sex sexfm.   hosp_type type3fm.  ;

ods output parameterestimates=parms2  covb=cov2;

run;

2.  Ran PROC MIANALYZE.  Resulted in ERRORs in log file.  Is the problem this different "Parameter" values in the ParameterEstimates (ex SEX) and Covb (ex SEXMale) output data sets?  Know a solution to the problem?

proc mianalyze parms(classvar=classval)=parms2   covb(effectvar=stacking)=cov2  ;

  class sex age_3gp  hosp_type ;

  modeleffects  intercept sex  age_3gp  hosp_type;

run;

ERROR: Variable intercept is not in the COVB= data set.

Removed the intercept, then log said

ERROR: Variable age_3gp61_70 is not in the COVB= data set.

Helen

Ask a Question
Discussion stats
  • 0 replies
  • 746 views
  • 0 likes
  • 1 in conversation