BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mmovahed
Calcite | Level 5

Hi SAS members

 

I am trying to pool my effect estimates across my imputed datasets running a linear regression using GLIMMIX. My dependent variable is a continuous variable and my independent variable is a binary treatment variable adjusting for PS decile.

 

Here is my current code:

 

PROC GLIMMIX DATA=moh20crt.ps1_d_tt_response
METHOD=LAPLACE NOCLPRINT;
class biol (ref='TOFA') time patid ;
MODEL
/*radi_lda*/
/*radi_mda*/
radi=biol decile / CL
SOLUTION ;
RANDOM INTERCEPT /subject=patid ;
by _imputation_;
COVTEST / WALD;where month<=8;
ods output ParameterEstimates=a_mvn ;
run;

 

/* this part works well*/

 

Then I try to combine the estimate across 20 MI dataset as below


PROC MIANALYZE data=a_mvn ;
MODELEFFECTS biol ;
stderr biol;
RUN;

/* this part does not work*/

 

I am getting message below in the log 

"ERROR: Within-imputation Estimate missing for variable biol in _Imputation_= 1 in the input DATA=data set"

 

Any thought to resolve the problem

 

Thanks

Moh

1 ACCEPTED SOLUTION

Accepted Solutions
SAS_Rob
SAS Employee

You have to use both the CLASS statement and PARMS= input in Proc MIANALYZE to combine the Parameter Estimates from GLIMMIX.

 

Try  proc mianalyze  parms(classvar=full)=a_mvn;

class biol;

modeleffects intercept biol decile;

run;

 

View solution in original post

2 REPLIES 2
SAS_Rob
SAS Employee

You have to use both the CLASS statement and PARMS= input in Proc MIANALYZE to combine the Parameter Estimates from GLIMMIX.

 

Try  proc mianalyze  parms(classvar=full)=a_mvn;

class biol;

modeleffects intercept biol decile;

run;

 

mmovahed
Calcite | Level 5

Dear Rob

 

Thanks for response and solution. It did work!!

 

M

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 579 views
  • 1 like
  • 2 in conversation