<?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: New mean of variable after adjusting for covariate for total population in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799689#M39338</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/27741"&gt;@gcjfernandez&lt;/a&gt;&amp;nbsp;can you provide a link to this text that you are showing?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 20:47:47 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-03-02T20:47:47Z</dc:date>
    <item>
      <title>New mean of variable after adjusting for covariate for total population</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799672#M39335</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I want to get the mean intake of several food groups after adjusting for a continuous covariate, the total energy intake&lt;STRONG&gt; (TEI).&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used &lt;STRONG&gt;proc glm&lt;/STRONG&gt; to obtain the &lt;STRONG&gt;lsmeans&lt;/STRONG&gt; for different sex as in the code below and the output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glm data=test;
      class sex;
      model &amp;amp;foodgroup = sex TEI / solution;
      lsmeans sex / stderr pdiff diff cov out=adjmeans;
   run;
   proc print data=adjmeans;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AgaWS_0-1646249705482.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69086i10A17280E4E7A193/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AgaWS_0-1646249705482.png" alt="AgaWS_0-1646249705482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I want to get the &lt;STRONG&gt;adjusted mean value for the total population&lt;/STRONG&gt; and not for the genders seperatly but I couldn't find the right statement.&lt;/P&gt;&lt;P&gt;I would be grateful for any help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 19:36:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799672#M39335</guid>
      <dc:creator>AgaWS</dc:creator>
      <dc:date>2022-03-02T19:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: New mean of variable after adjusting for covariate for total population</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799687#M39336</link>
      <description>&lt;P&gt;You can use&amp;nbsp; the at option with LSMEANS&amp;nbsp; to specify the value of the covariate.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcjfernandez_gmail_com_0-1646251454796.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69090i780AC4CCB71A0160/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gcjfernandez_gmail_com_0-1646251454796.png" alt="gcjfernandez_gmail_com_0-1646251454796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799687#M39336</guid>
      <dc:creator>gcjfernandez</dc:creator>
      <dc:date>2022-03-02T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: New mean of variable after adjusting for covariate for total population</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799689#M39338</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/27741"&gt;@gcjfernandez&lt;/a&gt;&amp;nbsp;can you provide a link to this text that you are showing?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799689#M39338</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-02T20:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: New mean of variable after adjusting for covariate for total population</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799703#M39340</link>
      <description>&lt;P&gt;Two possible ways:&lt;/P&gt;
&lt;P&gt;1) mean-center TEI and fit the model omitting SEX. The intercept is the estimated overall mean at the mean of TEI.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc standard data=test m=0; var TEI; run;
proc glm; model &amp;amp;foodgroup = TEI / solution; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2) Use an ESTIMATE statement in your original GLM step - specify the mean TEI and appropriate coefficients for the levels of SEX - probably either 0.5 0.5 to represent a balanced population or the actual observed proportions of the sexes in your data. Assuming a balanced population and mean of TEI is 5.3:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;estimate 'adj overall mean' intercept 1 sex .5 .5 TEI 5.3;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Mar 2022 22:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799703#M39340</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-03-02T22:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: New mean of variable after adjusting for covariate for total population</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799752#M39342</link>
      <description>&lt;P&gt;The link for at option in Lsmeans:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_glm_details41.htm#statug.glm.glmat" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_glm_details41.htm#statug.glm.glmat&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This will estimate LSmeans of categorical variable levels at a known level of covariate(s)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 06:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-mean-of-variable-after-adjusting-for-covariate-for-total/m-p/799752#M39342</guid>
      <dc:creator>gcjfernandez</dc:creator>
      <dc:date>2022-03-03T06:56:45Z</dc:date>
    </item>
  </channel>
</rss>

