<?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 How do I preform a interrupted time series analysis using PROC GENMOD with a binary outcome? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-preform-a-interrupted-time-series-analysis-using-PROC/m-p/883350#M43718</link>
    <description>&lt;P&gt;Hi, I am trying to conduct an interrupted time series analysis looking at lab test rates (outcome) and how they changed due to the COVID shelter-in-place order in March 2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making use of this paper to guide me:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings20/4674-2020.pdf" target="_self" rel="nofollow noopener noreferrer"&gt;Time After Time: Difference-in-Differences and Interrupted Time Series Models in SAS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I have a individual level dataset of patients with multiple records per patient, one for each month they are in the cohort. From what I understand, since I am looking at testing rates, I could either model this with the individual data as a binary outcome (ie have an flag set to 1 if the patient in a particular month had a test and 0 if they did not) OR I could aggregate the patient level data so that I have the overall testing rate as a percentage per month, meaning I could then model it as a continuous outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what the difference would be for each approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what the linked paper makes it seem like, I should use the&amp;nbsp;GENMOD Procedure if I want to do it as a binary outcome, and use the&amp;nbsp;MIXED Procedure if I want to do it as an aggregated continuous outcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The paper provides an example of how to use PROC MIXED for a continuous outcome, but how would I use PROC GENMOD for a binary one? The paper says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;These proportions can be estimated using PROC GENMOD as odds or probabilities on the log scale (relative risks) or as proportions (absolute risks) for each group at each time point.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How would one specify if they want relative risks or absolute risks with PROC GENMOD? How does one interpret each?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 20:38:51 GMT</pubDate>
    <dc:creator>Fable</dc:creator>
    <dc:date>2023-07-03T20:38:51Z</dc:date>
    <item>
      <title>How do I preform a interrupted time series analysis using PROC GENMOD with a binary outcome?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-preform-a-interrupted-time-series-analysis-using-PROC/m-p/883350#M43718</link>
      <description>&lt;P&gt;Hi, I am trying to conduct an interrupted time series analysis looking at lab test rates (outcome) and how they changed due to the COVID shelter-in-place order in March 2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making use of this paper to guide me:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings20/4674-2020.pdf" target="_self" rel="nofollow noopener noreferrer"&gt;Time After Time: Difference-in-Differences and Interrupted Time Series Models in SAS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I have a individual level dataset of patients with multiple records per patient, one for each month they are in the cohort. From what I understand, since I am looking at testing rates, I could either model this with the individual data as a binary outcome (ie have an flag set to 1 if the patient in a particular month had a test and 0 if they did not) OR I could aggregate the patient level data so that I have the overall testing rate as a percentage per month, meaning I could then model it as a continuous outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what the difference would be for each approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what the linked paper makes it seem like, I should use the&amp;nbsp;GENMOD Procedure if I want to do it as a binary outcome, and use the&amp;nbsp;MIXED Procedure if I want to do it as an aggregated continuous outcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The paper provides an example of how to use PROC MIXED for a continuous outcome, but how would I use PROC GENMOD for a binary one? The paper says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;These proportions can be estimated using PROC GENMOD as odds or probabilities on the log scale (relative risks) or as proportions (absolute risks) for each group at each time point.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How would one specify if they want relative risks or absolute risks with PROC GENMOD? How does one interpret each?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 20:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-preform-a-interrupted-time-series-analysis-using-PROC/m-p/883350#M43718</guid>
      <dc:creator>Fable</dc:creator>
      <dc:date>2023-07-03T20:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preform a interrupted time series analysis using PROC GENMOD with a binary outcome?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-preform-a-interrupted-time-series-analysis-using-PROC/m-p/883575#M43736</link>
      <description>&lt;P&gt;The section of &lt;A href="https://support.sas.com/kb/61/830.html" target="_self"&gt;this note&lt;/A&gt; discussing non-identity link models might prove helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 13:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-preform-a-interrupted-time-series-analysis-using-PROC/m-p/883575#M43736</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-07-05T13:53:29Z</dc:date>
    </item>
  </channel>
</rss>

