Programming the statistical procedures from SAS

INTERCEPT option and BY statements in GENMOD procedure

Reply
Occasional Contributor T
Occasional Contributor
Posts: 8

INTERCEPT option and BY statements in GENMOD procedure

I'm using the BY statement to have split calculations for various groups in the same dataset, but when I specify initial values for the intercept estimate in PROC GENMOD (INTERCEPT option to the MODEL statement), only the first of the BY-groups uses the initial value. Is there any way to give an initial value for each BY-group?

Edit: Confused INITIAL and INTERCEPT options in original post. Message was edited by: T
Regular Contributor
Posts: 169

Re: INITIAL option and BY statements in GENMOD procedure

Good question! It does not appear to me that it is possible to initialize the intercept for any but the first by group - unless you specify the NOINT option. Specifying an intercept along with the NOINT option would fix an intercept at the specified value (which, I believe, is probably not what you want).

I would report this to SI as a bug and see what they say.
Occasional Contributor T
Occasional Contributor
Posts: 8

Re: INITIAL option and BY statements in GENMOD procedure

I've reported to the SAS Support now, so we'll see if they have a solution. Thanks for your reply.
Occasional Contributor T
Occasional Contributor
Posts: 8

Re: INITIAL option and BY statements in GENMOD procedure

Hi again,

I had a reply from the SAS Support. Apparently this is a known limitation with GENMOD, which they hope to fix in the next version.

Until then, I guess the WHERE statement is an acceptable work-around.
Ask a Question
Discussion stats
  • 3 replies
  • 140 views
  • 0 likes
  • 2 in conversation