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
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.
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.
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.
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.