<?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 Proc Genmod GEE datatable arangement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-datatable-arangement/m-p/73232#M3525</link>
    <description>I have repeated measures from the same individuals, and I need to account for temporal correlations...my outcome measure is continuous (daily score on a withdrawal scale over three weeks - including 1 week of baseline "smoking as usual" and 2 weeks of abstinence) - and I have been advised that a GEE analysis is appropriate. I see that Genmod does GEE - but I'm not sure if it will take my continuous outcome data - all the examples I can find are for logistic regression type analysis with categorical outcome data....&lt;BR /&gt;
&lt;BR /&gt;
I can set my dataset up for a repeated measures analysis in Proc Mixed ok - its simply stacked with a column for day - a column for phase (baseline or withdrawal week 1 or 2) - and my outcome variable (withdrawal score). Then you just say:&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data = data&lt;BR /&gt;
class subject_id phase&lt;BR /&gt;
model symptom_score = day phase day*phase&lt;BR /&gt;
repeated subject = id&lt;BR /&gt;
run&lt;BR /&gt;
&lt;BR /&gt;
But it seems from the examples I can see that proc genmod does not want the data in a stacked format - but instead with each repeated measure (i.e. each day of symptom data in my example) in its own column. However with this format - I don't understand how you specify the outcome variable (i.e. in the example above - there is just 1 column with all the withdrawal scores in it - but now it would be 21 columns if I dont stack my data.....I don't understand how all the day column could have the same name and thus be specified as a single variable for the GEE analysis outcome.&lt;BR /&gt;
&lt;BR /&gt;
Here is my GEE code:&lt;BR /&gt;
&lt;BR /&gt;
proc genmod&lt;BR /&gt;
data= Cws.Score_data;&lt;BR /&gt;
/*Marker2 = days;Marker3 = Phase*/&lt;BR /&gt;
class Subject_id Marker2;&lt;BR /&gt;
model I_had_mood_swings = Marker2 /type3&lt;BR /&gt;
link=identity covb;&lt;BR /&gt;
repeated subject=Subject_id&lt;BR /&gt;
/type=exch maxiter=25000 covb corrb;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Any help greatfully received.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Davo</description>
    <pubDate>Sun, 04 Apr 2010 05:51:53 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-04-04T05:51:53Z</dc:date>
    <item>
      <title>Proc Genmod GEE datatable arangement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-datatable-arangement/m-p/73232#M3525</link>
      <description>I have repeated measures from the same individuals, and I need to account for temporal correlations...my outcome measure is continuous (daily score on a withdrawal scale over three weeks - including 1 week of baseline "smoking as usual" and 2 weeks of abstinence) - and I have been advised that a GEE analysis is appropriate. I see that Genmod does GEE - but I'm not sure if it will take my continuous outcome data - all the examples I can find are for logistic regression type analysis with categorical outcome data....&lt;BR /&gt;
&lt;BR /&gt;
I can set my dataset up for a repeated measures analysis in Proc Mixed ok - its simply stacked with a column for day - a column for phase (baseline or withdrawal week 1 or 2) - and my outcome variable (withdrawal score). Then you just say:&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data = data&lt;BR /&gt;
class subject_id phase&lt;BR /&gt;
model symptom_score = day phase day*phase&lt;BR /&gt;
repeated subject = id&lt;BR /&gt;
run&lt;BR /&gt;
&lt;BR /&gt;
But it seems from the examples I can see that proc genmod does not want the data in a stacked format - but instead with each repeated measure (i.e. each day of symptom data in my example) in its own column. However with this format - I don't understand how you specify the outcome variable (i.e. in the example above - there is just 1 column with all the withdrawal scores in it - but now it would be 21 columns if I dont stack my data.....I don't understand how all the day column could have the same name and thus be specified as a single variable for the GEE analysis outcome.&lt;BR /&gt;
&lt;BR /&gt;
Here is my GEE code:&lt;BR /&gt;
&lt;BR /&gt;
proc genmod&lt;BR /&gt;
data= Cws.Score_data;&lt;BR /&gt;
/*Marker2 = days;Marker3 = Phase*/&lt;BR /&gt;
class Subject_id Marker2;&lt;BR /&gt;
model I_had_mood_swings = Marker2 /type3&lt;BR /&gt;
link=identity covb;&lt;BR /&gt;
repeated subject=Subject_id&lt;BR /&gt;
/type=exch maxiter=25000 covb corrb;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Any help greatfully received.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Davo</description>
      <pubDate>Sun, 04 Apr 2010 05:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-datatable-arangement/m-p/73232#M3525</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-04T05:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod GEE datatable arangement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-datatable-arangement/m-p/73233#M3526</link>
      <description>PROC GENMOD uses the same data arrangement as PROC MIXED -- one response variable with multiple observations containing the repeated measurements of each subject.  This is illustrated in the examples in the GENMOD documentation:&lt;BR /&gt;
&lt;BR /&gt;
   9.1: &lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/statug.hlp/genmod_index.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/statug.hlp/genmod_index.htm&lt;/A&gt;&lt;BR /&gt;
   9.2: &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/genmod_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/genmod_toc.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
You can use any of the response distributions offered by the DIST= option including the continuous distributions such as normal, gamma, etc.</description>
      <pubDate>Thu, 08 Apr 2010 14:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-datatable-arangement/m-p/73233#M3526</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2010-04-08T14:23:26Z</dc:date>
    </item>
  </channel>
</rss>

