<?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: Bivariate logistic regression using SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652605#M31390</link>
    <description>&lt;P&gt;I will give GLIMMIX a try, but I'm not convinced by just looking at the example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, in the example code we see&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dist=byobs(dist)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but how would that work if both Y variables are binary?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2020 16:27:40 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-06-02T16:27:40Z</dc:date>
    <item>
      <title>Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652446#M31386</link>
      <description>&lt;P&gt;Dear Respected:&lt;/P&gt;&lt;P&gt;I have two binary outcomes (y1 and y2) and some predictors (x1, x2, ..., xp). I have tried to do separate analyses using logistic regression for each outcome given other predictors. However, it is not effective for my analysis as the correlation between the two outcomes (y1, y2) need to be considered and fit one model using bivariate logistic regression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear, how can I fit bivariate logistic regression using SAS that can address the above?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 07:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652446#M31386</guid>
      <dc:creator>Lijuu</dc:creator>
      <dc:date>2020-06-02T07:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652481#M31387</link>
      <description>&lt;P&gt;I'd like to know too. I am not aware of any way in SAS (or other software) to fit a logistic regression with multiple Y variables. In fact, I'm not even aware of a published (paper or textbook) solution for logistic regression with multiple Y variables.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652481#M31387</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-02T11:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652490#M31388</link>
      <description>Maybe you are looking for multiple level logistic regression.&lt;BR /&gt;Encoding to make a new Y=1 2 3 ...&lt;BR /&gt;1 0  -&amp;gt; 1&lt;BR /&gt;0 1 -&amp;gt;  2&lt;BR /&gt;1 1 -&amp;gt;  3&lt;BR /&gt;&lt;BR /&gt;Also could try Random Forest , Decision Tree , Netural Network ....</description>
      <pubDate>Tue, 02 Jun 2020 11:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652490#M31388</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-06-02T11:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652570#M31389</link>
      <description>&lt;P&gt;When in doubt, I always recommend PROC GLIMMIX.&amp;nbsp; See the example at this link: &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glimmix_examples08.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glimmix_examples08.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This provides a joint analysis of a binomial response variable and a count response variable. It should be possible to do the joint analysis of two binomial variables, following this example.&amp;nbsp; I particularly like the R-side joint analysis, as it provides an estimate of the correlation between the two response variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenahm&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 14:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652570#M31389</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-02T14:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652605#M31390</link>
      <description>&lt;P&gt;I will give GLIMMIX a try, but I'm not convinced by just looking at the example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, in the example code we see&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dist=byobs(dist)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but how would that work if both Y variables are binary?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652605#M31390</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-02T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652838#M31391</link>
      <description>&lt;P&gt;That is an excellent point&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;. It has been a couple years since I tried it, and I recall it being problematic.&amp;nbsp; However, looking at the last example, I think this might work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=yourdata;
   class treatment respvar patient;
   model y =respvar treatment*respvar/ dist=binomial;
   random _residual_ / subject=patient type=unr;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This would treat the response variables (respvar would need to be created in the yourdata dataset, and y "stacked") as a repeated measure on each patient.&amp;nbsp; I shifted to type=unr as I think an investigator might be more interested in the correlation between the measures than the covariance. It gets away from the byobs type which would be identical with a direct use of the example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A conditional model with G side covariance could be also run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=yourdata method=laplace;
   class treatment respvar patient;
   model y =respvar treatment*respvar/ dist=binomial;
   random respvar / subject=patient type=unr;
  /* or random intercept/subject=patient; */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't have a handy dataset to try this out on, and need to get to some email issues.&amp;nbsp; I think a quick simulated dataset would be in order to test this approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 12:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652838#M31391</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-03T12:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652841#M31392</link>
      <description>&lt;P&gt;I'll have to give this a try as well. Sure seems like an awful lot of work to obtain a logistic regression with multiple Y values, and I'm starting to think the easiest thing to do would be&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;'s suggestion eariler. Maybe there's a reason why SAS has no easy method to do this, and why I have never seen any textbook or published article that covers logistic regression with multiple Y variables.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 12:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652841#M31392</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-03T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652875#M31393</link>
      <description>Dear all respected:&lt;BR /&gt;Thank you for your help. I will check it out in R, too.&lt;BR /&gt;&lt;BR /&gt;Lijuu</description>
      <pubDate>Wed, 03 Jun 2020 13:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652875#M31393</guid>
      <dc:creator>Lijuu</dc:creator>
      <dc:date>2020-06-03T13:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652908#M31394</link>
      <description>&lt;P&gt;Here is an analysis of 3 response variables with 3 levels for treatment in 100 patients.&amp;nbsp; The first part simulates the data, the second provides a PROC GLIMMIX approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
call streaminit(1);
pt=.2;
pr=.1;
do trt=1 to 3;
	do respvar=1 to 3;
		do patient=1 to 100;
		y=RAND('BERNOULLI', (pt*trt+pr*respvar)) ;
		output;
		end;
	end;
end;
run;

proc glimmix data=one method=quad;
   class trt respvar patient;
   model y =respvar trt*respvar/ dist=binary corrb;
   random intercept/subject=patient; 
   lsmeans trt*respvar/slicediff=respvar ilink;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output provides the following&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;Response variable&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Treatment&amp;nbsp;&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Nominal p(0)&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Model p(0)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="34px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;0.7&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="60px" height="30px" class="r data"&gt;0.8308&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="34px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;0.5&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.5000&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="34px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;3&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;0.3&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.2993&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="34px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;0.6&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.5904&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="34px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;0.4&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.4096&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="34px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;3&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;0.2&lt;/TD&gt;
