<?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: GLM vs TTEST [how to improve your question] in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547442#M151706</link>
    <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260928"&gt;@ralphbenno&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&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" style="width: 229px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
    <pubDate>Sat, 30 Mar 2019 21:51:42 GMT</pubDate>
    <dc:creator>Community_Guide</dc:creator>
    <dc:date>2019-03-30T21:51:42Z</dc:date>
    <item>
      <title>GLM vs TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547441#M151705</link>
      <description>&lt;P&gt;I am having a bit trouble of deciding between PROC TTEST and PROC GLM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m testing the rate between 2 variable over a group of years.&lt;/P&gt;&lt;P&gt;Is either one OK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quest 2. now&amp;nbsp; I have 5 group of &amp;nbsp;years. I want to test the rates&amp;nbsp; of the variables for each group of years if some group years I have&amp;nbsp; matching set. How to do the second part.&lt;/P&gt;&lt;P&gt;help?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 20:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547441#M151705</guid>
      <dc:creator>ralphbenno</dc:creator>
      <dc:date>2019-03-30T20:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: GLM vs TTEST [how to improve your question]</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547442#M151706</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260928"&gt;@ralphbenno&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&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" style="width: 229px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
      <pubDate>Sat, 30 Mar 2019 21:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547442#M151706</guid>
      <dc:creator>Community_Guide</dc:creator>
      <dc:date>2019-03-30T21:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: GLM vs TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547452#M151707</link>
      <description>&lt;P&gt;I am testing 750 data points&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the column are in year, age sex&amp;nbsp;&amp;nbsp; the rows are group of year 1900-1910...ect it goes all the way up to 1990-2000&lt;/P&gt;&lt;P&gt;the data is mortality rate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to test the mean between female and male&amp;nbsp; from yer 1900 till 2000&lt;/P&gt;&lt;P&gt;I wanted to know if mortality for female are higher than male,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should I use&amp;nbsp; proc glm or&amp;nbsp; proc ttest. in the example below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data = Project;&lt;BR /&gt;class sex;&lt;BR /&gt;where sex in ("f" "m");&lt;BR /&gt;model rate = sex;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;proc ttest data = Project;&lt;BR /&gt;class sex;&lt;BR /&gt;var rate;&lt;BR /&gt;where sex in ("f" "m");&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then 2nd test&lt;/P&gt;&lt;P&gt;there are 10 years grouping and each years there are 100 mortality rate points. I would like to do a pairing comparison for each 10 years. to determine if there was a significant changes.&lt;/P&gt;&lt;P&gt;I am not sure about the code . it could look like that&lt;/P&gt;&lt;P&gt;I should have 10 groups and tukey test will tell me if there is a significant between years group&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot set it up correctly. I attached my sas code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=project;&lt;BR /&gt;class sex;&lt;BR /&gt;where sex in ("t");&lt;BR /&gt;model rate = year sex / solution;&lt;BR /&gt;means year sex/ tukey;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ok see if you can help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 22:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547452#M151707</guid>
      <dc:creator>ralphbenno</dc:creator>
      <dc:date>2019-03-30T22:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: GLM vs TTEST</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547477#M151721</link>
      <description>&lt;P&gt;Under the right conditions, GLM and TTEST ought to give equivalent answers. GLM will result in a F test, TTEST will result in a t-test, however if the GLM F-test is statistically significant, then the t-test will also be statistically significant, and &lt;EM&gt;vice versa&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;then 2nd test&lt;/P&gt;
&lt;P&gt;there are 10 years grouping and each years there are 100 mortality rate points.&lt;/P&gt;
&lt;P&gt;I would like to do a pairing comparison for each 10 years.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what "pairing comparison" means. Show us with a small data set, and explain what you want to do in more detail.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2019 11:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-vs-TTEST/m-p/547477#M151721</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-31T11:23:21Z</dc:date>
    </item>
  </channel>
</rss>

