<?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 Logistic regression with two random effects and repeated measures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-with-two-random-effects-and-repeated/m-p/184689#M9570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could use some help getting PROC GLIMMIX (or another SAS procedure, if more appropriate) to model some correlated binary data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is patient data, where the outcome is "yes" or "no" (did the patient have the event in question).&amp;nbsp; Other variables of interest are baseline measures (height, weight, etc.), physician conducting procedure, and hospital where physician conducted procedure.&amp;nbsp; Some patients have more than one observation, while others have only one.&amp;nbsp; So, I want to account for correlation within the same patient, within the same physician, and within the same hospital.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;proc &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=events;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; patient passes physician priors site related;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; related = priors passes postwt bmi/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=binary &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;ddfm&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=bw &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; _residual_/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=patient &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;/*patient is repeated measure*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; physician/ &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;/*physician and site are random effects*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; site/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this code, depending on which covariates I use, I sometimes get no estimates (solutions for random effects) for site and/or for physician.&amp;nbsp; This makes me wonder how valid the model is.&amp;nbsp; If I just use physician or site as a fixed effect, the model does not converge.&amp;nbsp; Also, this doesn't seem quite like the correct way to model the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know whether certain physicians are associated with events of interest and also whether certain hospitals are associated with events of interest.&amp;nbsp; This is in addition to the relationship between covariates like height, weight, and age and events of interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a more appropriate way for me to model this data?&amp;nbsp; I am not sure that the syntax I am using is actually achieving the desired model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 21:49:27 GMT</pubDate>
    <dc:creator>IndiAnna</dc:creator>
    <dc:date>2014-11-24T21:49:27Z</dc:date>
    <item>
      <title>Logistic regression with two random effects and repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-with-two-random-effects-and-repeated/m-p/184689#M9570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could use some help getting PROC GLIMMIX (or another SAS procedure, if more appropriate) to model some correlated binary data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is patient data, where the outcome is "yes" or "no" (did the patient have the event in question).&amp;nbsp; Other variables of interest are baseline measures (height, weight, etc.), physician conducting procedure, and hospital where physician conducted procedure.&amp;nbsp; Some patients have more than one observation, while others have only one.&amp;nbsp; So, I want to account for correlation within the same patient, within the same physician, and within the same hospital.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;proc &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=events;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; patient passes physician priors site related;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; related = priors passes postwt bmi/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=binary &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;ddfm&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=bw &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; _residual_/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;=patient &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;/*patient is repeated measure*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; physician/ &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;/*physician and site are random effects*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; site/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this code, depending on which covariates I use, I sometimes get no estimates (solutions for random effects) for site and/or for physician.&amp;nbsp; This makes me wonder how valid the model is.&amp;nbsp; If I just use physician or site as a fixed effect, the model does not converge.&amp;nbsp; Also, this doesn't seem quite like the correct way to model the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know whether certain physicians are associated with events of interest and also whether certain hospitals are associated with events of interest.&amp;nbsp; This is in addition to the relationship between covariates like height, weight, and age and events of interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a more appropriate way for me to model this data?&amp;nbsp; I am not sure that the syntax I am using is actually achieving the desired model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 21:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-with-two-random-effects-and-repeated/m-p/184689#M9570</guid>
      <dc:creator>IndiAnna</dc:creator>
      <dc:date>2014-11-24T21:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with two random effects and repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-with-two-random-effects-and-repeated/m-p/184690#M9571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe, the problem is that you have a site or a physician where all outcomes are equal. Then, you can not estimate the effect for that site/physician if you have site/physician as a fixed effect. But, you can estimate it when you use random effect, because you then make the assumption that the site-effect /physician-effect are normal distributed with mean zero, therefore the effect can not be too extreme. And that makes the model converge when you use random effect instead of fixed effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 19:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-with-two-random-effects-and-repeated/m-p/184690#M9571</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2014-11-26T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with two random effects and repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-with-two-random-effects-and-repeated/m-p/184691#M9572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have an indexing variable for the repeated measures on the patient?&amp;nbsp; Also, you have ''related" as the response variable, but included in the CLASS statement.&amp;nbsp; I would recommend removing it from the CLASS statement I have a couple of other changes that are recommended for convergence problems (restatements of the RANDOM statement), and I recommend using method=laplace. If so, a crude approach might be the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;proc &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=events method=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; patient passes physician priors site visitindex;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; related = priors passes postwt bmi/&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=binary &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;ddfm&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=bw &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; visitindex/&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=patient type=cs &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #008000; font-size: 12pt;"&gt;/*patient is repeated measure*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; intercept/subject=physician &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #008000; font-size: 12pt;"&gt;/*physician and site are random effects*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; intercept/subject=site &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;Other questions: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;Are physicians located within site, or might a given physician be at one or more sites?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;How many patients are included?&amp;nbsp; If this number is substantially greater than the number of physicians and sites, then the G-side implementation above (conditional approach) could be replaced with an R-side parameterization (marginal approach), such as:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;proc &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=events;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; patient passes physician priors site siteindex;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; related = priors passes postwt bmi/&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=binary &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;ddfm&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=bw &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; siteindex/residual &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;=patient type=cs &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #008000; font-size: 12pt;"&gt;/*patient is repeated measure*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; intercept/subject=physician &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #008000; font-size: 12pt;"&gt;/*physician and site are random effects*/&lt;/SPAN&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; intercept/subject=site &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;Good luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 16:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-with-two-random-effects-and-repeated/m-p/184691#M9572</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-12-02T16:23:39Z</dc:date>
    </item>
  </channel>
</rss>

