<?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: Categorical variable not being read into output in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943426#M42388</link>
    <description>&lt;P&gt;That is because the data you imported in is NOT right.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726016212836.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100206i140F597561EBF234/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726016212836.png" alt="Ksharp_0-1726016212836.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change your data step code to import it correctly .&lt;/P&gt;
&lt;PRE&gt;data rice_yield;
    input Soil $ Cultivar :$32. Yield;
    datalines;
...............&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1726016340486.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100207iAB672A6076D31131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1726016340486.png" alt="Ksharp_1-1726016340486.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 00:59:21 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-09-11T00:59:21Z</dc:date>
    <item>
      <title>Categorical variable not being read into output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943413#M42385</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The Cultivar variable is not recognized as categorical for the ANOVA. Any suggestions/recommendations on correcting this issue and anything else you might notice? Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data rice_yield;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input Soil $ Cultivar $ Yield;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;datalines;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_I Cultivar_1 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_I Cultivar_2 73&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_I Cultivar_3 89&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_I Cultivar_4 37&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_I Cultivar_5 120&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_II Cultivar_1 105&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_II Cultivar_2 59&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_II Cultivar_3 91&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_II Cultivar_4 41&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_II Cultivar_5 115&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_III Cultivar_1 93&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_III Cultivar_2 65&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_III Cultivar_3 79&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_III Cultivar_4 43&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Soil_III Cultivar_5 105&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Perform two-way ANOVA with interaction */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc anova data=rice_yield;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;class Soil Cultivar;&amp;nbsp; /* Declare categorical variables */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;model Yield = Soil|Cultivar;&amp;nbsp; /* Include interaction term */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;means Soil Cultivar / tukey;&amp;nbsp; /* Post-hoc comparisons */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-09-10 at 5.35.36 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100199i1CD509022094F7DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-09-10 at 5.35.36 PM.png" alt="Screenshot 2024-09-10 at 5.35.36 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-09-10 at 5.35.22 PM.png" style="width: 448px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100200i311B0DA346016F37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-09-10 at 5.35.22 PM.png" alt="Screenshot 2024-09-10 at 5.35.22 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 22:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943413#M42385</guid>
      <dc:creator>jake_t1876</dc:creator>
      <dc:date>2024-09-10T22:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical variable not being read into output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943426#M42388</link>
      <description>&lt;P&gt;That is because the data you imported in is NOT right.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726016212836.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100206i140F597561EBF234/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726016212836.png" alt="Ksharp_0-1726016212836.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change your data step code to import it correctly .&lt;/P&gt;
&lt;PRE&gt;data rice_yield;
    input Soil $ Cultivar :$32. Yield;
    datalines;
...............&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1726016340486.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100207iAB672A6076D31131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1726016340486.png" alt="Ksharp_1-1726016340486.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 00:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943426#M42388</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-11T00:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical variable not being read into output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943427#M42389</link>
      <description>&lt;P&gt;How does the ":$32" change the inputs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 01:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943427#M42389</guid>
      <dc:creator>jake_t1876</dc:creator>
      <dc:date>2024-09-11T01:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical variable not being read into output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943428#M42390</link>
      <description>?? It is LIST INPUT method, with it you could get variable "Cultivar" has more length 32,not 8 by default, to include "_2" "_3".&lt;BR /&gt;You can see the change:&lt;BR /&gt;Cultivar -&amp;gt; Cultivar_1&lt;BR /&gt;Cultivar -&amp;gt; Cultivar_2</description>
      <pubDate>Wed, 11 Sep 2024 01:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943428#M42390</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-11T01:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical variable not being read into output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943430#M42391</link>
      <description>&lt;P&gt;Thanks you so much for the explanation!!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 01:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Categorical-variable-not-being-read-into-output/m-p/943430#M42391</guid>
      <dc:creator>jake_t1876</dc:creator>
      <dc:date>2024-09-11T01:34:39Z</dc:date>
    </item>
  </channel>
</rss>

