<?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 PROC GLM or PROC REG to get 95%CIs for independent variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269228#M14181</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am working on a national database looking at continuous outcome and many independent predictors like age, race group, income category, insurance status, etc. So my predictors are a mix of&amp;nbsp; continuous and categorical variables. I need to check which of these variables are significant precitors and also get the 95% CIs for these predictors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used Proc GLM to test the association but I am finding difficulty in getting the 95% CIs for the independent predictors. I would appreciate if anyone can help me with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also is there a way I can control the which category within a variables (eg. Race ) will be a reference category just like proc logistic?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf;
proc sort data = ulcer; by descending ulcernew descending agecat1 descending Racecat  descending INCCAT1 
descending INSURE descending MARRIED1 descending smoke1 descending backpain4 descending diabetes; run;
* Multiple linear regression;
proc glm data = ulcer order=data;
  class ulcernew agecat1 Racecat INCCAT1 INSURE MARRIED1 smoke1 backpain4 diabetes;
  model pcs36v2 mcs36v2 pf36 mh36 re36 rp36 sf36a vt36 
      = agecat1  Racecat INCCAT1 INSURE MARRIED1 smoke1 backpain4 diabetes ulcernew / solution ss3;
run;
quit;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sat&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 17:06:22 GMT</pubDate>
    <dc:creator>smunigala</dc:creator>
    <dc:date>2016-05-09T17:06:22Z</dc:date>
    <item>
      <title>PROC GLM or PROC REG to get 95%CIs for independent variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269228#M14181</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am working on a national database looking at continuous outcome and many independent predictors like age, race group, income category, insurance status, etc. So my predictors are a mix of&amp;nbsp; continuous and categorical variables. I need to check which of these variables are significant precitors and also get the 95% CIs for these predictors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used Proc GLM to test the association but I am finding difficulty in getting the 95% CIs for the independent predictors. I would appreciate if anyone can help me with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also is there a way I can control the which category within a variables (eg. Race ) will be a reference category just like proc logistic?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf;
proc sort data = ulcer; by descending ulcernew descending agecat1 descending Racecat  descending INCCAT1 
descending INSURE descending MARRIED1 descending smoke1 descending backpain4 descending diabetes; run;
* Multiple linear regression;
proc glm data = ulcer order=data;
  class ulcernew agecat1 Racecat INCCAT1 INSURE MARRIED1 smoke1 backpain4 diabetes;
  model pcs36v2 mcs36v2 pf36 mh36 re36 rp36 sf36a vt36 
      = agecat1  Racecat INCCAT1 INSURE MARRIED1 smoke1 backpain4 diabetes ulcernew / solution ss3;
run;
quit;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sat&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 17:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269228#M14181</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-05-09T17:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM or PROC REG to get 95%CIs for independent variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269251#M14182</link>
      <description>&lt;P&gt;Yes. In the CLASS statement &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glm_syntax04.htm" target="_self"&gt;use the REF= option &lt;/A&gt;in parentheses to define the reference level:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;class&amp;nbsp; Racecat(ref="white") MARRIED1(ref="yes") ...;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the confidence intervals, I assume that you want 95% CIs for the parameter estimates. &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glm_syntax16.htm" target="_self"&gt;Use the CLPARM option on the MODEL statement&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; pcs36v2&amp;nbsp;... =&amp;nbsp;agecat1&amp;nbsp; ... &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; solution ss3 CLPARM;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 17:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269251#M14182</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-09T17:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM or PROC REG to get 95%CIs for independent variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269254#M14184</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;
&lt;P&gt;Thanks for the reply. I am getting the 95% CIs for the parameters, but when I assign the ref=option, I think it is not working. Ref=option should be highlighted in blue right? It is not in my code. Do I have any error? I use SAS 9.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sat&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data = ulcer;
  class ulcernew agecat1 Racecat(ref="Black") INCCAT1 INSURE MARRIED1 (ref="1") smoke1 backpain4 diabetes;
  model pcs36v2 
      = agecat1  Racecat INCCAT1 INSURE MARRIED1 smoke1 backpain4 diabetes ulcernew / solution ss3 CLPARM;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 18:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269254#M14184</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-05-09T18:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM or PROC REG to get 95%CIs for independent variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269258#M14186</link>
      <description>&lt;P&gt;Don't worry about the color. It works. Run it and you'll see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI, suboptions do not always get coloration in the text editor. For example the following uses the WHERE= data set option, which is a valid option but is not colored blue in my version of SAS Windowing Environment (DMS), although the WHERE= (and REF=) statements are colored blue in SAS Studio and in this Support Communities window:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sashelp.class(where=(weight&amp;lt;200));
class sex(ref="M");
model weight = height | sex / solution;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 18:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269258#M14186</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-09T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM or PROC REG to get 95%CIs for independent variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269264#M14187</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 18:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-or-PROC-REG-to-get-95-CIs-for-independent-variables/m-p/269264#M14187</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-05-09T18:54:42Z</dc:date>
    </item>
  </channel>
</rss>

