<?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: the analytic requires a categorical response variable with at least two levels in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/the-analytic-requires-a-categorical-response-variable-with-at/m-p/925339#M2343</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/411017"&gt;@znhnm&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If one of the independent variables has a missing value, SAS excludes that observation from the analysis by default. So, different combinations of independent variables lead to different sets of observations used in the analysis (i.e., those observations where &lt;EM&gt;all&lt;/EM&gt;&amp;nbsp;independent variables &lt;EM&gt;and&lt;/EM&gt; the response variable are non-missing). In "extreme" cases, typically involving one or more variables with &lt;EM&gt;many&lt;/EM&gt; missing values, the resulting analysis set is reduced to a point where the response variable is constant rather than having "&lt;SPAN&gt;at least two levels," as the error message says.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To avoid this error, do not include (too many) independent variables with many missing values. In some cases of &lt;EM&gt;categorical&lt;/EM&gt; independent variables a missing value might be a valid level. In the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_logistic_syntax05.htm" target="_blank" rel="noopener"&gt;CLASS statement&lt;/A&gt; of PROC LOGISTIC there is the MISSING option to prevent the exclusion of such observations. I assume that SAS VA offers a similar option for this case.&amp;nbsp;If some or all missing values of an important independent variable could be &lt;EM&gt;imputed&lt;/EM&gt; in a preliminary step, this would help as well. &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 09:18:14 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2024-04-23T09:18:14Z</dc:date>
    <item>
      <title>the analytic requires a categorical response variable with at least two levels</title>
      <link>https://communities.sas.com/t5/SAS-Viya/the-analytic-requires-a-categorical-response-variable-with-at/m-p/925336#M2342</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am creating a Logistic Regression Model in VA; I have results when I select certain set of independent variabes but using the same response variable, when I change the independent variables I have an error saying: "the analytic requires a categorical response variable with at least two levels". The response variable I selected is a binary variable with 2 categories and again the exact same response variable works on another logistic regression with different set of independet variables. What would be the reason for this error and how could I solve this? Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 08:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/the-analytic-requires-a-categorical-response-variable-with-at/m-p/925336#M2342</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2024-04-23T08:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: the analytic requires a categorical response variable with at least two levels</title>
      <link>https://communities.sas.com/t5/SAS-Viya/the-analytic-requires-a-categorical-response-variable-with-at/m-p/925339#M2343</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/411017"&gt;@znhnm&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If one of the independent variables has a missing value, SAS excludes that observation from the analysis by default. So, different combinations of independent variables lead to different sets of observations used in the analysis (i.e., those observations where &lt;EM&gt;all&lt;/EM&gt;&amp;nbsp;independent variables &lt;EM&gt;and&lt;/EM&gt; the response variable are non-missing). In "extreme" cases, typically involving one or more variables with &lt;EM&gt;many&lt;/EM&gt; missing values, the resulting analysis set is reduced to a point where the response variable is constant rather than having "&lt;SPAN&gt;at least two levels," as the error message says.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To avoid this error, do not include (too many) independent variables with many missing values. In some cases of &lt;EM&gt;categorical&lt;/EM&gt; independent variables a missing value might be a valid level. In the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_logistic_syntax05.htm" target="_blank" rel="noopener"&gt;CLASS statement&lt;/A&gt; of PROC LOGISTIC there is the MISSING option to prevent the exclusion of such observations. I assume that SAS VA offers a similar option for this case.&amp;nbsp;If some or all missing values of an important independent variable could be &lt;EM&gt;imputed&lt;/EM&gt; in a preliminary step, this would help as well. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 09:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/the-analytic-requires-a-categorical-response-variable-with-at/m-p/925339#M2343</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-04-23T09:18:14Z</dc:date>
    </item>
  </channel>
</rss>

