BookmarkSubscribeRSS Feed
ndang3188
Calcite | Level 5

proc glm data=outmi;

   by _imputation_;

  class TRT02PN;

  model W24CHG=TRT02PN/solution;

  means TRT02PN /hovtest=leven(type=abs);

  ods output ParameterEstimates=coeff;

run;

 

I am trying to obtain variance covariance matrix of the Estimates and don't know what line of code I should you.

 

 

2 REPLIES 2
SteveDenham
Jade | Level 19

What do you see when you add the inverse option to the model statement:

 

proc glm data=outmi;
   by _imputation_;
  class TRT02PN;
  model W24CHG=TRT02PN/solution inverse;
  means TRT02PN /hovtest=leven(type=abs);
  ods output ParameterEstimates=coeff;
run;

And sometimes it is easier to step away from GLM and try something like this:

 

proc glimmix data=outmi;
   by _imputation_;
  class TRT02PN;
  model W24CHG=TRT02PN/solution covb;
    ods output ParameterEstimates=coeff covb=covb;
run;

This is solely to get the covariance matrix for the fixed effects, and not to combine the imputations.

 

SteveDenham

 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 237 views
  • 2 likes
  • 3 in conversation