<?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: how to use only one level in chi square?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/465048#M118595</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=_____;
TITLE3 'Chi-Square Test';
TABLES group*gender/CHISQ relrisk riskdiff;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 25 May 2018 13:17:27 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-05-25T13:17:27Z</dc:date>
    <item>
      <title>how to use only one level in chi square??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/464933#M118559</link>
      <description>&lt;P&gt;Hi i want to compare the proportion of males between two groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first, am I correct in thinking a chi-square is appropriate?&lt;/P&gt;&lt;P&gt;second, how would I compare group by only one level of gender and not by both levels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for any help!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=_____;
TITLE3 'Chi-Square Test';
TABLES group*gender/CHISQ;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 May 2018 02:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/464933#M118559</guid>
      <dc:creator>iressa131</dc:creator>
      <dc:date>2018-05-25T02:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to use only one level in chi square??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/464939#M118560</link>
      <description>&lt;P&gt;A Chi-square test is appropriate if there are enough cases in every table bin. Otherwise, you might consider using an exact Fisher test.&lt;/P&gt;
&lt;P&gt;What is there to compare statistically between males and females in a single group?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Extract a few observations at random  from SASHELP.HEART dataset */
data heart;
call streaminit(78967896);
set sashelp.heart;
if rand("uniform") &amp;lt; 0.05;
run;

/* Compare the live/death status between males and females, 
   using two tests */
proc freq data=heart;
tables sex*status;
exact Fisher chisq / mc;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 May 2018 04:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/464939#M118560</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-05-25T04:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to use only one level in chi square??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/465048#M118595</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=_____;
TITLE3 'Chi-Square Test';
TABLES group*gender/CHISQ relrisk riskdiff;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 May 2018 13:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/465048#M118595</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-05-25T13:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to use only one level in chi square??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/465133#M118614</link>
      <description>&lt;PRE&gt;PROC FREQ DATA=_____;
TITLE3 'Chi-Square Test males';
where gender='Male';
TABLES group/CHISQ;
RUN; &lt;/PRE&gt;
&lt;P&gt;could be one way. Of course without data I do not know your exact values of gender...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 16:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-only-one-level-in-chi-square/m-p/465133#M118614</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-25T16:05:22Z</dc:date>
    </item>
  </channel>
</rss>

