<?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 estimate statement help in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/estimate-statement-help/m-p/583370#M28611</link>
    <description>&lt;P&gt;Say a is 4 age groups and b is gender;&lt;/P&gt;&lt;P&gt;I want to compare age group 1 with age group 4 for the same gender.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the estimate statements below will get me the means for two groups, but I have no idea how to write the statement that compares the two. Help would be appreciated.&amp;nbsp; Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc glm or genmod or whateverl&lt;/P&gt;&lt;P&gt;class a b c;&lt;/P&gt;&lt;P&gt;model y= a b c;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;estimate 'age group 1 female' int 1 a 1 0 0 0 b 0 1;&lt;/P&gt;&lt;P&gt;estimate 'age group 2 female' int 1 a 0 0 0 1 b 0 1;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 02:10:57 GMT</pubDate>
    <dc:creator>ARC2</dc:creator>
    <dc:date>2019-08-23T02:10:57Z</dc:date>
    <item>
      <title>estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimate-statement-help/m-p/583370#M28611</link>
      <description>&lt;P&gt;Say a is 4 age groups and b is gender;&lt;/P&gt;&lt;P&gt;I want to compare age group 1 with age group 4 for the same gender.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the estimate statements below will get me the means for two groups, but I have no idea how to write the statement that compares the two. Help would be appreciated.&amp;nbsp; Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc glm or genmod or whateverl&lt;/P&gt;&lt;P&gt;class a b c;&lt;/P&gt;&lt;P&gt;model y= a b c;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;estimate 'age group 1 female' int 1 a 1 0 0 0 b 0 1;&lt;/P&gt;&lt;P&gt;estimate 'age group 2 female' int 1 a 0 0 0 1 b 0 1;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 02:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimate-statement-help/m-p/583370#M28611</guid>
      <dc:creator>ARC2</dc:creator>
      <dc:date>2019-08-23T02:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: estimate statement help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimate-statement-help/m-p/583445#M28614</link>
      <description>&lt;P&gt;Since there is no interaction between age and gender, the difference between age groups will be the same for either gender.&amp;nbsp; Your ESTIMATE or CONTRAST would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;estimate 'age difference' age 1 0 0 -1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get this by differencing the coefficients for the 2nd ESTIMATE statement from your first.&amp;nbsp; The coefficients on the intercept and on GENDER cancel out, leaving you with the coefficients above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 12:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimate-statement-help/m-p/583445#M28614</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2019-08-23T12:21:54Z</dc:date>
    </item>
  </channel>
</rss>

