<?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: Chi-square test on categorical variable with numbers ? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/571997#M12269</link>
    <description>&lt;P&gt;Can't you simply put the actual number of 2 in place of "LEVEL2" for example, and then analyze it with the numbers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not what you want, then you need to explain more what the answer is that you are looking for.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 11:59:40 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-07-09T11:59:40Z</dc:date>
    <item>
      <title>Chi-square test on categorical variable with numbers ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/571966#M12254</link>
      <description>&lt;P&gt;Hi Dear All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have the following test data :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input id type $ String $;

datalines;
1 property level1
2 property level2
3 property level3
4 property level1
5 property level2
6 car level3
7 car level1
8 car level4
9 car level3
;
run;

data test2;
input id type $ String $;

datalines;
1 property level3
2 property level3
3 property level5
4 property level5
5 property level1
6 car level1
7 car level6
8 car level8
9 car level8
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;How to perform the chi-square test on &lt;STRONG&gt;test&lt;/STRONG&gt; and &lt;STRONG&gt;test2&lt;/STRONG&gt;&amp;nbsp;by id, considering the 'graduality' of the level, to know if the level increased or decreased? and based on the type ( property or car) ...? there are maximum level8 ( from level1-level8)&lt;BR /&gt;more precisely :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if the level increased in test2&lt;/LI&gt;&lt;LI&gt;if the level decreased in test2&lt;/LI&gt;&lt;LI&gt;if the level remained the same&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I know the data shown here is not enough, but it's to simplify...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for response.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 07:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/571966#M12254</guid>
      <dc:creator>SIgnificatif</dc:creator>
      <dc:date>2019-07-09T07:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test on categorical variable with numbers ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/571997#M12269</link>
      <description>&lt;P&gt;Can't you simply put the actual number of 2 in place of "LEVEL2" for example, and then analyze it with the numbers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not what you want, then you need to explain more what the answer is that you are looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 11:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/571997#M12269</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-09T11:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test on categorical variable with numbers ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/572021#M12271</link>
      <description>&lt;P&gt;Hi, thank you for the response Dear Paige.&lt;BR /&gt;&lt;BR /&gt;Yes, I can put the number 2,&amp;nbsp;&lt;BR /&gt;do you mean, the idea is creating new vars and comparing them?&lt;BR /&gt;I was thinking to work with the same variables without creating new ones, but if there is no other way...&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 12:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/572021#M12271</guid>
      <dc:creator>SIgnificatif</dc:creator>
      <dc:date>2019-07-09T12:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test on categorical variable with numbers ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/572047#M12274</link>
      <description>&lt;P&gt;Yes I mean a new numeric variable with the level numbers only, and not the letters LEVEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what your objection is to creating a new variable, it seems like a trivially simple thing to do, and it seems to me like that's the only way to get an answer to your question.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Chi-square-test-on-categorical-variable-with-numbers/m-p/572047#M12274</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-09T13:51:44Z</dc:date>
    </item>
  </channel>
</rss>

