<?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: How to create a mixed effects model with PROC MIXED with pairwise comparisons between individual in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-a-mixed-effects-model-with-PROC-MIXED-with/m-p/816183#M40291</link>
    <description>&lt;P&gt;Here are some things to consider:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears that your response variable (Distance? Job?) is multinomial, as is the predictor.&amp;nbsp; That means that PROC MIXED is probably the wrong method for any analysis, as it assumes that the distribution of errors is normal.&amp;nbsp; You may want to look at other mixed model procedures (GLIMMIX), or generalized linear model/estimating equation procedures (GENMOD, GEE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the role of ID1 and ID2?&amp;nbsp; Is there ever a case where the values for these two variables are identical? Are there more than 4 levels? Would you consider these as predictors?&amp;nbsp; If so, the association between the two could be measured by including an interaction term in the model.&amp;nbsp; If not predictors, would you consider them random effects, such as blocks?&amp;nbsp; Since ID levels B and C appear in both ID variables, this may lead to an inability to estimate the random effects unless you have a lot of levels and observations per level.&amp;nbsp; If there is only a small number of levels, you might be better off considering them fixed effects, in which case you might not need a mixed model at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 12:53:07 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2022-06-02T12:53:07Z</dc:date>
    <item>
      <title>How to create a mixed effects model with PROC MIXED with pairwise comparisons between individuals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-a-mixed-effects-model-with-PROC-MIXED-with/m-p/816129#M40290</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to look at the association between individuals having the same occupation and their distance from each other in a dataset.&amp;nbsp; A sample of this data set is below:&lt;/P&gt;&lt;P&gt;Job: 0 = farmer, 1 = fisher, 2 = chef&lt;/P&gt;&lt;P&gt;Distance: 0 = low, 1 = medium, 2 = high&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Pair&lt;/TD&gt;&lt;TD&gt;ID1&lt;/TD&gt;&lt;TD&gt;ID2&lt;/TD&gt;&lt;TD&gt;Job&lt;/TD&gt;&lt;TD&gt;Distance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;However, because individuals occur in more than one sample pair, I am worried the samples will be correlated in certain ways. I want to use PROC MIXED to model the association between Job and Distance taking into account the IDs found in each pair (ie sample A appears in Pair 1, 2, and 3, while sample B occurs in Pair 1, 4, and 5).&amp;nbsp; I am not sure how to proceed.&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 01:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-a-mixed-effects-model-with-PROC-MIXED-with/m-p/816129#M40290</guid>
      <dc:creator>SAS49</dc:creator>
      <dc:date>2022-06-02T01:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a mixed effects model with PROC MIXED with pairwise comparisons between individual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-a-mixed-effects-model-with-PROC-MIXED-with/m-p/816183#M40291</link>
      <description>&lt;P&gt;Here are some things to consider:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears that your response variable (Distance? Job?) is multinomial, as is the predictor.&amp;nbsp; That means that PROC MIXED is probably the wrong method for any analysis, as it assumes that the distribution of errors is normal.&amp;nbsp; You may want to look at other mixed model procedures (GLIMMIX), or generalized linear model/estimating equation procedures (GENMOD, GEE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the role of ID1 and ID2?&amp;nbsp; Is there ever a case where the values for these two variables are identical? Are there more than 4 levels? Would you consider these as predictors?&amp;nbsp; If so, the association between the two could be measured by including an interaction term in the model.&amp;nbsp; If not predictors, would you consider them random effects, such as blocks?&amp;nbsp; Since ID levels B and C appear in both ID variables, this may lead to an inability to estimate the random effects unless you have a lot of levels and observations per level.&amp;nbsp; If there is only a small number of levels, you might be better off considering them fixed effects, in which case you might not need a mixed model at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 12:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-a-mixed-effects-model-with-PROC-MIXED-with/m-p/816183#M40291</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-06-02T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a mixed effects model with PROC MIXED with pairwise comparisons between individual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-a-mixed-effects-model-with-PROC-MIXED-with/m-p/816200#M40292</link>
      <description>Hi, thanks for the response. There are 3 levels in both my exposure (Job) and response variable (Distance). As for the role of ID1 and ID2. They are each individual, and I have a total of 100 individuals or values that appear in ID1 and ID2. Each individual is then compared with each individual besides itself, so I have 5,050 total rows each with a number 1-5,050 in the Pair column. So the IDs within ID1 and ID2 are never identical on a given row, but most variables occur in both columns and the different IDs occur multiple times within a column. Is there an appropriate way to account for the fact that individuals are included in multiple pairs using a PROC Method?</description>
      <pubDate>Thu, 02 Jun 2022 14:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-create-a-mixed-effects-model-with-PROC-MIXED-with/m-p/816200#M40292</guid>
      <dc:creator>SAS49</dc:creator>
      <dc:date>2022-06-02T14:43:24Z</dc:date>
    </item>
  </channel>
</rss>

