<?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: Calculation of confidence intervals for estimate intercept in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806172#M39678</link>
    <description>&lt;P&gt;Just to make sure I understand. By adding the ESTIMATE command I'm asking SAS to estimate beta0 in a model such as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ln(Incidence_rate)=beta0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or ln(n)=ln(fu)+beta0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I correct?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 22:40:49 GMT</pubDate>
    <dc:creator>pmmalmeida</dc:creator>
    <dc:date>2022-04-05T22:40:49Z</dc:date>
    <item>
      <title>Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806089#M39660</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm calculating confidence intervals for an incidence rate and came across this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 8 events with a total follow-up time (days/years/log) of 69166/189.37/5.25.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By hand, I would calculate the confidence intervals by using the equations (Poisson distribution, alpha=0.5):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ll = (CINV(0.05/2,2*n)/2)/(fu/365.25);
ul = (CINV((1-0.05/2),2*(n+1))/2)/(fu/365.25);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Being n=8 and fu=69166. I get 18.23 and 83.24 x10^-3 for the lower and upper confidence intervals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why don't I get the same result if I try to calculate these intervals by using proc genmod?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC GENMOD DATA = ir;
MODEL n = /dist=P OFFSET= lfu_year;
ESTIMATE "intercept" intercept 1;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Assuming ir is a dataset with 1 row and 2 variables (n=8 and lfu_year=5.244)?.&lt;/P&gt;&lt;P&gt;I get 21.1 and 84.5&amp;nbsp;x10^-3 for the lower and upper confidence intervals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, could you explain to me why we set the estimate "Intercept" at 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806089#M39660</guid>
      <dc:creator>pmmalmeida</dc:creator>
      <dc:date>2022-04-05T15:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806093#M39662</link>
      <description>&lt;P&gt;I can answer the second question.&amp;nbsp; In the ESTIMATE statement, the value entered is a multiplier of the value.&amp;nbsp; Think of a matrix product where&amp;nbsp;&lt;STRONG&gt;L'(beta)&amp;nbsp;&lt;/STRONG&gt;is the estimate you want to calculate.&amp;nbsp; The&amp;nbsp;entries in the&amp;nbsp;&lt;STRONG&gt;L&amp;nbsp;&lt;/STRONG&gt;matrix are what you enter into the ESTIMATE statement, so intercept 1 gives you 1*(beta hat for intercept).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806093#M39662</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-04-05T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806096#M39663</link>
      <description>&lt;P&gt;In GENMOD, you are fitting a model and estimating a linear combination of the model parameters - in this case, just the intercept itself - and then obtaining an estimate on the mean scale by applying the inverse of the link function. As a result, the estimate and confidence interval for the rate are computed by exponentiating (the inverse of the link function in this case) the intercept and the endpoints of the confidence interval for the intercept.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806096#M39663</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-05T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806172#M39678</link>
      <description>&lt;P&gt;Just to make sure I understand. By adding the ESTIMATE command I'm asking SAS to estimate beta0 in a model such as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ln(Incidence_rate)=beta0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or ln(n)=ln(fu)+beta0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I correct?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 22:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806172#M39678</guid>
      <dc:creator>pmmalmeida</dc:creator>
      <dc:date>2022-04-05T22:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806179#M39679</link>
      <description>&lt;P&gt;Yes. GENMOD fits the model g(mu)=X*Beta, where g() is the link function. So, with a log link, the model is ln(mu)=X*Beta, and for an intercept-only model with an offset, ln(off), the model is ln(mu)=Beta0+ln(off), or equivalently, ln(mu/off)=Beta0 so that Beta0 estimates the log rate. GENMOD provides a point estimate and confidence interval for the intercept, Beta0. The ESTIMATE statement estimates L*Beta, where L is the vector of coefficients you provide in the ESTIMATE statement. Exponentiating Beta0 and its confidence interval, as the ESTIMATE provides in the Mean columns, provides a point estimate and confidence interval for the rate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 02:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806179#M39679</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-06T02:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806224#M39680</link>
      <description>&lt;P&gt;Thanks! But, and I'm sorry if thats obvious, that does not explain the small difference in CI's I calculate right?&lt;/P&gt;&lt;P&gt;Shouldn't the GENMOD give the same results as the exact method confidence intervals for a poisson distribution or does SAS calculate the CI's for the intercept in a different way?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 09:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806224#M39680</guid>
      <dc:creator>pmmalmeida</dc:creator>
      <dc:date>2022-04-06T09:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806266#M39682</link>
      <description>&lt;P&gt;Check the GENMOD documentation. In the Details section, it gives the methods for calculating confidence intervals by the two available methods (likelihood ratio and Wald).&amp;nbsp; Neither of those use the closed formulas you present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 12:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806266#M39682</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-04-06T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of confidence intervals for estimate intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806280#M39683</link>
      <description>&lt;P&gt;GENMOD&amp;nbsp;is not a procedure specialized for estimating rates. It is a modeling procedure that fits a range of generalized linear models. The estimation methods it provides are in the modeling context. However, rate estimation can be done using a modeling approach by estimating the appropriate function of model parameters which is what the ESTIMATE statement does. This general estimation method is not the same as the method you showed. However, these two methods are likely to be equivalent asymptotically.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 13:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-confidence-intervals-for-estimate-intercept/m-p/806280#M39683</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-06T13:49:42Z</dc:date>
    </item>
  </channel>
</rss>

