<?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: What statistical test to use to examine the relationship “Earnings” vs “Gender” in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851730#M336665</link>
    <description>As Paige said , Regression .(if you have big data ,also could try ANOVA)&lt;BR /&gt;And I would recommend to use violin graph .&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/10/30/violin-plots/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/10/30/violin-plots/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 01 Jan 2023 08:29:34 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-01-01T08:29:34Z</dc:date>
    <item>
      <title>What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851567#M336587</link>
      <description>&lt;P&gt;Newbie at SAS, I did as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=want;&lt;BR /&gt;tables earnings*gender / chisq;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I doubt it's right because I went to google the methods&lt;/P&gt;&lt;P&gt;to analyze its results?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-12-30 095316.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78933i00E35D78091451DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-12-30 095316.png" alt="Screenshot 2022-12-30 095316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 02:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851567#M336587</guid>
      <dc:creator>lolol0101</dc:creator>
      <dc:date>2022-12-30T02:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851581#M336593</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438029"&gt;@lolol0101&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;my advise would be not to start with test but with (graphical) analysis of the data. For example the frequency distribution of earnings, one per gender. Comparing the distributions might give some ideas about a hypothesis that than can be tested.&lt;/P&gt;
&lt;P&gt;So, do you want to show us graphs of the&amp;nbsp;frequency distributions?&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 08:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851581#M336593</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-12-30T08:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851599#M336605</link>
      <description>TTest&lt;BR /&gt;PROC TTEST&lt;BR /&gt; or &lt;BR /&gt;Wilcoxon test (nonparameter version of TTest ) &lt;BR /&gt;PROC NPAR1WAY  .... wilcoxon ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; to get more statistical method.</description>
      <pubDate>Fri, 30 Dec 2022 10:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851599#M336605</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-30T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851606#M336610</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438029"&gt;@lolol0101&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Newbie at SAS, I did as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=want;&lt;BR /&gt;tables earnings*gender / chisq;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I doubt it's right because I went to google the methods&lt;/P&gt;
&lt;P&gt;to analyze its results?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would say use the Kruskal-Wallis test in PROC NPAR1WAY, which uses the Wilcoxon scores. &lt;A href="https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_npar1way_gettingstarted.htm" target="_self"&gt;Example&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the non-parametric equivalent of a one-way ANOVA. A chi-squared test is not really appropriate for the (almost) continuous variable earnings.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 11:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851606#M336610</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-30T11:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851679#M336642</link>
      <description>The gender has 3 levels so I would get the error "class variable has more than two levels"&lt;BR /&gt;&lt;BR /&gt;is T-Test still appropriate to use?</description>
      <pubDate>Sat, 31 Dec 2022 08:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851679#M336642</guid>
      <dc:creator>lolol0101</dc:creator>
      <dc:date>2022-12-31T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851680#M336643</link>
      <description>&lt;P&gt;Then try ANOVA .&lt;BR /&gt;&lt;BR /&gt;proc glm data=have;&lt;BR /&gt;class gender;&lt;BR /&gt;model salary=gender /solution;&lt;/P&gt;
&lt;P&gt;lsmean gender/diff pdiff adjust=dutt;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;The better way is non-parameter version of ANOVA as Paige said.&lt;BR /&gt;or you could try GAMMA distribution since your salary is all positive.&lt;BR /&gt;proc genmod data=have;&lt;BR /&gt;class gender;&lt;BR /&gt;model salary=gender/dist=gamma;&lt;BR /&gt;lsmean gender/diff pdiff adjust=dutt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 08:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851680#M336643</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-31T08:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851690#M336647</link>
      <description>&lt;P&gt;Thank you! last question, what if it's "salary" vs. "age"? (both are numeric)&lt;/P&gt;&lt;P&gt;How does one examine this?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 11:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851690#M336647</guid>
      <dc:creator>lolol0101</dc:creator>
      <dc:date>2022-12-31T11:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851692#M336649</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438029"&gt;@lolol0101&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you! last question, what if it's "salary" vs. "age"? (both are numeric)&lt;/P&gt;
&lt;P&gt;How does one examine this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;OL&gt;
&lt;LI&gt;Scatterplot&lt;/LI&gt;
&lt;LI&gt;Regression&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 11:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851692#M336649</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-31T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: What statistical test to use to examine the relationship “Earnings” vs “Gender”</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851730#M336665</link>
      <description>As Paige said , Regression .(if you have big data ,also could try ANOVA)&lt;BR /&gt;And I would recommend to use violin graph .&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/10/30/violin-plots/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/10/30/violin-plots/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Jan 2023 08:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-statistical-test-to-use-to-examine-the-relationship/m-p/851730#M336665</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-01T08:29:34Z</dc:date>
    </item>
  </channel>
</rss>

