<?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: Display the numbers of each modality in a modeling procedure. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Display-the-numbers-of-each-modality-in-a-modeling-procedure/m-p/810302#M33836</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found the solution, I just need to add "Simple" option in proc logistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gick&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 05:43:57 GMT</pubDate>
    <dc:creator>Gick</dc:creator>
    <dc:date>2022-04-28T05:43:57Z</dc:date>
    <item>
      <title>Display the numbers of each modality in a modeling procedure.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Display-the-numbers-of-each-modality-in-a-modeling-procedure/m-p/803557#M33337</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to bring out the numbers of each modality in a modeling procedure.&lt;BR /&gt;For example with proc logisctic. What is the option that allows to have the numbers of each modality.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help,&lt;/P&gt;
&lt;P&gt;Gick&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 13:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Display-the-numbers-of-each-modality-in-a-modeling-procedure/m-p/803557#M33337</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-03-23T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display the numbers of each modality in a modeling procedure.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Display-the-numbers-of-each-modality-in-a-modeling-procedure/m-p/803637#M33349</link>
      <description>&lt;P&gt;It is not clear if you already know the two modes or if you want to find them. Regardless, I think your question is asking whether you can create two indicator variables and use them as part of the model. The following program uses PROC FREQ to discover that the variable C has the modes C=3 and C=6. I then use a DATA step to create indicator variables for those conditions. Lastly, I use those indicator variables as part of the model in PROC LOGISTIC:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input X C Y;
datalines;
0.90 6 1 
0.90 5 0 
0.95 3 0 
0.90 4 0 
0.80 6 0 
0.10 6 0 
0.30 6 0 
0.85 5 1 
0.60 6 1 
0.10 6 0 
0.65 6 0 
0.35 3 0 
0.70 5 0 
1.00 2 1 
0.30 1 0 
0.10 3 0 
0.65 3 0 
0.05 3 1 
0.55 4 0 
0.70 3 1 
0.30 3 1 
0.65 6 1 
0.80 3 1 
0.50 3 1 
0.30 6 0 
;

/* find out that C has modes at C=3 and C=6 */
proc freq data=Have;
table C;
run;

data Want;
set Have;
Mode1 = (C=3);    /* a 0/1 indicator variable */
Mode2 = (C=6);
run;

proc logistic data=Want; 
class Mode1 Mode2;
model y(event='1') = x Mode1 Mode2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Mar 2022 19:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Display-the-numbers-of-each-modality-in-a-modeling-procedure/m-p/803637#M33349</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-23T19:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Display the numbers of each modality in a modeling procedure.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Display-the-numbers-of-each-modality-in-a-modeling-procedure/m-p/810302#M33836</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found the solution, I just need to add "Simple" option in proc logistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gick&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 05:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Display-the-numbers-of-each-modality-in-a-modeling-procedure/m-p/810302#M33836</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-04-28T05:43:57Z</dc:date>
    </item>
  </channel>
</rss>

