<?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: How to estimate standard error for the reference category in proc glm? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723192#M35059</link>
    <description>I am designing a macro which could calculate the group means and SEs for a linear regression with categorical exposures. Is there any other way to find the group estimates, as it is hard to adjust the estimate statement when we have different number of categories?</description>
    <pubDate>Wed, 03 Mar 2021 16:29:54 GMT</pubDate>
    <dc:creator>ph6</dc:creator>
    <dc:date>2021-03-03T16:29:54Z</dc:date>
    <item>
      <title>How to estimate standard error for the reference category in proc glm?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723058#M35051</link>
      <description>&lt;P&gt;I use proc glm to find the estimates for a categorical variable with 3 levels; rs1 : {1,2,3}&lt;/P&gt;
&lt;P&gt;I have identified level 1 as the reference category. I would like to find the standard error for the reference category&lt;/P&gt;
&lt;P&gt;so that I could form CIs for it as well.&lt;/P&gt;
&lt;P&gt;I use the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLM DATA=AllData PLOTS=NONE;
        CLASS rs1(ref = '1');
        MODEL nmr_acace = rs1  /CLPARM   SOLUTION E;
		estimate 'rs1 1' intercept 1 rs1 1 0 0 ;
    QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the following results:&lt;/P&gt;
&lt;PRE&gt; Estimate            standard error
rs1 0   0.007628342    0.00335261 
rs1 2  -0.000113952   0.00833655 
rs1 1   0.000                .

             Estimate        standard error
rs1 1   3.05314364      0.00183197 
 &lt;/PRE&gt;
&lt;P&gt;I do not know how to interpret the estimate for rs1 = 1 being 3.053. I was hoping to have it as 0 and by the standard error find the confidence intervals for it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 02:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723058#M35051</guid>
      <dc:creator>ph6</dc:creator>
      <dc:date>2021-03-03T02:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate standard error for the reference category in proc glm?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723125#M35055</link>
      <description>&lt;P&gt;The reference category is merged into the estimate for the Intercept. For CLASS variables, you can estimate the effect of differences. For the GLM parameterization, you are measuring the difference between non-reference levels and the reference level.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 11:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723125#M35055</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-03-03T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate standard error for the reference category in proc glm?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723151#M35056</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; pointed out, the estimates in the Parameter Estimates table have interpretations that might not be what you think.&lt;/P&gt;
&lt;P&gt;You did not capture the estimate for Intercept in the Parameter Estimates table, which is important. Please refer to the following usage note for more explanations --&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/38/384.html" target="_blank"&gt;https://support.sas.com/kb/38/384.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your ESTIMATE statement estimates the response for the first level, which is level 0. If you want to estimate the response for the reference level (which is also the estimate for Intercept in the Parameter Estimates table), you should use --&lt;/P&gt;
&lt;P&gt;estimate 'rs1 1' intercept 1 rs1 0 0 1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723151#M35056</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-03-03T14:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate standard error for the reference category in proc glm?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723192#M35059</link>
      <description>I am designing a macro which could calculate the group means and SEs for a linear regression with categorical exposures. Is there any other way to find the group estimates, as it is hard to adjust the estimate statement when we have different number of categories?</description>
      <pubDate>Wed, 03 Mar 2021 16:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723192#M35059</guid>
      <dc:creator>ph6</dc:creator>
      <dc:date>2021-03-03T16:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate standard error for the reference category in proc glm?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723445#M35066</link>
      <description>&lt;P&gt;Look into the LSMEANS statement - that will give you means and SE's.&amp;nbsp; With on ODS OUTPUT statement, you can put those into a dataset.&amp;nbsp; No direct need for a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 13:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-standard-error-for-the-reference-category-in/m-p/723445#M35066</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-03-04T13:31:08Z</dc:date>
    </item>
  </channel>
</rss>

