<?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: Can you get get the ANOVA p-value using PROC MEANS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800003#M314635</link>
    <description>Here's a way to do this all in one step. You will need to read the paper and tutorial and then follow it for your own data.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030&lt;/A&gt;</description>
    <pubDate>Thu, 03 Mar 2022 22:50:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-03-03T22:50:50Z</dc:date>
    <item>
      <title>Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799964#M314606</link>
      <description>&lt;P&gt;I need to get the mean score for an implicit bias test from each group within the demographic categories I am using (i.e Age, Gender, Race) and get the p-value per my committee chair. He is not used to SAS so is unable to assist me, but he advised me to search if I can get a t-test and ANOVA using proc means for categories that have two groups and ones that have more than two groups respectively.&lt;/P&gt;
&lt;P&gt;I found out how to run a paired t test using proc means (please let me know if I did this incorrectly):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Age.PNG" style="width: 472px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69124i2563E5056BFCC6CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Age.PNG" alt="Age.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;proc means data=IAT2018 N MEAN T PRT; &lt;BR /&gt;class birthsex; &lt;BR /&gt;var D_biep_White_Good_all; &lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a possible way to run an ANOVA test using PROC MEANS as well?&amp;nbsp; My committee chair really wants me to do this, but I am at a loss. Also, I am unable to upload the data since it is 1.3 GB so I apologize for any inconvenience. Please let me know if you require further information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799964#M314606</guid>
      <dc:creator>tainaj</dc:creator>
      <dc:date>2022-03-03T21:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799973#M314609</link>
      <description>&lt;P&gt;PROC MEANS cannot run a t-test, what it's doing there is checking if the mean is 0, not testing if they're equivalent between the classes. That's why you have two test statistics (t-value) that differ instead of a single value for the test.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MEANS cannot do the ANOVA/TTEST but PROC ANOVA/TTEST can, is there a reason you can't use them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an older proc anova tutorial but the free SAS Stats course will cover these topics as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.stattutorials.com/SAS/TUTORIAL-PROC-GLM.htm" target="_blank"&gt;https://www.stattutorials.com/SAS/TUTORIAL-PROC-GLM.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400535"&gt;@tainaj&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I need to get the mean score for an implicit bias test from each group within the demographic categories I am using (i.e Age, Gender, Race) and get the p-value per my committee chair. He is not used to SAS so is unable to assist me, but he advised me to search if I can get a t-test and ANOVA using proc means for categories that have two groups and ones that have more than two groups respectively.&lt;/P&gt;
