<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROC GENMOD - parameter invalid or at a limit of its range in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879667#M43521</link>
    <description>&lt;P&gt;Maybe you could have a look here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HOW CAN I ESTIMATE RELATIVE RISK IN SAS USING PROC GENMOD FOR COMMON OUTCOMES IN COHORT STUDIES? | SAS FAQ&lt;BR /&gt;&lt;A href="https://stats.oarc.ucla.edu/sas/faq/how-can-i-estimate-relative-risk-in-sas-using-proc-genmod-for-common-outcomes-in-cohort-studies/" target="_blank" rel="noopener"&gt;https://stats.oarc.ucla.edu/sas/faq/how-can-i-estimate-relative-risk-in-sas-using-proc-genmod-for-common-outcomes-in-cohort-studies/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;See the sections :&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Relative risk estimation by log-binomial regression&lt;/LI&gt;
&lt;LI&gt;Adjusting the relative risk for continuous or categorical covariates&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/search/searchresults.php?q=relative%20risk%20log%20binomial%20regression%20genmod" target="_blank"&gt;https://www.lexjansen.com/search/searchresults.php?q=relative%20risk%20log%20binomial%20regression%20genmod&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Tip: Learn lexjansen.com&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Learn-lexjansen-com/m-p/436336#M26" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Learn-lexjansen-com/m-p/436336#M26&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;BR /&gt;Koen&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 22:08:46 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-06-07T22:08:46Z</dc:date>
    <item>
      <title>PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879580#M43513</link>
      <description>&lt;DIV id="sasLogError1_1686146795564" class="sasError focus-line"&gt;
&lt;P&gt;&lt;SPAN&gt;I'm trying to do binomial regression modeling with some biomedical data on the web version&amp;nbsp;of SAS, but PROC GENMOD is giving me this error message for about 36 out of the 40 variables I want to incorporate:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;SPAN&gt;ERROR: The mean parameter is either invalid or at a limit of its range for some observations.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;So it looks like this means that the estimate of association it's calculating for a predictor is either less than 0 or greater than 1, and because the measure of association can't be less than anybody or more than everybody, it's having errors. This is a bit mysterious to me because I did not see any eg race group where everyone in that group had the same outcome relative to my response variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Anyway, I get graphs like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph with yes and no all the way in a corner rather than along the dotted line" style="width: 848px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84774i560B0CA3B5A376A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-06-07 at 5.22.12 PM.png" alt="Graph with yes and no all the way in a corner rather than along the dotted line" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Graph with yes and no all the way in a corner rather than along the dotted line&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;I have some idea of what's probably wrong, I'm just not familiar enough with SAS coding to fix it on my own and would really appreciate some help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS is also putting up warnings that my model is not converging, which I suspect is because most of my variables are not yet added, but if you think it may be something else, please explain.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Other info:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The variables that run are all ordinal (scale of 1-5, etc). Just about everything else has a character string ("always," "often"...) for each option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*only variables that run;
proc genmod;
class  connectn    ratherknown normaln    explainn 
age  

/ param=glm;
model longbi = connectn    ratherknown normaln     explainn 
age  

/ dist=bin link=log;
lsmeans connectn    ratherknown normaln     explainn 
age 

/ diff exp cl;
run;

*example code with the error;
proc genmod;
class  connectn    ratherknown normaln    explainn 
age  
White   Black   Asian   Native  Pacific MidEast Mixed   raceOther

/ param=glm;
model longbi = connectn    ratherknown normaln     explainn 
age  
White   Black   Asian   Native  Pacific MidEast Mixed   raceOther

/ dist=bin link=log;
lsmeans connectn    ratherknown normaln     explainn 
age 
White   Black   Asian   Native  Pacific MidEast Mixed   raceOther

