<?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: Confidence intervals of continuous-by-class effect in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/277311#M14647</link>
    <description>&lt;P&gt;What do you get if you try fitting the following (with obvious changes to your data):&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;
class sex;
model weight=sex sex*age/noint solution clparm;
quit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This should give unique and non-biased estimates for the intercepts (sex in this case) and for the separate slopes for each sex, rather than the deviations from the reference level intercept and slope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 17:25:05 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-06-14T17:25:05Z</dc:date>
    <item>
      <title>Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276212#M14588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a simple linear regression in proc glm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;y = x + a + x*a,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where y is days of sickness absence per year, x is calendar year (treated as a&amp;nbsp;continuous variable) and a a cohort effect (two categories). I would like to know whether the change in y over the time is different for my&amp;nbsp;two cohorts. I have the estimates for my two slopes and so far I am fine. However, I get stuck when I try to get the 95% confidence intervals to go with each of the estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me out? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 10:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276212#M14588</guid>
      <dc:creator>chrnie</dc:creator>
      <dc:date>2016-06-09T10:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276231#M14589</link>
      <description>&lt;P&gt;Do you have model statement option CLPARM?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 12:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276231#M14589</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-06-09T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276233#M14590</link>
      <description>&lt;P&gt;Yes I do. Sorry for being a bit&amp;nbsp;vague. The question is more about what to do with the output - do I add the confidence limits of the treatment group with those of the reference group in the same way as I did to get the parameter estimate?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 12:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276233#M14590</guid>
      <dc:creator>chrnie</dc:creator>
      <dc:date>2016-06-09T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276247#M14594</link>
      <description>&lt;PRE&gt;
You need SOLUTION option too because you have CLASS variable.


proc glm data=sashelp.class;
class sex;
model weight=sex age sex*age/solution clparm;
run;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276247#M14594</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-09T13:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276430#M14608</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! The model that I run looks exactly like the example you posted. This is my output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="output.PNG" alt="output.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/3564iE62729595353715B/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I go from here to the confidence interval of yr*cohort PsA_K? Do I&amp;nbsp;add -3.81090 and -10.70668 to get the lower confidence limit (and similarly for the upper confidence limit)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 06:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276430#M14608</guid>
      <dc:creator>chrnie</dc:creator>
      <dc:date>2016-06-10T06:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276445#M14609</link>
      <description>No.  -10.70668 just is the lower confidence limit of yr*cohort PsA_K .</description>
      <pubDate>Fri, 10 Jun 2016 08:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/276445#M14609</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-10T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/277311#M14647</link>
      <description>&lt;P&gt;What do you get if you try fitting the following (with obvious changes to your data):&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;
class sex;
model weight=sex sex*age/noint solution clparm;
quit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This should give unique and non-biased estimates for the intercepts (sex in this case) and for the separate slopes for each sex, rather than the deviations from the reference level intercept and slope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 17:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/277311#M14647</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-06-14T17:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/277790#M14654</link>
      <description>&lt;P&gt;Steve: I tried fitting the model according to your suggestion.&amp;nbsp;The log gives me&amp;nbsp;the following note:&lt;/P&gt;&lt;P&gt;NOTE: Due to the presence of CLASS variables, an intercept is implicitly fitted. R-Square has&lt;/P&gt;&lt;P&gt;been corrected for the mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done some research myself and have realized that, when dealing with interactions, the confidence interval will depend on the level of the covariate (please correct me if I am wrong!). I found this code for proc plm that provides the confidence intervals that I was after (graphically):&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;plm&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; resore=PsA_K_est;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;effectplot slicefit (x=yr sliceby=cohort) / clm;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what the result looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG title="CI of interaction.PNG" alt="CI of interaction.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/3643i7E0B1E568A0ED719/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 07:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/277790#M14654</guid>
      <dc:creator>chrnie</dc:creator>
      <dc:date>2016-06-16T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/278001#M14661</link>
      <description>&lt;P&gt;Good looking graph, so things seem to be going OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NOTE you referred to really is about the calculation of Rsquared under a no-intercept model, and gets fired in whenever the NOINT option is executed. &amp;nbsp;What should be interesting would be the solution table generated. &amp;nbsp;That should have the intercepts and slope coefficients, now expressed directly rather than as deviations. &amp;nbsp;And with the CLPARM option, you should have 95% confidence limits for them, so there should be no need to manipulate the results from the full factorial model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 18:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/278001#M14661</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-06-16T18:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals of continuous-by-class effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/278120#M14663</link>
      <description>&lt;P&gt;You are right. I must have done something wrong&amp;nbsp;when I ran the model yesterday.&amp;nbsp;This is the solution table:&lt;/P&gt;&lt;P&gt;&lt;IMG title="solution.PNG" alt="solution.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/3661iD713D6FAC924B8B4/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;This is what I was after! Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 06:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-of-continuous-by-class-effect/m-p/278120#M14663</guid>
      <dc:creator>chrnie</dc:creator>
      <dc:date>2016-06-17T06:55:27Z</dc:date>
    </item>
  </channel>
</rss>

