<?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: Proc GLMselect  confidence in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688378#M209099</link>
    <description>&lt;P&gt;Sorry for the typo error, please consider the class statement is same in both procedures.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 21:34:58 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2020-10-01T21:34:58Z</dc:date>
    <item>
      <title>Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688370#M209095</link>
      <description>&lt;P&gt;I am looking to create&amp;nbsp; a table where I need to use the confidence intervals after selecting the method, I used GLMSELECT then GLM, but I am having the issue to run the GLM code because I am not sure how the macro variable created here . I see the post from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;. Hope can you help with my code , what is the macro variable I expect here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods output ParameterEstimates = estimates;&lt;BR /&gt;proc glm data=both;&lt;BR /&gt;class STRn STRLn trt L1 L2 L3 L4 L5 L6 L7 L8 L9 ;&lt;BR /&gt;model chg=base STRCVRn STRLABAn trt L1 L2 L3 L4 L5 L6 L7 L8 L9&lt;BR /&gt;trt*L1 trt*L2 trt*L3 trt*L4&lt;BR /&gt;trt*L5 trt*L6 trt*L7 trt*L8&lt;BR /&gt;trt*L9&lt;BR /&gt;/ selection= stepwise(select=SL /*sle=0.15 sls=0.2*/ ) stats=all ;&lt;BR /&gt;run;&lt;BR /&gt;/*%put &amp;amp;=?;*/ ( what is my macro variable will be?)&lt;BR /&gt;proc glm data=both;&lt;BR /&gt;class STRCVRn STRLABAn trt L1 L2 L3 L4 L5 L6 L7 L8 L9 ;;&lt;BR /&gt;model chg = /*?*/ / solution CLPARM; /* or CLB for PROC REG */&lt;BR /&gt;run;&lt;BR /&gt;ods trace off;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 21:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688370#M209095</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-01T21:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688378#M209099</link>
      <description>&lt;P&gt;Sorry for the typo error, please consider the class statement is same in both procedures.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 21:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688378#M209099</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-01T21:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688381#M209100</link>
      <description>&lt;P&gt;I'm a little confused by your request. Confidence intervals for what?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, PROC GLMSELECT does not produce confidence intervals. PROC GLM does. Are you trying to use PROC GLMSELECT to determine the model and then PROC GLM to get confidence intervals?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;What macro variable are you referring to? I don't see a need for macro variables here.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 21:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688381#M209100</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-01T21:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688384#M209102</link>
      <description>&lt;P&gt;Thanks for your response. First part of your question is right! I am trying to&amp;nbsp; &lt;SPAN&gt;to use PROC GLMSELECT to determine the model and then PROC GLM to get confidence intervals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;coming to macro variable, I was trying to follow the one of the post, I really don't have experience in these procedures. Here the link for the post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Proc-GLMSelect-and-confidence-intervals/td-p/326727" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Proc-GLMSelect-and-confidence-intervals/td-p/326727&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 22:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688384#M209102</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-01T22:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688391#M209105</link>
      <description>&lt;P&gt;I do not see where a macro variable is needed here. But I also don't know what you a referring to where you got the code that has a macro variable.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 22:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688391#M209105</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-01T22:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688395#M209109</link>
      <description>sorry for the confusion, based on this code, can you able to tell me how to find the CI after selecting the model from Proc GLMSELECT&lt;BR /&gt;ods output ParameterEstimates = estimates;&lt;BR /&gt;proc glm data=both;&lt;BR /&gt;class STRn STRLn trt L1 L2 L3 L4 L5 L6 L7 L8 L9 ;&lt;BR /&gt;model chg=base STRn STRLn trt L1 L2 L3 L4 L5 L6 L7 L8 L9&lt;BR /&gt;trt*L1 trt*L2 trt*L3 trt*L4&lt;BR /&gt;trt*L5 trt*L6 trt*L7 trt*L8&lt;BR /&gt;trt*L9&lt;BR /&gt;/ selection= stepwise(select=SL /*sle=0.15 sls=0.2*/ ) stats=all ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc glm data=both;&lt;BR /&gt;class STRn STRLn trt L1 L2 L3 L4 L5 L6 L7 L8 L9;&lt;BR /&gt;model chg =/ / solution CLPARM; /* or CLB for PROC REG */&lt;BR /&gt;run;&lt;BR /&gt;ods trace off;</description>
      <pubDate>Thu, 01 Oct 2020 22:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688395#M209109</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-01T22:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688457#M209139</link>
      <description>&lt;P&gt;First, do you want confidence intervals for the predicted values or for the CIs for the regression parameters (coefficients)? From your code, I am assuming you want CIs for the regression coefficients.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The method you want is described in the article &lt;A href="https://blogs.sas.com/content/iml/2018/08/01/variables-in-final-selected-model.html" target="_self"&gt;"Which variables are in the final selected model?"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The first procedure call should be the PROC GLMSELECT, which will select the model and create the _GLSIND macro variable. You can then use the macro variable in PROC GLM to fit the selected model and get inferential statistics for that model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short, it looks like you just need to change the first procedure to GLMSELECT.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 09:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688457#M209139</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-10-02T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLMselect  confidence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688505#M209175</link>
      <description>that sounds right, thanks Rick. I do have an extension to this question, my stats asked to used either PRC GLM or PROOC MIXED, so how to approach after going through the GLMSELECT. This is is the statement I got from them&lt;BR /&gt;"For the reduced model with stepwise selection, initially proc glmselect needs to run to assess significance of the terms in the model. Once the fixed effect terms that stay in the reduced model are determined, rerun the proc mixed to obtain the reduced model." I will try to post output too</description>
      <pubDate>Fri, 02 Oct 2020 13:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLMselect-confidence/m-p/688505#M209175</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-02T13:05:51Z</dc:date>
    </item>
  </channel>
</rss>

