<?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: Proc TTEST To find if annualized salary is equal among ethnic groups in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/526979#M73560</link>
    <description>&lt;P&gt;This seems to work perfectly, the only issue I am having is trying to get the actual t-values included in the output. Any help there?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 16:39:43 GMT</pubDate>
    <dc:creator>ggollehon_OD</dc:creator>
    <dc:date>2019-01-14T16:39:43Z</dc:date>
    <item>
      <title>Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/526968#M73558</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out a way to run t-tests on race to determine if there are any pay discrepancies. I have a code that runs now but I built it so i specify which race to compare, and create a data set for each of the possible combinations of races. Is there a more efficient way to accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc ttest data = mydata.client;&lt;BR /&gt;where group_n &amp;gt;=30 and race in ("A", "B");&lt;BR /&gt;class race;&lt;BR /&gt;by location job_group;&lt;BR /&gt;var annl_salary;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am hoping to get is one data set that has each combination of race for each job location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job_group&amp;nbsp; &amp;nbsp; RACE1 RACE2&amp;nbsp; &amp;nbsp;T-stat&amp;nbsp; &amp;nbsp; &amp;nbsp;PVALUE&amp;nbsp; &amp;nbsp; DF&lt;/P&gt;&lt;P&gt;1c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; H&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;1c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;H&lt;/P&gt;&lt;P&gt;1c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 16:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/526968#M73558</guid>
      <dc:creator>ggollehon_OD</dc:creator>
      <dc:date>2019-01-14T16:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/526971#M73559</link>
      <description>&lt;P&gt;This is a job for PROC GLM, which will do t-tests on all possible pairs (and also allows for multiple comparison adjustments so that if you are now comparing 15 different pairs, the p-values are adjusted appropriately, these are called Bonferroni t-tests, provided by the BON option).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=mydata.client(where=(group_n&amp;gt;=30));
    class race;
    model annl_salary=race;
    means race / t bon;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jan 2019 16:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/526971#M73559</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-14T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/526979#M73560</link>
      <description>&lt;P&gt;This seems to work perfectly, the only issue I am having is trying to get the actual t-values included in the output. Any help there?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 16:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/526979#M73560</guid>
      <dc:creator>ggollehon_OD</dc:creator>
      <dc:date>2019-01-14T16:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527001#M73561</link>
      <description>&lt;P&gt;I think this is it (but didn't actually test it to see if it works):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output means=glmmeans;
proc glm ...;
...
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jan 2019 17:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527001#M73561</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-14T17:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527044#M73562</link>
      <description>&lt;P&gt;When I submit the below code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods output means = mydata.glmmeans;&lt;BR /&gt;proc glm data = mydata.christus(where =(group_n&amp;gt;=30));&lt;BR /&gt;class race;&lt;BR /&gt;model annl_salary = race;&lt;BR /&gt;means race / t bon;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the error: "WARNING: Output 'means' was not created. Make sure that the output object name, label, or&lt;BR /&gt;path is spelled correctly. Also, verify that the appropriate procedure options are&lt;BR /&gt;used to produce the requested output object. For example, verify that the NOPRINT"&lt;/P&gt;&lt;P&gt;It seems that any output from proc glm is just the input data set with any additional measures added to the output statement. I apologize for all the questions, i am still fairly new at SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 19:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527044#M73562</guid>
      <dc:creator>ggollehon_OD</dc:creator>
      <dc:date>2019-01-14T19:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527099#M73563</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/255114"&gt;@ggollehon_OD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I submit the below code:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods output means = mydata.glmmeans;&lt;BR /&gt;proc glm data = mydata.christus(where =(group_n&amp;gt;=30));&lt;BR /&gt;class race;&lt;BR /&gt;model annl_salary = race;&lt;BR /&gt;means race / t bon;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the error: "WARNING: Output 'means' was not created. Make sure that the output object name, label, or&lt;BR /&gt;path is spelled correctly. Also, verify that the appropriate procedure options are&lt;BR /&gt;used to produce the requested output object. For example, verify that the NOPRINT"&lt;/P&gt;
&lt;P&gt;It seems that any output from proc glm is just the input data set with any additional measures added to the output statement. I apologize for all the questions, i am still fairly new at SAS.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When discussing errors or warnings it helps to include the entire procedure code and all messages related to that code copied from the log and pasted into a code box opened using the forums {I} to preserve the formatting of any error or warning messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without the log we now ask questions like the following:&lt;/P&gt;
&lt;P&gt;Did the Proc GLM run successfully?&amp;nbsp; If the procedure errored out and did not run then the output would not be created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What ODS destination do you have open? If none of the ods destinations are open the Means table would not be generated and would create this warning.&lt;/P&gt;
&lt;P&gt;Were there any messages involving the MEANS statement? If this statement has an issue then the Means output table would not display and you would get this warning.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 20:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527099#M73563</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-14T20:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527106#M73564</link>
      <description>&lt;P&gt;Here is my output from the log file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"742 ods output ttest = mydata.ttest;&lt;BR /&gt;743&lt;BR /&gt;744 proc glm data = mydata.client (where=(group_n&amp;gt;=30));&lt;BR /&gt;745 class race;&lt;BR /&gt;746 model annl_salary = race/ p ;&lt;BR /&gt;747 means race / t bon ;&lt;BR /&gt;748 run;&lt;/P&gt;&lt;P&gt;WARNING: ODS graphics with more than 5000 points have been suppressed. Use the&lt;BR /&gt;PLOTS(MAXPOINTS= ) option in the PROC GLM statement to change or override the cutoff.&lt;BR /&gt;749 quit;&lt;/P&gt;&lt;P&gt;WARNING: Output 'ttest' was not created. Make sure that the output object name, label, or&lt;BR /&gt;path is spelled correctly. Also, verify that the appropriate procedure options are&lt;BR /&gt;used to produce the requested output object. For example, verify that the NOPRINT&lt;BR /&gt;option is not used."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both the t and bon tables are calculated, so the procedure ran correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 20:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527106#M73564</guid>
      <dc:creator>ggollehon_OD</dc:creator>
      <dc:date>2019-01-14T20:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527108#M73565</link>
      <description>&lt;P&gt;Here is my output from the log file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"742 ods output ttest = mydata.ttest;&lt;BR /&gt;743&lt;BR /&gt;744 proc glm data = mydata.client (where=(group_n&amp;gt;=30));&lt;BR /&gt;745 class race;&lt;BR /&gt;746 model annl_salary = race/ p ;&lt;BR /&gt;747 means race / t bon ;&lt;BR /&gt;748 run;&lt;/P&gt;&lt;P&gt;WARNING: ODS graphics with more than 5000 points have been suppressed. Use the&lt;BR /&gt;PLOTS(MAXPOINTS= ) option in the PROC GLM statement to change or override the cutoff.&lt;BR /&gt;749 quit;&lt;/P&gt;&lt;P&gt;WARNING: Output 'ttest' was not created. Make sure that the output object name, label, or&lt;BR /&gt;path is spelled correctly. Also, verify that the appropriate procedure options are&lt;BR /&gt;used to produce the requested output object. For example, verify that the NOPRINT&lt;BR /&gt;option is not used."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both the t and bon tables are calculated, so the procedure ran correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not quite sure what is meant when you say ODS destination?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 20:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527108#M73565</guid>
      <dc:creator>ggollehon_OD</dc:creator>
      <dc:date>2019-01-14T20:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527109#M73566</link>
      <description>&lt;P&gt;So, it would appear that GLM does not provide the t-values,&amp;nbsp;but it does provide the confidence intervals. So you could compute the t-values from the confidence intervals and related information, using this formula:&amp;nbsp;&lt;A href="https://goo.gl/images/cjz12Q" target="_blank"&gt;https://goo.gl/images/cjz12Q&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output cldiffsinfo=cldiffsinfo cldiffs=cldiffs;
proc glm data = mydata.christus(where =(group_n&amp;gt;=30));
    class race;
    model annl_salary = race;
    means race / t bon;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 20:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527109#M73566</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-14T20:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527112#M73567</link>
      <description>Thanks. the issue still is getting the output saved. the resulting dataset either does not save, or does not have any of the figures from the output.</description>
      <pubDate>Mon, 14 Jan 2019 20:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527112#M73567</guid>
      <dc:creator>ggollehon_OD</dc:creator>
      <dc:date>2019-01-14T20:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527128#M73568</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/255114"&gt;@ggollehon_OD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks. the issue still is getting the output saved. the resulting dataset either does not save, or does not have any of the figures from the output.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Words like "doesn't save" doesn't help us understand what is wrong.&amp;nbsp;Show us the code you are using and show us the SASLOG.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 21:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527128#M73568</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-14T21:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc TTEST To find if annualized salary is equal among ethnic groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527171#M73569</link>
      <description>&lt;P&gt;I see the problem now, it's my mistake &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; means race / t bon cldiff;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jan 2019 22:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-TTEST-To-find-if-annualized-salary-is-equal-among-ethnic/m-p/527171#M73569</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-14T22:59:55Z</dc:date>
    </item>
  </channel>
</rss>

