BookmarkSubscribeRSS Feed
rupacn_6
Calcite | Level 5

rupacn_6_0-1677653687797.png

 

When I am trying to run the proc genmod code I am getting this error kindly advice

 

Thanks...

 

3 REPLIES 3
ballardw
Super User

Any time you have a question about an error include the code and the complete log of the step throwing the error. Best is to copy the entire text from the log and then on the forum open a text box using the </> icon above the message window and paste the text.

 

The text box is important to preserve formatting of diagnostic messages SAS often provides. It also helps to have TEXT as we can then provide examples of changes to code that just are not possible with pictures.

 

The error is pretty clear, you have provided a parameter that is not valid for the other options in your code. Where, can't say.

I would say that you may need to run some examination of your input variables and compare the values of the parameters you set.

 

 

rupacn_6
Calcite | Level 5


PROC GENMOD DATA = PTBL.NATL_FINAL descending;
WHERE REN IN ("BLUSB", "WLUSB") and group in('Ex_PTB','N_PTB');

CLASS REN(REF = "WLUSB")
MAT_AGE20(REF = 'N')
MEDUC12(REF = 'N')
PAT_ACK (REF = 'MARRIED')
WIC (REF = "N")
FT_PNC (REF = 'Y')
BMI_RC (REF = 'NL')
/* PH_R (REF = 'N')*/
MSMOKING (REF = 'N')
/* PR_PTB(REF = 'N')*/ ;


MODEL PTB (EVENT = "Y") = REN
MAT_AGE20
MEDUC12
PAT_ACK
WIC
FT_PNC
BMI_RC
/* PH_R */
MSMOKING
/*PR_PTB */ /DIST = binomial link=log ;

ESTIMATE 'BLUSB vs WLUSB' REN 1 -1/EXP;


ESTIMATE 'UMFI vs MARRIED' pat_ack 1 0 -1/EXP;
ESTIMATE 'UMFU vs MARRIED' pat_ack 0 1 -1/exp;

ESTIMATE 'Y vs N' mat_age20 1 -1/exp;

ESTIMATE 'Y vs N' meduc12 1 -1/exp;

ESTIMATE 'Y vs N' wic 1 -1/exp;

ESTIMATE 'Y vs N' msmoking 1 -1/exp;

ESTIMATE 'Y vs N' FT_PNC 1 -1/Exp;

/* ESTIMATE 'Y vs N' PH_r 1 -1/exp; */

ESTIMATE 'AB vs NL' bmi_rc 1 -1/exp;

/*ESTIMATE 'Y vs N' pr_ptb 1 -1/exp;*/

RUN;

 

 

 

please see above code we only get the answers when we blind any two variables then only we will get the results without that error those two errors are ph_r, and Pr_ptb(poorhealth, previous preterm birts)

PaigeMiller
Diamond | Level 26

The request included showing us the LOG for this step that has the error. We need to see the ENTIRE log for this PROC, every single line of the log for the PROC that has the error, not just the ones that have the error; and pasted into the window that appears when you click on the </> icon.

2021-11-26 08_27_29-Reply to Message - SAS Support Communities — Mozilla Firefox.png

--
Paige Miller

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 323 views
  • 0 likes
  • 3 in conversation