<?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: Output dataset for multiple chi squared test for association in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243484#M45273</link>
    <description>&lt;P&gt;You are welcome. Please mark answer as accepted solution.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2016 15:35:46 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-01-14T15:35:46Z</dc:date>
    <item>
      <title>Output dataset for multiple chi squared test for association</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243302#M45230</link>
      <description>Hi everybody,&lt;BR /&gt;I have a data set containing 35 categorical variable that I want to test with other 33 dichotomous variables using chi squred test. If I run&lt;BR /&gt;Proc freq data=mydata;&lt;BR /&gt;Table = c_: * d_: / chisq;&lt;BR /&gt;Run;&lt;BR /&gt;It works but i was struggling how to create a simple output data set with just three information: the two variables used in every test and the pchi.&lt;BR /&gt;&lt;BR /&gt;Thanks everybody in advance</description>
      <pubDate>Wed, 13 Jan 2016 19:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243302#M45230</guid>
      <dc:creator>Luigim</dc:creator>
      <dc:date>2016-01-13T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Output dataset for multiple chi squared test for association</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243395#M45259</link>
      <description>&lt;P&gt;Use &lt;STRONG&gt;ODS OUTPUT&lt;/STRONG&gt; to get the table :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing select none;
proc freq data=sashelp.heart;
table (status sex) * (chol_status bp_status weight_status) / chisq;
ods output ChiSq=outChiSq;
run;
ods listing;

proc sql;
create table myChiSq as
select 
    scan(Table,2) as v1 length=32, 
    scan(Table,3) as v2 length=32, 
    df, 
    value, 
    prob
from outChiSq
where statistic="Chi-Square"
order by v1, v2;
select * from myChiSq;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note : You need parentheses around the variable lists in the &lt;STRONG&gt;TABLES&lt;/STRONG&gt; statement.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 03:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243395#M45259</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-14T03:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Output dataset for multiple chi squared test for association</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243452#M45265</link>
      <description>&lt;P&gt;This is great! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 11:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243452#M45265</guid>
      <dc:creator>Luigim</dc:creator>
      <dc:date>2016-01-14T11:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Output dataset for multiple chi squared test for association</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243484#M45273</link>
      <description>&lt;P&gt;You are welcome. Please mark answer as accepted solution.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 15:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-dataset-for-multiple-chi-squared-test-for-association/m-p/243484#M45273</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-14T15:35:46Z</dc:date>
    </item>
  </channel>
</rss>

