<?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 Bivariate probit model with random effects in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-probit-model-with-random-effects/m-p/320598#M16926</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to estimate a bivariate probit&amp;nbsp;model with&amp;nbsp;random effects.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my data, I have two binary outcomes&amp;nbsp;(d and p) and only two continues predictors (x and y). d is a function of x and p is a function of y. I also have a variable called group that has two levels: one and two. the observations in each of the two groups are correlated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I ignore the group and correlation between the variables, I can use proc qlim&amp;nbsp;as the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc qlim data=test;
     model d  = x;
     model p  = y;
endogenous d p ~ discrete;	
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But how can I model the&amp;nbsp;random effects and consider for the fact that observations within the same groups are correlated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 19:47:31 GMT</pubDate>
    <dc:creator>niam</dc:creator>
    <dc:date>2016-12-21T19:47:31Z</dc:date>
    <item>
      <title>Bivariate probit model with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-probit-model-with-random-effects/m-p/320598#M16926</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to estimate a bivariate probit&amp;nbsp;model with&amp;nbsp;random effects.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my data, I have two binary outcomes&amp;nbsp;(d and p) and only two continues predictors (x and y). d is a function of x and p is a function of y. I also have a variable called group that has two levels: one and two. the observations in each of the two groups are correlated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I ignore the group and correlation between the variables, I can use proc qlim&amp;nbsp;as the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc qlim data=test;
     model d  = x;
     model p  = y;
endogenous d p ~ discrete;	
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But how can I model the&amp;nbsp;random effects and consider for the fact that observations within the same groups are correlated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-probit-model-with-random-effects/m-p/320598#M16926</guid>
      <dc:creator>niam</dc:creator>
      <dc:date>2016-12-21T19:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate probit model with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-probit-model-with-random-effects/m-p/321326#M16999</link>
      <description>&lt;P&gt;You may wish to consider PROC GLIMMIX, with two dependent variables. &amp;nbsp;Multiple dependent variables can be handled using the dist=byobs() syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can recast your model as something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=hernio_uv;
   class dist;
   model response(event='1') = dist dist*age dist*OKstatus /
                    noint s dist=byobs(dist);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then you will be well on your way. &amp;nbsp;For more info, check the GLIMMIX documentation, and in particular the section following DISTRIBUTION=&lt;EM&gt;keyword.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 19:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bivariate-probit-model-with-random-effects/m-p/321326#M16999</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-12-27T19:37:34Z</dc:date>
    </item>
  </channel>
</rss>

