<?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: Model for Correlated data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720562#M34885</link>
    <description>Is there a way to replicate this using proc glimmix instead?</description>
    <pubDate>Fri, 19 Feb 2021 20:19:02 GMT</pubDate>
    <dc:creator>analyst_work</dc:creator>
    <dc:date>2021-02-19T20:19:02Z</dc:date>
    <item>
      <title>Model for Correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720193#M34858</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to decide which model would best be suited for my study. I have two continuous variables A (independent) and B (response). We are measuring these for 20 hospitals for each month across the year 2020 - so each hospital has 12 values for each month for each variable. I am currently using proc genmod with the repeated statement to account for clustering within each hospital. Wondering what might be a good way to account for time in this case? Sharing my code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data = dataset;&lt;/P&gt;&lt;P&gt;class hospid;&lt;/P&gt;&lt;P&gt;model B = A ;&lt;/P&gt;&lt;P&gt;repeated subject = hospid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720193#M34858</guid>
      <dc:creator>analyst_work</dc:creator>
      <dc:date>2021-02-18T14:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Model for Correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720229#M34859</link>
      <description>&lt;P&gt;You can specify your Month variable in the WITHIN= option in the REPEATED statement and then, if desired, use a correlation structure such as TYPE=AR that allow the correlation strength to diminish with time.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 15:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720229#M34859</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-18T15:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Model for Correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720562#M34885</link>
      <description>Is there a way to replicate this using proc glimmix instead?</description>
      <pubDate>Fri, 19 Feb 2021 20:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720562#M34885</guid>
      <dc:creator>analyst_work</dc:creator>
      <dc:date>2021-02-19T20:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Model for Correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720602#M34890</link>
      <description>proc glimmix data = dataset;&lt;BR /&gt;class hospid month;&lt;BR /&gt;model B = A ;&lt;BR /&gt;random month / residual subject = hospid type=ar(1);&lt;BR /&gt;run;</description>
      <pubDate>Fri, 19 Feb 2021 23:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/720602#M34890</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-02-19T23:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Model for Correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/721255#M34935</link>
      <description>Thanks! One follow-up question - my variable A is a continuous variable, and will not appear  in the class statement. How do I use lsmeans (or something similar) to get the rate estimates in this case? Thanks!</description>
      <pubDate>Tue, 23 Feb 2021 13:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/721255#M34935</guid>
      <dc:creator>analyst_work</dc:creator>
      <dc:date>2021-02-23T13:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Model for Correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/721347#M34942</link>
      <description>&lt;P&gt;What exactly do you want to estimate for A?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depends on what you want to estimate, you might use the S option in the MODEL statement to get the slope estimate for A, or use the ESTIMATE statement. For example,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc glimmix data = dataset;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class hospid month;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model B = A ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;random month / residual subject = hospid type=ar(1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;estimate 'response when A=5' int 1 A 5;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 17:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-for-Correlated-data/m-p/721347#M34942</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-02-23T17:55:00Z</dc:date>
    </item>
  </channel>
</rss>

