BookmarkSubscribeRSS Feed
AudreyM
Calcite | Level 5

i have to do this proc genmod:

PROC GENMOD DATA = _1;
  CLASS TRTP1-TRTP3 country1-country21 NEXTGR11-NEXTGR12 FEVPGR11-FEVPGR13;
  MODEL AVAL = TRTP1-TRTP3 country1-country21 NEXTGR11-NEXTGR12 FEVPGR11-FEVPGR13 /
  OFFSET=LNFUDUR2 DIST=negbin LINK=log;
  BAYES SEED=22022021 COEFFPRIOR=uniform THIN=100 OUTPOST= dataset2 NMC=100000;
RUN;

 

but unfortunately, i have the below error messages (all the covariates are binary 0/1 and the AVAL variable includes only integer values from 0 to 5. Only the OFFSET variable is a continuous variable)

AudreyM_0-1671449940332.png

 

The distribution of AVAL is the following:

AudreyM_1-1671450115242.png

 

my thought is that is due to the low variability of AVAL because in a lot of strata, the available values of AVAL are only 0.

 

But these are the data that i have so i cannot change them. i have tried to round the offset variable so have a fix number of digits but does not change the outcome.

 

Would you have any solution to resolve this?

 

Thanks

Audrey

 

 

1 REPLY 1
PaigeMiller
Diamond | Level 26

Hessian not positive definite often is a result of the model not fitting the data well. See https://communities.sas.com/t5/Statistical-Procedures/mixed-model-NOTE-Convergence-criteria-met-but-...

--
Paige Miller

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

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 905 views
  • 0 likes
  • 2 in conversation