<?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: Forward Selection Process with Multinominal Response Variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951554#M83775</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436751"&gt;@chester2018&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone! Hope my title makes sense! I'm trying to build a code using forward selection process that has a multinomial response variable! I tried using&amp;nbsp;proc glmselect and&amp;nbsp;proc hpgenselect, but I get error messages since my response variable isn't numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to determine how likely people are going to visit a hospital based on variables such as education, work, income, etc. The visit hospital variable has 5 categories (none, most likely none, neutral, most likely yes, yes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpgenselect data=factorshospital;
	class education_cat(ref="0");
   model visits_cat = education_cat;
   selection method=forward;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Whenever you get an error, show us the log for this PROC. We need to see the log from the PROC HPGENSELECT statement down to the last NOTE after the PROC ends, every single line in the log in this range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why would you want to do a forward selection with only one X variable?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 19:44:46 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-11-21T19:44:46Z</dc:date>
    <item>
      <title>Forward Selection Process with Multinominal Response Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951539#M83774</link>
      <description>&lt;P&gt;Hi everyone! Hope my title makes sense! I'm trying to build a code using forward selection process that has a multinomial response variable! I tried using&amp;nbsp;proc glmselect and&amp;nbsp;proc hpgenselect, but I get error messages since my response variable isn't numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to determine how likely people are going to visit a hospital based on variables such as education, work, income, etc. The visit hospital variable has 5 categories (none, most likely none, neutral, most likely yes, yes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it's even possible at all! And what other method I should use! Thanks!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpgenselect data=factorshospital;
	class education_cat(ref="0") &lt;SPAN&gt;work_cat(ref="0")&lt;/SPAN&gt;;
   model visits_cat = education_cat &lt;SPAN&gt;work_cat&lt;/SPAN&gt;;
   selection method=forward;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the log of the error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         proc glmselect data=factorshospital;
 70         class education_cat(ref="0") work_cat(ref="0");
 71            model visits_cat = education_cat work_cat
 ERROR: Variable visits_cat in list does not match type prescribed for this list.
 72             / selection=forward;
 73         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE GLMSELECT used (Total process time):&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Nov 2024 21:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951539#M83774</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2024-11-21T21:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Selection Process with Multinominal Response Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951554#M83775</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436751"&gt;@chester2018&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone! Hope my title makes sense! I'm trying to build a code using forward selection process that has a multinomial response variable! I tried using&amp;nbsp;proc glmselect and&amp;nbsp;proc hpgenselect, but I get error messages since my response variable isn't numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to determine how likely people are going to visit a hospital based on variables such as education, work, income, etc. The visit hospital variable has 5 categories (none, most likely none, neutral, most likely yes, yes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpgenselect data=factorshospital;
	class education_cat(ref="0");
   model visits_cat = education_cat;
   selection method=forward;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Whenever you get an error, show us the log for this PROC. We need to see the log from the PROC HPGENSELECT statement down to the last NOTE after the PROC ends, every single line in the log in this range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why would you want to do a forward selection with only one X variable?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 19:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951554#M83775</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-11-21T19:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Selection Process with Multinominal Response Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951560#M83776</link>
      <description>&lt;P&gt;I plan to do the forward selection method with the additional variables, like work, income, etc. I made the edits in my post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error message "&lt;SPAN&gt;ERROR: Variable visits_cat in list does not match type prescribed for this list"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 21:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951560#M83776</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2024-11-21T21:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Selection Process with Multinominal Response Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951577#M83777</link>
      <description>&lt;P&gt;Since your Y variable is ordinal not nominal , I think you should recode it by 1,2,3 and specify the right distribution and link function .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
 set sashelp.heart;
 if bp_status='High' then y=1;
  else if bp_status='Normal' then y=2;
   else if bp_status='Optimal' then y=3;
run;

proc hpgenselect data=have;
	class sex Smoking_Status;
   model y = sex Smoking_Status weight height ageatstart/dist= MULTINOMIAL link=cll;
   selection method=forward;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1732239833836.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102444i78B05D68105CC9E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1732239833836.png" alt="Ksharp_0-1732239833836.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 01:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951577#M83777</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-22T01:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Selection Process with Multinominal Response Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951625#M83778</link>
      <description>&lt;P&gt;Thank you so much! This makes sense!!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 15:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Forward-Selection-Process-with-Multinominal-Response-Variable/m-p/951625#M83778</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2024-11-22T15:00:59Z</dc:date>
    </item>
  </channel>
</rss>