&lt;P&gt;I found out how to run a paired t test using proc means (please let me know if I did this incorrectly):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Age.PNG" style="width: 472px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69124i2563E5056BFCC6CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Age.PNG" alt="Age.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;proc means data=IAT2018 N MEAN T PRT; &lt;BR /&gt;class birthsex; &lt;BR /&gt;var D_biep_White_Good_all; &lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a possible way to run an ANOVA test using PROC MEANS as well?&amp;nbsp; My committee chair really wants me to do this, but I am at a loss. Also, I am unable to upload the data since it is 1.3 GB so I apologize for any inconvenience. Please let me know if you require further information.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799973#M314609</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-03T21:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799975#M314610</link>
      <description>This looks like a decent T-Test tutorial:&lt;BR /&gt;&lt;A href="https://libguides.library.kent.edu/SAS/IndependentTTest" target="_blank"&gt;https://libguides.library.kent.edu/SAS/IndependentTTest&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://libguides.library.kent.edu/SAS/PairedSamplestTest" target="_blank"&gt;https://libguides.library.kent.edu/SAS/PairedSamplestTest&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Anova tutorial:&lt;BR /&gt;&lt;A href="https://www.stat.purdue.edu/~tqin/system101/method/method_one_way_ANOVA_sas.htm" target="_blank"&gt;https://www.stat.purdue.edu/~tqin/system101/method/method_one_way_ANOVA_sas.htm&lt;/A&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799975#M314610</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-03T21:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799981#M314614</link>
      <description>&lt;P&gt;This is what I wanted to run initially, but my committee chair stated that I need to run a test between each group in each category. For example, get the p-value for the mean IAT score and the different age groups (16-19, 20-29, 30-39, 40-49, 50-64, and 65+). For context, I used proc means in order to get the mean IAT scores in the table below; the data does IAT score does not show up as mean values of course. Unfortunately, he is asking me to do this but is unable to show me any sort of example of how to achieve what he is asking for since he uses a different software.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-03-03 at 16.41.40.png" style="width: 440px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69127iA32676D7CD1AE8F8/image-dimensions/440x468?v=v2" width="440" height="468" role="button" title="Screen Shot 2022-03-03 at 16.41.40.png" alt="Screen Shot 2022-03-03 at 16.41.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799981#M314614</guid>
      <dc:creator>tainaj</dc:creator>
      <dc:date>2022-03-03T21:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799982#M314615</link>
      <description>Since you are saying this is impossible, do you think simply running PROC ANOVA  and PROC TTEST would provide the result as you stated? Also, please let me know if you require information or more details on what my committee chair is asking me to do!</description>
      <pubDate>Thu, 03 Mar 2022 21:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799982#M314615</guid>
      <dc:creator>tainaj</dc:creator>
      <dc:date>2022-03-03T21:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799989#M314622</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;For example, get the p-value for the mean IAT score&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P-values don't exist as an independent entity. P-values only exist for testing a specific hypothesis, which you haven't been clear about. What hypothesis do you want p-values for? Please be specific.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Agreeing with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; , PROC GLM or PROC TTEST or similar is the way to go here. PROC MEANS is a waste of time, as explained above that PROC MEANS only tests the hypothesis that the mean is equal to zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, the table you present does not do any hypothesis testing, and so is relatively meaningless in the context of your question.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 22:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799989#M314622</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-03T22:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799998#M314630</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400535"&gt;@tainaj&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Since you are saying this is impossible, do you think simply running PROC ANOVA and PROC TTEST would provide the result as you stated? Also, please let me know if you require information or more details on what my committee chair is asking me to do!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is impossible to do with PROC MEANS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, running ANOVA/TTEST will provide the results you want. Did you read through the tutorials I linked to?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 22:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/799998#M314630</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-03T22:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800000#M314632</link>
      <description>FYI - this is a very common analysis, called Table1 which is included in most journal publications especially medical journals. If you're going into this field it's worth understanding this process.</description>
      <pubDate>Thu, 03 Mar 2022 22:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800000#M314632</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-03T22:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800002#M314634</link>
      <description>Thank you for your response. I did not provide the table as a means of showing a hypothesis test; I provided it to give a little more context if possible about what my committee chair wanted me to do using proc means, which frankly I was confused by so it's reassuring to see that it didn't much sense to you as well.&lt;BR /&gt;&lt;BR /&gt;An example of what I actually want to test for is to see if there is a difference in mean IAT score between each race. The null hypothesis: there is no difference in mean IAT score between each race. Alternative hypothesis: at least one of the races has a different mean IAT score. I would like to do this for each demographic category (Gender, race, education level, political affiliation, occupation). Please let me know if I need to add further information or need to clarify something? Also, please let me know if there is anything wrong with what I am trying to test.</description>
      <pubDate>Thu, 03 Mar 2022 22:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800002#M314634</guid>
      <dc:creator>tainaj</dc:creator>
      <dc:date>2022-03-03T22:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800003#M314635</link>
      <description>Here's a way to do this all in one step. You will need to read the paper and tutorial and then follow it for your own data.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030&lt;/A&gt;</description>
      <pubDate>Thu, 03 Mar 2022 22:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800003#M314635</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-03-03T22:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800006#M314638</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400535"&gt;@tainaj&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;An example of what I actually want to test for is to see if there is a difference in mean IAT score between each race. The null hypothesis: there is no difference in mean IAT score between each race. Alternative hypothesis: at least one of the races has a different mean IAT score. I would like to do this for each demographic category (Gender, race, education level, political affiliation, occupation). Please let me know if I need to add further information or need to clarify something? Also, please let me know if there is anything wrong with what I am trying to test.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This can be done in PROC ANOVA or PROC GLM. Example: &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/statug/statug_anova_gettingstarted01.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmmvacdc/9.4/statug/statug_anova_gettingstarted01.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800006#M314638</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-03T23:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can you get get the ANOVA p-value using PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800008#M314639</link>
      <description>Thank you for providing this! I have never used macros before as I have never earned this, but I tried following the detailed instructions and using google for a couple things. Where in my sas code should I place it? I received this error below. Also, I am unsure if you could help me with this, but I saw in my google search that some people use an .xlsx file for outdoc so I created a file and included the filepath and name in the outdoc statement. I am unsure if this was the right thing to do.&lt;BR /&gt;328  %tablen(data=IAT2018, by=D_biep_White_Good_all,&lt;BR /&gt;     -&lt;BR /&gt;     180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;329       var=Age raceomb_002 birthSex edu politicalid_7 occupation_selfdetail_001,&lt;BR /&gt;330       type=1 2, pvals=5,&lt;BR /&gt;331  contdisplay=m sd, outdoc=\Users\tjoseph6\Documents\IAT2018.xlsx);&lt;BR /&gt;332  run;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-get-get-the-ANOVA-p-value-using-PROC-MEANS/m-p/800008#M314639</guid>
      <dc:creator>tainaj</dc:creator>
      <dc:date>2022-03-03T23:22:10Z</dc:date>
    </item>
  </channel>
</rss>

