<?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: Repeated measured regression analysis (Mixed model) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repeated-measured-regression-analysis-Mixed-model/m-p/283994#M57929</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm not so skilled in mixed modeling, but I think if your model is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;model post_pain= age sex pre_pain ligament_length&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;than you must have 100 observation, each for a patient, no repeats, and you are using pre_pain as a regular regressor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think it is a valid model, and in this case you don't need a mixed model. Just use prog glm. You will look at the p-value of&amp;nbsp;ligament_length.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to model it as repeated measures, I would start with this example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_examples02.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_examples02.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's just a technical detail, but you will need to restructure your dataset to have 200 observations, you will drop&amp;nbsp;post_pain,&amp;nbsp;pre_pain, instead you will have PatientID, PrePost, Pain.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Proc mixed is for linear models where &lt;STRIKE&gt;response variable&lt;/STRIKE&gt;&amp;nbsp;random term is normaly distributed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With proc glimmix you are able to model other distributions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Greg&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2016 09:32:02 GMT</pubDate>
    <dc:creator>gergely_batho</dc:creator>
    <dc:date>2016-07-13T09:32:02Z</dc:date>
    <item>
      <title>Repeated measured regression analysis (Mixed model)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeated-measured-regression-analysis-Mixed-model/m-p/247210#M46315</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Need a hand doing this with SAS:&lt;/P&gt;
&lt;P&gt;Here is the senario: I have 100 patients who underwent surgery for pain relief, the surgery would shorten a ligament by x centemeters&lt;/P&gt;
&lt;P&gt;Pain is measured pre-op (pre_pain) and 1 year post-op (post_pain), so we have a repeated measure sitiation.&lt;/P&gt;
&lt;P&gt;The theory is: Is the length of the removed ligament related to pain 1 year after surgery?&lt;/P&gt;
&lt;P&gt;Variables I want to correct for: Age and sex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So &amp;nbsp;my understanding is that this needs to be done through mixed modelling to controll for individual patient variation.&lt;/P&gt;
&lt;P&gt;somthing like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model post_pain= age sex pre_pain ligament_length (in a mixed model )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked alot in the internet but there is not much written on how to do this with SAS, som suggest GLIMMIX, other MIXED etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would really appreciate your help.&lt;/P&gt;
&lt;P&gt;Note: Data is in long form&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;AM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 14:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeated-measured-regression-analysis-Mixed-model/m-p/247210#M46315</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-02-01T14:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated measured regression analysis (Mixed model)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeated-measured-regression-analysis-Mixed-model/m-p/283994#M57929</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm not so skilled in mixed modeling, but I think if your model is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;model post_pain= age sex pre_pain ligament_length&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;than you must have 100 observation, each for a patient, no repeats, and you are using pre_pain as a regular regressor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think it is a valid model, and in this case you don't need a mixed model. Just use prog glm. You will look at the p-value of&amp;nbsp;ligament_length.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to model it as repeated measures, I would start with this example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_examples02.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_examples02.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's just a technical detail, but you will need to restructure your dataset to have 200 observations, you will drop&amp;nbsp;post_pain,&amp;nbsp;pre_pain, instead you will have PatientID, PrePost, Pain.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Proc mixed is for linear models where &lt;STRIKE&gt;response variable&lt;/STRIKE&gt;&amp;nbsp;random term is normaly distributed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With proc glimmix you are able to model other distributions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Greg&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 09:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeated-measured-regression-analysis-Mixed-model/m-p/283994#M57929</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2016-07-13T09:32:02Z</dc:date>
    </item>
  </channel>
</rss>