/ diff exp cl;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph for age with thin gray lines running horizontal and vertical but still no blue or red significant/not significant marks" style="width: 842px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84776iF6D0EE257FD58D1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-06-07 at 5.29.33 PM.png" alt="Graph for age with thin gray lines running horizontal and vertical but still no blue or red significant/not significant marks" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Graph for age with thin gray lines running horizontal and vertical but still no blue or red significant/not significant marks&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph for Black race with yes and no in the bottom right corner" style="width: 844px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84782i4C5C0282D2841C7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-06-07 at 5.33.15 PM.png" alt="Graph for Black race with yes and no in the bottom right corner" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Graph for Black race with yes and no in the bottom right corner&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Least squares graphs for Black race predictor with a lot of missing/weird outputs" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84779i24DB63D7BE43B067/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-06-07 at 5.33.04 PM.png" alt="Least squares graphs for Black race predictor with a lot of missing/weird outputs" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Least squares graphs for Black race predictor with a lot of missing/weird outputs&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Least squares graphs for Other race predictor with a lot of missing/weird outputs" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84781i1F26587E98756B4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-06-07 at 5.29.07 PM.png" alt="Least squares graphs for Other race predictor with a lot of missing/weird outputs" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Least squares graphs for Other race predictor with a lot of missing/weird outputs&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Model fit criteria (poor)" style="width: 834px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84786i55481083F80EA324/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-06-07 at 5.54.52 PM.png" alt="Model fit criteria (poor)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Model fit criteria (poor)&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Jun 2023 14:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879580#M43513</guid>
      <dc:creator>akimme</dc:creator>
      <dc:date>2023-06-07T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879589#M43515</link>
      <description>&lt;P&gt;This, again, is addressed in the note that I referred you to in your last post about this log binomial model. &lt;A href="https://support.sas.com/kb/23/003.html" target="_self"&gt;That note&lt;/A&gt; refers to fitting problems that are quite likely with this model due to the log link not ensuring that predicted values are restricted to the [0,1] range and links to &lt;A href="http://support.sas.com/kb/23001.html" target="_self"&gt;this note&lt;/A&gt; that mentions the error you are seeing. The more complex the model, the more likely these fitting problems will be. So, I again suggest that you try one of the other modeling approaches discussed in that note for estimating relative risks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 15:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879589#M43515</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-06-07T15:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879596#M43517</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By using the LINK=LOG option with binomial data, you are trying to model&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the relative risk. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The more common logit link (LINK=LOGIT) results in a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;logistic model which allows you to estimate odds ratios rather than&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;relative risks.&amp;nbsp;&amp;nbsp;The logit link makes it much less likely to encounter&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;such errors. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you must use the log link, see this usage note:&lt;BR /&gt;&lt;BR /&gt;Usage Note 23003: Estimating a relative risk (also called risk ratio, prevalence ratio)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/kb/23/003.html" target="new"&gt;http://support.sas.com/kb/23/003.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The answers to many questions can be found in the Samples and SAS Notes&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in our searchable knowledgebase,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/kb" target="new"&gt;http://support.sas.com/kb&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;use the search engine there to find the answers you need.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 15:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879596#M43517</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-06-07T15:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879618#M43519</link>
      <description>I'm still pretty new to SAS and it's hard for me to follow the notes if they don't have examples. Is there some example code you could point me to?</description>
      <pubDate>Wed, 07 Jun 2023 17:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879618#M43519</guid>
      <dc:creator>akimme</dc:creator>
      <dc:date>2023-06-07T17:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879620#M43520</link>
      <description>Thanks for the database link! I've read through that note but many of its examples are for different models than what I need and it's hard for me to follow the notes without examples.&lt;BR /&gt;&lt;BR /&gt;Could you direct me toward some sample code or more beginner friendly guides?</description>
      <pubDate>Wed, 07 Jun 2023 17:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879620#M43520</guid>
      <dc:creator>akimme</dc:creator>
      <dc:date>2023-06-07T17:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879667#M43521</link>
      <description>&lt;P&gt;Maybe you could have a look here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HOW CAN I ESTIMATE RELATIVE RISK IN SAS USING PROC GENMOD FOR COMMON OUTCOMES IN COHORT STUDIES? | SAS FAQ&lt;BR /&gt;&lt;A href="https://stats.oarc.ucla.edu/sas/faq/how-can-i-estimate-relative-risk-in-sas-using-proc-genmod-for-common-outcomes-in-cohort-studies/" target="_blank" rel="noopener"&gt;https://stats.oarc.ucla.edu/sas/faq/how-can-i-estimate-relative-risk-in-sas-using-proc-genmod-for-common-outcomes-in-cohort-studies/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;See the sections :&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Relative risk estimation by log-binomial regression&lt;/LI&gt;
