<?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 Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147051#M7737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to model binary data with a multiple predictor logistic regression and want to show a profile likelihood confidence interval for the (covariate adjusted) odds ratio with a corresponding p-value for one of the predictors (treatment). I'm not too familiar with profile likelihoods but I found out that the confidence interval is obtained by inverting a likelihood-ratio test. So my question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(How) Can I produce a p-value that is consistent with the profile likelihood confidence interval?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that SAS does not produce LR-tests for single parameters but only for the complete model against a null model. My idea would be to manually calculate the LR-test for the 2-category treatment parameter like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;run proc logistic with 2 predictors for treatment and the covariate, i.e. the full model&lt;OL&gt;&lt;LI&gt;model outcome = treatment covariate&lt;/LI&gt;&lt;LI&gt;oddratio statement requesting a profile likelihood confindence interval for treatment odds ratio (adjusted for covariate)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;search the output for the value of -2 Log L for Intercept and Covariates, call it D_full&lt;/LI&gt;&lt;LI&gt;run proc logistic again with reduced model without treatment variable but keeping the covariate&lt;OL&gt;&lt;LI&gt;model outcome = covariate&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;search the output for the value of -2 Log L for Intercept and Covariates, call it D_red&lt;/LI&gt;&lt;LI&gt;calculate p-value = 1-probchi(D_red - D_full, 1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The p-value obtained in step 5 should be consistent with the profile likelihood confidence interval for the covariate adjusted treatment odds ratio in the sense that if e.g. the 95% the confidence interval does not include 1, then the p-value is below 5%. Or did I miss something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;psj2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 21:39:14 GMT</pubDate>
    <dc:creator>psj2</dc:creator>
    <dc:date>2014-12-11T21:39:14Z</dc:date>
    <item>
      <title>Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147051#M7737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to model binary data with a multiple predictor logistic regression and want to show a profile likelihood confidence interval for the (covariate adjusted) odds ratio with a corresponding p-value for one of the predictors (treatment). I'm not too familiar with profile likelihoods but I found out that the confidence interval is obtained by inverting a likelihood-ratio test. So my question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(How) Can I produce a p-value that is consistent with the profile likelihood confidence interval?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that SAS does not produce LR-tests for single parameters but only for the complete model against a null model. My idea would be to manually calculate the LR-test for the 2-category treatment parameter like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;run proc logistic with 2 predictors for treatment and the covariate, i.e. the full model&lt;OL&gt;&lt;LI&gt;model outcome = treatment covariate&lt;/LI&gt;&lt;LI&gt;oddratio statement requesting a profile likelihood confindence interval for treatment odds ratio (adjusted for covariate)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;search the output for the value of -2 Log L for Intercept and Covariates, call it D_full&lt;/LI&gt;&lt;LI&gt;run proc logistic again with reduced model without treatment variable but keeping the covariate&lt;OL&gt;&lt;LI&gt;model outcome = covariate&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;search the output for the value of -2 Log L for Intercept and Covariates, call it D_red&lt;/LI&gt;&lt;LI&gt;calculate p-value = 1-probchi(D_red - D_full, 1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The p-value obtained in step 5 should be consistent with the profile likelihood confidence interval for the covariate adjusted treatment odds ratio in the sense that if e.g. the 95% the confidence interval does not include 1, then the p-value is below 5%. Or did I miss something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;psj2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 21:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147051#M7737</guid>
      <dc:creator>psj2</dc:creator>
      <dc:date>2014-12-11T21:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147052#M7738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are any of your variables categorical? Are you using a class statement?&lt;/P&gt;&lt;P&gt;Can you post your proc logistic code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually when this happens, the class parameterization hasn't been specified appropriately so the hypothesis are out of line. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 01:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147052#M7738</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-12T01:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147053#M7739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;thank you very much for the hint. Right now, I'm not having an discrepancy anywhere but I want to be sure that my thinking is correct, as I have to specify an analysis a-priori and want to be sure that it makes sense. If it turns out to be wrong concept-wise, that would mean some trouble &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question can be re-stated more simple: The test of a parameter in a multiple logistic regression reported by default is a Wald test, so it is consistent with the default odds ratio confidence interval, the two belong together: If the p-value of the parameter is less than 5% then the 95%confidence interval of the corresponding adjusted parameter does not include 1. The question is: Is this also true for the pair of LR test and profile likelihood confidence interval?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add more detail in my case: The treatment variable is a class variable with 2 classes, the covariate is a center variable with many classes (around 20). Because the variable in question is the treatment variable, it is a class variable with 2 levels, and therefore the chi-square distribution to compare against for the LR test should be the one with 1 df, at least if I got it right &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;psj2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: In SAS code, my idea looks like this: (I have let it run for some example data and it looks ok, but that were only examples &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc logistic data=foo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; class treatment center;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; model outcome(event="1")=treatment center;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; oddsratio treatment / CL=PL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; ods output FitStatistics=fullmod OddsRatiosPL=ORs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc logistic data=foo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; class center;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; model outcome(event="1")= center;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; ods output FitStatistics=redmod;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data bar;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; merge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; fullmod(where=(Criterion="-2 Log L") keep=InterceptAndCovariates Criterion rename=(InterceptAndCovariates=Dfull))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; redmod(where=(Criterion="-2 Log L") keep=InterceptAndCovariates Criterion rename=(InterceptAndCovariates=Dred))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ORs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; pval=1-probchi(Dred-Dfull,1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; keep Effect OddsRatioEst LowerCL UpperCL pval;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc print noobs label; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147053#M7739</guid>
      <dc:creator>psj2</dc:creator>
      <dc:date>2014-12-12T10:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147054#M7740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to rethink considering 'center' as a fixed effect, especially if you want to generalize your conclusions regarding the treatment to apply to settings other than the centers at which the study is conducted.&amp;nbsp; If you do so, then shifting to PROC GLIMMIX will "kill two birds with one stone."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following should (warning untested code) provide likelihood ratio F tests and profile confidence bounds for the odds ratio.&amp;nbsp; This approach will give the odds ratio conditional on the centers--in other words, what odds ratio would you expect to see in any given center, including those not in the study.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;proc glimmix data=foo method=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;class treatment center ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;model outcome(event="1")=treatment/dist=binary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;random intercept/subject=center;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;lsmeans treatment/diff oddsratio cl;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code will give marginal odds ratios--what odds ratio would you expect, averaged over all possible centers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;proc glimmix data=foo ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;class treatment center ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;model outcome(event="1")=treatment/dist=binary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;random intercept/subject=center;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;lsmeans treatment/diff oddsratio cl;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 14:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147054#M7740</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-12-12T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147055#M7741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much for the hint, I'll definitively consider it for my analysis.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But it is still interesting for me to know the answer to my original question above: Is the profile likelihood confidence interval consistent to the likelihood ratio test (outlined above in SAS code), as it is true for the Wald confidence interval and the type III tests in logistic regression (this could even be true for any kind of linear model).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;psj2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 12:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147055#M7741</guid>
      <dc:creator>psj2</dc:creator>
      <dc:date>2014-12-18T12:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147056#M7742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 17:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147056#M7742</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-12-19T17:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logistic regression, profile likelihood confidence interval and corresponding p-value for single parameter</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147057#M7743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Steve!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 09:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-logistic-regression-profile-likelihood-confidence/m-p/147057#M7743</guid>
      <dc:creator>psj2</dc:creator>
      <dc:date>2014-12-20T09:05:30Z</dc:date>
    </item>
  </channel>
</rss>

