<?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 in a proc freq in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514366#M26255</link>
    <description>&lt;P&gt;I think 'survival analysis' is not my solution, because I am trying to get likelihood of churn (not years until churn) based on input vars, I am considering to use logistic regression or decision trees..., then for me is very importante dependencies and the results of chi-square test&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2018 08:09:18 GMT</pubDate>
    <dc:creator>juanvg1972</dc:creator>
    <dc:date>2018-11-19T08:09:18Z</dc:date>
    <item>
      <title>Chi-square test in a proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514217#M26252</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using 'proc tabulate' procedure to know whether are dependencies between two vars in a SAS dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;This is my proc:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA = tabsas.customer_churn_telco4;
&amp;nbsp;
TABLES rango_tenure * Churn /CHISQ;
&amp;nbsp;
RUN;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I attached the output of the freq. If I take a look to the output I see dependecies between 'churn' and 'rango_tenure' vars.&lt;/DIV&gt;
&lt;DIV&gt;The distribution of 'churn' var change between groups of 'rango_tenure' values.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I see that p-value is under 0.05 then&amp;nbsp;I can say that there is a dependency, is that true??&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The value of chi-square test is high, Can I say that the bigger the value the stronger the dependency?, is that true??&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If I use more vars in proc tabulate checking the dependecies with 'churn', I can see that the bigger value in chi-square test gives the most important var (the stronger dependency)?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;Thanks in advance&lt;/DIV&gt;</description>
      <pubDate>Sun, 18 Nov 2018 19:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514217#M26252</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2018-11-18T19:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test in a proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514273#M26253</link>
      <description>Churn is usually measured with a survival type analysis but it's possible you have restrictions that make this impossible.  In that case, I think it would still be a more appropriate test to use the Cochran-Armitage test, which looks for a trend. A Chi Square just tells you that the data is different at some levels, not that there's necessarily any trend. &lt;BR /&gt;&lt;BR /&gt;There's an example in the documentation that is similar to this. &lt;BR /&gt;&lt;BR /&gt;However, I will come back to the survival aspect of churn. If you don't have event data for a portion of your population it makes sense to use survival type analysis especially if they can leave at some point later on, and basically just have not yet.</description>
      <pubDate>Sun, 18 Nov 2018 19:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514273#M26253</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-18T19:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test in a proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514298#M26254</link>
      <description>&lt;P&gt;Thanks Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will consider survival analysis in the future, but know I am interested in understandinf chi-square test in proc tabulate&lt;/P&gt;
&lt;P&gt;Can you help me with my questions about chi-square results??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2018 21:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514298#M26254</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2018-11-18T21:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test in a proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514366#M26255</link>
      <description>&lt;P&gt;I think 'survival analysis' is not my solution, because I am trying to get likelihood of churn (not years until churn) based on input vars, I am considering to use logistic regression or decision trees..., then for me is very importante dependencies and the results of chi-square test&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 08:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514366#M26255</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2018-11-19T08:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-square test in a proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514473#M26266</link>
      <description>&lt;A href="https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Toronto-Data-Mining-Forum/Chen-SurvivalModel-March2012.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Toronto-Data-Mining-Forum/Chen-SurvivalModel-March2012.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 19 Nov 2018 15:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-square-test-in-a-proc-freq/m-p/514473#M26266</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-19T15:55:10Z</dc:date>
    </item>
  </channel>
</rss>

