<?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 MDC in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/MDC/m-p/907713#M45069</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use PROC MDC to assess the effects of two continuous predictors on a dichotomous variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;two continuous predictors are&amp;nbsp; "Email_Tot" and "Texting_Tot". Each participant has one value for each predictor.&lt;/P&gt;&lt;P&gt;The DV is called "Eyes" and&amp;nbsp;comprises of 36 items for which there is a wrong (0) and correct (1) answer.&amp;nbsp; Thus, each participant has 36 lines in the dataset. This is a sample of observations to give you an idea of the dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;URN Item Eyes Email_Tot Texting_Tot&lt;/P&gt;&lt;P class=""&gt;1 Q1 0 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;1 Q2 1 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;1 Q3 0 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;...&lt;/P&gt;&lt;P class=""&gt;1 Q36 1 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;2 Q1 1 5.25 5.333333333&lt;/P&gt;&lt;P class=""&gt;2 Q2 0 5.25 5.333333333&lt;/P&gt;&lt;P class=""&gt;2 Q3 1 5.25 5.333333333&lt;/P&gt;&lt;P class=""&gt;...&lt;/P&gt;&lt;P class=""&gt;2 Q36 1 5.25 5.333333333&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tested the model using PROC LOGISTIC, but I am now asked to test it using a&amp;nbsp;&lt;SPAN&gt;mixed logit model,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;with a crossed random effects structure comprising random intercepts for participants ("URN") and "Item" -- with the suggestion that I use Laplace approximation&amp;nbsp; to estimate the fixed effects parameters for the outcome&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;variable ("Eyes").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am somewhat familiar with&lt;/SPAN&gt;&amp;nbsp;PROC MIXED, so I tested the following :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed ;&lt;BR /&gt;class urn item;&lt;BR /&gt;model eyes = Email_Tot Texting_Tot &amp;nbsp;/solution cl;&lt;BR /&gt;random urn item;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me do the conceptual equivalent to this model using PROC MDC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 08:49:09 GMT</pubDate>
    <dc:creator>emaneman</dc:creator>
    <dc:date>2023-12-13T08:49:09Z</dc:date>
    <item>
      <title>MDC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MDC/m-p/907713#M45069</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use PROC MDC to assess the effects of two continuous predictors on a dichotomous variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;two continuous predictors are&amp;nbsp; "Email_Tot" and "Texting_Tot". Each participant has one value for each predictor.&lt;/P&gt;&lt;P&gt;The DV is called "Eyes" and&amp;nbsp;comprises of 36 items for which there is a wrong (0) and correct (1) answer.&amp;nbsp; Thus, each participant has 36 lines in the dataset. This is a sample of observations to give you an idea of the dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;URN Item Eyes Email_Tot Texting_Tot&lt;/P&gt;&lt;P class=""&gt;1 Q1 0 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;1 Q2 1 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;1 Q3 0 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;...&lt;/P&gt;&lt;P class=""&gt;1 Q36 1 8.25 6.666666667&lt;/P&gt;&lt;P class=""&gt;2 Q1 1 5.25 5.333333333&lt;/P&gt;&lt;P class=""&gt;2 Q2 0 5.25 5.333333333&lt;/P&gt;&lt;P class=""&gt;2 Q3 1 5.25 5.333333333&lt;/P&gt;&lt;P class=""&gt;...&lt;/P&gt;&lt;P class=""&gt;2 Q36 1 5.25 5.333333333&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tested the model using PROC LOGISTIC, but I am now asked to test it using a&amp;nbsp;&lt;SPAN&gt;mixed logit model,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;with a crossed random effects structure comprising random intercepts for participants ("URN") and "Item" -- with the suggestion that I use Laplace approximation&amp;nbsp; to estimate the fixed effects parameters for the outcome&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;variable ("Eyes").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am somewhat familiar with&lt;/SPAN&gt;&amp;nbsp;PROC MIXED, so I tested the following :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed ;&lt;BR /&gt;class urn item;&lt;BR /&gt;model eyes = Email_Tot Texting_Tot &amp;nbsp;/solution cl;&lt;BR /&gt;random urn item;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me do the conceptual equivalent to this model using PROC MDC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 08:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MDC/m-p/907713#M45069</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-12-13T08:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: MDC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MDC/m-p/908050#M45076</link>
      <description>&lt;P&gt;Whoever requested you to test "&lt;SPAN&gt;using a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mixed logit model,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;with a crossed random effects structure comprising random intercepts for participants ("URN") and "Item" -- with the suggestion that I use Laplace approximation&amp;nbsp; to estimate the fixed effects parameters for the outcome&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;variable" most likely did not have something like PROC MDC in mind. That wording almost explicitly calls for PROC GLIMMIX (at least in SAS). You can change your PROC MIXED code to something like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=have mathod=laplace ;
class urn item;
nloptions maxiter=1000 tech=nrridg;
model eyes = Email_Tot Texting_Tot  /dist= binary link=logit solution cl;
random intercept/subject=urn*item;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;If email_tot and texting_tot are identical for all items within an urn, and you are not interested in specific item means averaged over urns, then you could make this a bit easier as far as memory and runtime go. Define 'events' as the sum of Eyes for Q1 through Q36 for each urn. Define 'trials' as the number of nonmissing values for Eyes in Q1 through Q36. Use a data step to get to the following for each line (call this data set have2 for this example):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;URN events trials&amp;nbsp;Email_Tot Texting_Tot&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Code for analyzing this approach would look like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=have2 mathod=laplace ;
class urn;
nloptions maxiter=1000 tech=nrridg;
model events/trials = Email_Tot Texting_Tot  /dist= binomial link=logit solution cl;
random intercept/subject=urn;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;By summarizing within each urn, you are assuming that the Q's are independent of each other. That may be unrealistic, and why you were asked to do the crossed random effects approach.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 18:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MDC/m-p/908050#M45076</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-12-14T18:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: MDC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MDC/m-p/908485#M45089</link>
      <description>&lt;P&gt;Than you Steve! Also for the other suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very much appreciated.&lt;/P&gt;&lt;P&gt;Ema&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2023 16:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MDC/m-p/908485#M45089</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-12-16T16:08:24Z</dc:date>
    </item>
  </channel>
</rss>

