<?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: GLM confidence limits for group specific intercepts and slopes in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684938#M33004</link>
    <description>&lt;P&gt;Okay, then you need to re-parameterize the model so that each of these terms of interest is an individual term in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model outcome = cat cont*cat / solution clparm;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The group specific slopes are the cont*cat terms. The group specific intercepts are the cat term.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 11:38:45 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-09-18T11:38:45Z</dc:date>
    <item>
      <title>GLM confidence limits for group specific intercepts and slopes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684933#M33001</link>
      <description>&lt;P&gt;I am using proc GLM with dummy variables coding for different groups and a continuous variable. Then, I can get coeffcients and CI for all variables and interactions.&lt;/P&gt;&lt;P&gt;I then compute group-specific intercept and slopes for the 0-group as follows:&lt;/P&gt;&lt;P&gt;intercept + ca t0&lt;/P&gt;&lt;P&gt;cont + cont*cat 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How then can I get the corresponding CI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data tmp;
    input cont cat outcome;
    datalines;
1.1 0 0.8
1.5 0 0.6
2.1 0 0.6
5.1 0 0.2
2.1 1 0.9
1.1 1 0.7
1.4 1 0.8
4.7 1 0.3
;
run;

proc glm data=tmp;
    class cat;
    model outcome = cont | cat / solution clparm;
run;&lt;/PRE&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Parameter&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;t&amp;nbsp;Value&lt;/TD&gt;&lt;TD&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;|t|&lt;/TD&gt;&lt;TD&gt;95% Confidence&lt;/TD&gt;&lt;TD&gt;Limits&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Intercept&lt;/TD&gt;&lt;TD&gt;0.989189&lt;/TD&gt;&lt;TD&gt;0.128196&lt;/TD&gt;&lt;TD&gt;7.72&lt;/TD&gt;&lt;TD&gt;0.0015&lt;/TD&gt;&lt;TD&gt;0.633259&lt;/TD&gt;&lt;TD&gt;1.34512&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cont&lt;/TD&gt;&lt;TD&gt;-0.13514&lt;/TD&gt;&lt;TD&gt;0.04707&lt;/TD&gt;&lt;TD&gt;-2.87&lt;/TD&gt;&lt;TD&gt;0.0454&lt;/TD&gt;&lt;TD&gt;-0.26582&lt;/TD&gt;&lt;TD&gt;-0.00445&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cat 0&lt;/TD&gt;&lt;TD&gt;-0.10905&lt;/TD&gt;&lt;TD&gt;0.178144&lt;/TD&gt;&lt;TD&gt;-0.61&lt;/TD&gt;&lt;TD&gt;0.5735&lt;/TD&gt;&lt;TD&gt;-0.60366&lt;/TD&gt;&lt;TD&gt;0.385561&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cat 1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cont*cat 0&lt;/TD&gt;&lt;TD&gt;0.000383&lt;/TD&gt;&lt;TD&gt;0.06342&lt;/TD&gt;&lt;TD&gt;0.01&lt;/TD&gt;&lt;TD&gt;0.9955&lt;/TD&gt;&lt;TD&gt;-0.1757&lt;/TD&gt;&lt;TD&gt;0.176466&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cont*cat 1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684933#M33001</guid>
      <dc:creator>smar</dc:creator>
      <dc:date>2020-09-18T11:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: GLM confidence limits for group specific intercepts and slopes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684935#M33002</link>
      <description>&lt;P&gt;These are essentially the confidence intervals for predicted values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you need to add the desired levels of conc and cat to your dataset, with missing values for outcome, and then the OUTPUT statement data set will contain the desired confidence intervals.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684935#M33002</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-18T11:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: GLM confidence limits for group specific intercepts and slopes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684937#M33003</link>
      <description>&lt;P&gt;I am afraid predicted values CI are not what I am looking for.&lt;/P&gt;&lt;P&gt;To be more precise, let's assume my model is as follows:&lt;/P&gt;&lt;P&gt;outcome = b0 + b1 * group + (b2 + b3*group) * x&lt;/P&gt;&lt;P&gt;with "group" being a binary variabe.&lt;/P&gt;&lt;P&gt;I am looking for the CIs of the group-specific intercept&amp;nbsp; (b0 + b1*group) and the group-specific slopes (b2 + b3*group) with no regard to the value of x.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684937#M33003</guid>
      <dc:creator>smar</dc:creator>
      <dc:date>2020-09-18T11:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: GLM confidence limits for group specific intercepts and slopes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684938#M33004</link>
      <description>&lt;P&gt;Okay, then you need to re-parameterize the model so that each of these terms of interest is an individual term in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model outcome = cat cont*cat / solution clparm;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The group specific slopes are the cont*cat terms. The group specific intercepts are the cat term.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684938#M33004</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-18T11:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: GLM confidence limits for group specific intercepts and slopes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684944#M33005</link>
      <description>&lt;P&gt;I accepted the answer a bit fast (because I am mainly interested in the slopes).&lt;/P&gt;&lt;P&gt;Your solution works for slopes, but the intercept still have to be added to "cat".&lt;/P&gt;&lt;P&gt;Is there a workaround for that?&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;BR /&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Intercept&lt;/TD&gt;&lt;TD&gt;0.9891891892&lt;/TD&gt;&lt;TD&gt;0.12819646&lt;/TD&gt;&lt;TD&gt;7.72&lt;/TD&gt;&lt;TD&gt;0.0015&lt;/TD&gt;&lt;TD&gt;0.6332587543&lt;/TD&gt;&lt;TD&gt;1.3451196241&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cat 0&lt;/TD&gt;&lt;TD&gt;-.1090473452&lt;/TD&gt;&lt;TD&gt;0.17814433&lt;/TD&gt;&lt;TD&gt;-0.61&lt;/TD&gt;&lt;TD&gt;0.5735&lt;/TD&gt;&lt;TD&gt;-.6036552868&lt;/TD&gt;&lt;TD&gt;0.3855605963&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cat 1&lt;/TD&gt;&lt;TD&gt;0.0000000000&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cont*cat 0&lt;/TD&gt;&lt;TD&gt;-.1347517730&lt;/TD&gt;&lt;TD&gt;0.04250296&lt;/TD&gt;&lt;TD&gt;-3.17&lt;/TD&gt;&lt;TD&gt;0.0338&lt;/TD&gt;&lt;TD&gt;-.2527589074&lt;/TD&gt;&lt;TD&gt;-.0167446387&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cont*cat 1&lt;/TD&gt;&lt;TD&gt;-.1351351351&lt;/TD&gt;&lt;TD&gt;0.04707033&lt;/TD&gt;&lt;TD&gt;-2.87&lt;/TD&gt;&lt;TD&gt;0.0454&lt;/TD&gt;&lt;TD&gt;-.2658233265&lt;/TD&gt;&lt;TD&gt;-.0044469437&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Sep 2020 12:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684944#M33005</guid>
      <dc:creator>smar</dc:creator>
      <dc:date>2020-09-18T12:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: GLM confidence limits for group specific intercepts and slopes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684992#M33006</link>
      <description>&lt;P&gt;Add the NOINT option into the MODEL statement.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-confidence-limits-for-group-specific-intercepts-and-slopes/m-p/684992#M33006</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-18T14:39:53Z</dc:date>
    </item>
  </channel>
</rss>

