BookmarkSubscribeRSS Feed
Tolawak
Calcite | Level 5

Hi every one,

I am a new SAS user and trying to calculate RR of binary outcome using log Poisson distribution. But my model didn't converge even after specifying the convergence option as follow;

Proc format;
value WDP_Terttile 0='T1' 1='T2' 2='T3' ;
Proc genmod descending data = Biomark.bloodprofile30 ;
class WDP_Terttile muspgen income21cat rcig21_c rrrchalc21_c reduc21_c TVHrPerW CBMI21c codea;
model TAG_status30=WDP_Terttile muspgen age21ffq income21cat rcig21_c rrrchalc21_c reduc21_c TVHrPerW CBMI21c LEnergy_kC/dist = poisson link=log lrci type3 converge=0.000000001;
repeated subject = codea/ type = unstr;
estimate 'T2 vs T1' WDP_Terttile -1 1 0 0/exp;
estimate 'T3 vs T1' WDP_Terttile -1 0 1 0/exp;
estimate 'Female vs Male' muspgen -1 1 /exp;
estimate 'Age at 21' age21ffq 1 /exp;
estimate 'Middle vs High' income21cat -1 1 0 /exp;
estimate 'Low vs High' income21cat -1 0 1 /exp;
estimate 'smokers vs None' rcig21_c -1 1 /exp;
estimate 'moderate vs light' rrrchalc21_c -1 1 0 /exp;
estimate 'heavy vs light' rrrchalc21_c -1 0 1 /exp;
estimate 'Comp Highsch vs Post sec' reduc21_c -1 1 0 /exp;
estimate 'Inc Highsch vs Post sec' reduc21_c -1 0 1 /exp;
estimate '2-4h vs < 2h' TVHrPerW -1 1 0 /exp;
estimate '> 4h vs < 2h' TVHrPerW -1 0 1 /exp;
estimate 'overweight vs Normal' CBMI21c -1 1 0 /exp;
estimate 'Obese vs Normal' CBMI21c -1 0 1 /exp;
estimate 'Energy' LEnergy_kC 1/exp;
format WDP_Terttile WDP_Terttile.;
run;

Is there some one who could help me with this, please? I thank you in advance for your concern and time,

6 REPLIES 6
Tolawak
Calcite | Level 5

Thanks Paige,

It seems what you sent me is for Proc GEE; what I need is for Proc Genmod.

 

Thanks again.

PaigeMiller
Diamond | Level 26

I specifically said it applies to PROC GENMOD.

--
Paige Miller
BochengJing
Fluorite | Level 6

This does not help. @PaigeMiller 

 

I encountered the same issue and IV and DV were not overlapped.

PaigeMiller
Diamond | Level 26

Hint: go to your favorite internet search engine and type in

 

GENMOD does not converge

 

Plenty of advice.

--
Paige Miller
ballardw
Super User

@BochengJing wrote:

This does not help. @PaigeMiller 

 

I encountered the same issue and IV and DV were not overlapped.


Since convergence issues are typically data, syntax or related to both unless your data set is identical and your syntax is identical then piggybacking on another thread doesn't really help.

Start your own thread.

Post a LOG from running your syntax including the the code and all notes or messages from the procedure. Some of the notes may give is more ideas on the convergence issue.

 

Be prepared to provide example data as well. Data should be provided in the form of working data step code OR reference one of the SAS supplied data sets such as SASHELP.CARS with matching code that provides similar results.

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1946 views
  • 0 likes
  • 4 in conversation