&lt;TD width="25%" height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.1992&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="34px"&gt;3&lt;/TD&gt;
&lt;TD height="34px"&gt;1&lt;/TD&gt;
&lt;TD height="34px"&gt;0.5&lt;/TD&gt;
&lt;TD height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.4699&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="34px"&gt;3&lt;/TD&gt;
&lt;TD height="34px"&gt;2&lt;/TD&gt;
&lt;TD height="34px"&gt;0.3&lt;/TD&gt;
&lt;TD height="34px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.2792&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="30px"&gt;3&lt;/TD&gt;
&lt;TD height="30px"&gt;3&lt;/TD&gt;
&lt;TD height="30px"&gt;0.1&lt;/TD&gt;
&lt;TD height="30px"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Glimmix: trt*respvar Least Squares Means" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.1193&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The coefficient of determination, based on the squared correlation between the nominal values and the model values, is 0.961.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I submit that this approach to multivariate logistic regression using PROC GLIMMIX seems appropriate.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 15:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652908#M31394</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-03T15:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652921#M31395</link>
      <description>&lt;P&gt;Back to the original question from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206013"&gt;@Lijuu&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;However, it is not effective for my analysis as the correlation between the two outcomes (y1, y2) need to be considered and fit one model using bivariate logistic regression."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does this GLIMMIX approach handle the correlation between Y variables? I'm not seeing it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 15:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652921#M31395</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-03T15:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652944#M31396</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An explicit correlation can be fit using this set of statements:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=one method=quad;
   class trt respvar patient;
   model y =respvar trt*respvar/noint dist=binary corrb;
   random intercept/subject=patient; 
   random respvar/subject=patient type=unr;
   lsmeans trt*respvar/slicediff=respvar ilink;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, the AICC for this model is 1109.54, while the AICC for the model without random respvar is 1073.25.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the fixed effect correlation between the dependent variables, conditioned on the model, there is a corrb option in both. For the model with only shared slope, that matrix looks like:&lt;/P&gt;
&lt;TABLE style="width: 33%;" border="1" width="33%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;0.1114&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;0.01082&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;0.01306&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;For the model with explicit correlations, the fixed effect correlations were&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;0.1248&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;-0.09419&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;-0.3098&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;And the G side correlations were&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;-0.04933&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;-0.00327&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;0.3108&lt;/TD&gt;
&lt;TD width="33.333333333333336%" class="lia-align-center"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;In either case, we can model the correlation between the response variables.&amp;nbsp; I chose the random slopes model as it had the smaller information criterion, and the chi**2/df was closer to 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a lot of art going on here in the interpretation, but my point is that all of the criteria posed are met in some fashion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 17:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652944#M31396</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-03T17:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652972#M31397</link>
      <description>&lt;P&gt;Much searching through the SAS site reveals that:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Multivariate logistic model&amp;nbsp;&lt;/STRONG&gt;Simultaneously models multiple responses, taking into account the correlations among all response functions.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;How to fit it:&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;In PROC CATMOD, specify the RESPONSE LOGITS; statement and multiple response variables in the MODEL statement to fit the model by using weighted least squares estimation. For example, these statements simultaneously model logits that are defined separately on three response variables:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;response logits; model x1*x2*x3 = group;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The bivariate probit model can be fit in SAS/ETS PROC QLIM:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;model y1 y2 = x / discrete;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm not a frequent CATMOD user, but with the simulated dataset previously presented, here is my attempt:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catmod data=one;
response logits;
model respvar*trt = y  /corrb design;
run;
quit;&lt;BR /&gt;&lt;BR /&gt;/*&amp;nbsp;or&amp;nbsp;possibly&amp;nbsp;this, after some transposing and renaming&amp;nbsp;&amp;nbsp;*/&lt;BR /&gt;proc catmod data=four order=data;&lt;BR /&gt;response logits;&lt;BR /&gt;model respvar1*respvar2*respvar3 = trt /corrb design noint;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Both produce output that ought to be interpretable.&amp;nbsp; The second set of statements appears to me to be closer to what is referred to above; the first set provides an analysis with treatment 3 and respvar 3 as the reference category.(categories?).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All in all, I happen to think that the GLIMMIX approach is easier to understand, but I have about 10,000 times more experience with GLIMMIX...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 19:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/652972#M31397</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-03T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/653242#M31404</link>
      <description>&lt;P&gt;Yes, that is the correct MODEL statement in CATMOD for simultaneously modeling three response variables with TRT as the predictor.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;model respvar1*respvar2*respvar3 = trt&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 14:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/653242#M31404</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-06-04T14:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/653250#M31405</link>
      <description>&lt;P&gt;I will have to try this too.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 14:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/653250#M31405</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-04T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/665802#M31731</link>
      <description>&lt;P&gt;Thank you very much. But for me, still it is not working. I have sixteen predictors and two responses.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 14:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/665802#M31731</guid>
      <dc:creator>Lijuu</dc:creator>
      <dc:date>2020-06-29T14:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate logistic regression using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/665821#M31732</link>
      <description>&lt;P&gt;It is never of any use to say "it is not working".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to know exactly what you did (show us the code) and what happened that indicates it is not working (show us the log or the output).&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 15:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-logistic-regression-using-SAS/m-p/665821#M31732</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-29T15:56:45Z</dc:date>
    </item>
  </channel>
</rss>

