<?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 Calculate wage gap in one step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525703#M143067</link>
    <description>&lt;P&gt;Right now I'm doing a (weighted) proc means by sex then doing a data step to subract women's avg from men's. There's also a few redundant steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to try and do it in 1 step using maybe proc tabulate? Not sure if you have any advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 13:17:40 GMT</pubDate>
    <dc:creator>fieldsa83</dc:creator>
    <dc:date>2019-01-09T13:17:40Z</dc:date>
    <item>
      <title>Calculate wage gap in one step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525703#M143067</link>
      <description>&lt;P&gt;Right now I'm doing a (weighted) proc means by sex then doing a data step to subract women's avg from men's. There's also a few redundant steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to try and do it in 1 step using maybe proc tabulate? Not sure if you have any advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525703#M143067</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2019-01-09T13:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate wage gap in one step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525704#M143068</link>
      <description>&lt;P&gt;It would be hard to actually provide a solution in one step unless you show us (a portion of) your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as far as advice goes, doing it in one step sometimes is harder than doing it in several steps. Again, we can't advise this without seeing your data, and without seeing your existing code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, I ask ... why does it need to be done in one step? There are other possible more meaningful goals: efficiency of execution, readability of code. To be honest, I think doing it in one step is a false goal most of the time; it shows you are a&amp;nbsp;wizard at coding, but that's rarely a goal in most business situations.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525704#M143068</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-09T13:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate wage gap in one step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525706#M143069</link>
      <description>&lt;P&gt;Also, PROC TTEST provides weighted means by group, and also computes the difference between the two groups without a need for additional programming. This may not be particularly efficient, as TTEST will also compute a lot of other things you don't want, but it still spends the time to do the calculations.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525706#M143069</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-09T13:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate wage gap in one step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525746#M143072</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98628"&gt;@fieldsa83&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Right now I'm doing a (weighted) proc means by sex then doing a data step to subract women's avg from men's. There's also a few redundant steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to try and do it in 1 step using maybe proc tabulate? Not sure if you have any advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc tabulate will not do calculations involving resulting statistics as you would need for this.&lt;/P&gt;
&lt;P&gt;Proc Report might depending on your actual data. However if you start getting into moderately complex comparisons such as by sex, age and some geographical area the approach in Proc Report could become quite complex and fragile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are "redundant steps" in your process?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could see a proc means, proc transpose, data step and proc print or perhaps proc tabulate or report to display results as typical for this type of report.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 15:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-wage-gap-in-one-step/m-p/525746#M143072</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-09T15:54:51Z</dc:date>
    </item>
  </channel>
</rss>

