<?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: Design with repeated measures and nesting in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/936483#M46710</link>
    <description>You could combine these two variable into ONE variable(SubjectId). and feed it into PROC GEE.&lt;BR /&gt;&lt;BR /&gt;SubjectID=catx('|',State,Child);&lt;BR /&gt;&lt;BR /&gt;And an alternative way is : (Check GEE's doc example)&lt;BR /&gt;proc gee data=Resp descend;&lt;BR /&gt;class ID Treatment Center Sex Baseline;&lt;BR /&gt;model Outcome=Treatment Center Sex Age Baseline /&lt;BR /&gt;dist=bin link=logit;&lt;BR /&gt;repeated subject=ID(Center) / corr=exch corrw;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;change "subject=ID(Center)" into&lt;BR /&gt;"subject=Child(State)"</description>
    <pubDate>Sat, 20 Jul 2024 07:03:00 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-07-20T07:03:00Z</dc:date>
    <item>
      <title>Design with repeated measures and nesting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/936436#M46703</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have about 60,000 records for children in 12 states.&amp;nbsp; Some children have multiple records.&amp;nbsp; Some of just one record.&lt;/P&gt;&lt;P&gt;I have a binary dependent variable.&amp;nbsp; I am trying to estimate a model that takes into account the fact that the records for the same child are correlated and that children are nested within states.&amp;nbsp; I know how to estimate models with GEE to deal with the correlation but am not sure how to deal with the nesting.&amp;nbsp; The data look like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0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gt;&lt;TD&gt;0&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;7&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;3&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 19 Jul 2024 20:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/936436#M46703</guid>
      <dc:creator>adworsky</dc:creator>
      <dc:date>2024-07-19T20:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Design with repeated measures and nesting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/936483#M46710</link>
      <description>You could combine these two variable into ONE variable(SubjectId). and feed it into PROC GEE.&lt;BR /&gt;&lt;BR /&gt;SubjectID=catx('|',State,Child);&lt;BR /&gt;&lt;BR /&gt;And an alternative way is : (Check GEE's doc example)&lt;BR /&gt;proc gee data=Resp descend;&lt;BR /&gt;class ID Treatment Center Sex Baseline;&lt;BR /&gt;model Outcome=Treatment Center Sex Age Baseline /&lt;BR /&gt;dist=bin link=logit;&lt;BR /&gt;repeated subject=ID(Center) / corr=exch corrw;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;change "subject=ID(Center)" into&lt;BR /&gt;"subject=Child(State)"</description>
      <pubDate>Sat, 20 Jul 2024 07:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/936483#M46710</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-20T07:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Design with repeated measures and nesting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/936494#M46715</link>
      <description>&lt;P&gt;First, PROC GEE is a newer procedure specifically for fitting the GEE model and is the recommended procedure when fitting that model. Then see &lt;A href="http://support.sas.com/kb/24200" target="_self"&gt;this note&lt;/A&gt; on specifying the TYPE= correlation structure. As mentioned there, the GEE method is robust to misspecifying the correlation structure, so if you believe that all measurements within STATE are correlated (in varying degrees), you could simply specify SUBJECT=STATE and TYPE=EXCH. That said, the Alternating Logistic Regressions (ALR) method available in PROC GEE (and GENMOD), in which you model the log odds ratio among pairs of measurements, allows nested structures. Using the ALR example in the GENMOD documentation, the following adds a subcluster variable to each cluster with each cluster of size 4 now containing 2 subclusters of size 2. The ALR model allows for two log odds ratios to be estimated - one for within the subclusters and one for between the subclusters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data resp; set resp;
  if visit in (1,2) then subclusID=1; else subclusID=2;
  run;
proc gee data=resp;
   class id treatment(ref="P") center(ref="1") sex(ref="M")
      baseline(ref="0") subclusID;
   model outcome(event='1')=treatment center sex age baseline / dist=bin;
   repeated  subject=id(center) / logor=nest1 subcluster=subclusID;
   run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another alternative approach might be to fit a GEE-like marginal model using PROC GLIMMIX using an appropriate structure.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2024 16:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/936494#M46715</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-07-20T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Design with repeated measures and nesting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/952101#M47638</link>
      <description>Thank you.</description>
      <pubDate>Wed, 27 Nov 2024 20:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Design-with-repeated-measures-and-nesting/m-p/952101#M47638</guid>
      <dc:creator>adworsky</dc:creator>
      <dc:date>2024-11-27T20:59:50Z</dc:date>
    </item>
  </channel>
</rss>