&lt;LI&gt;Adjusting the relative risk for continuous or categorical covariates&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/search/searchresults.php?q=relative%20risk%20log%20binomial%20regression%20genmod" target="_blank"&gt;https://www.lexjansen.com/search/searchresults.php?q=relative%20risk%20log%20binomial%20regression%20genmod&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Tip: Learn lexjansen.com&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Learn-lexjansen-com/m-p/436336#M26" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Learn-lexjansen-com/m-p/436336#M26&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 22:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879667#M43521</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-06-07T22:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879737#M43525</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Actually, I've been asking too broad of questions. Maybe I should have posted in New to SAS but log binomial seems to be a less common method. Let's try:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. I tested the non-numericized variable explain (“always,” “often,” etc,) responses against explainn (-2 to 2). but only explainn works.&amp;nbsp; When I recode variables like that, I check them with FREQ so I know that if there were for example, 104 “always” responses and 170 “often” responses, that's going to be the same for both explain and explainn. If SAS’ estimate is falling out of the 0-1 range for one of those, despite having the same numbers of each response, this tells me that SAS is doing some different procedure for strings versus numerical values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;Where in that code does it tell SAS to weight character strings differently than numbers and how do I fix that?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. If LSMEANS is used for categorical variables and ESTIMATE for continuous/numerical variables, why are none of my categorical/string variables working? Only the ones with ordinal values, expressed in numbers -2 to 2 or 0 to 5, are running. Why don’t I need ESTIMATE for that? Is this a different version problem? I’m on the online SAS version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;Why is LSMEANS running only numerical data?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Changing from log to logit changed some errors into warnings but I need to run some other checks before I commit to it (and it might mean I need to update some other models, which I’d prefer to avoid). Either way, &lt;EM&gt;I need to make sure SAS is weighting number and string variables equally in the model&lt;/EM&gt; or find a way to use exclusively one or the other.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879737#M43525</guid>
      <dc:creator>akimme</dc:creator>
      <dc:date>2023-06-08T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD - parameter invalid or at a limit of its range</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879754#M43531</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/396363"&gt;@akimme&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is NO difference between a class variable (categorical covariate) that is alpha-numerically coded versus one that is numerically coded.&lt;BR /&gt;Only ... the reference category cannot be the same.&lt;/P&gt;
&lt;P&gt;When formatting the design matrix (this is done by the GENMOD procedure), a reference category is determined. You can choose/determine that yourself , but if you don't , the alphabetically last (or alphabetically first) level is chosen. This can of course differ (between alpha-numerically coded versus numerically coded).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Use the&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;PARAM=keyword&lt;/LI&gt;
&lt;LI&gt;REF=’level’ &lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;options for the CLASS variables&lt;BR /&gt;to be sure you are comparing what can be compared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/STAT User's Guide&lt;BR /&gt;The GENMOD Procedure&lt;BR /&gt;CLASS Statement&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_genmod_syntax05.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_genmod_syntax05.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Jun 2023 13:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-parameter-invalid-or-at-a-limit-of-its-range/m-p/879754#M43531</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-06-08T13:15:00Z</dc:date>
    </item>
  </channel>
</rss>

