<?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: 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/883998#M43783</link>
    <description>&lt;P&gt;This is a case where the MIXED approach can be generalized (see what I did there) by using GLIMMIX with a binomial distribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 18:11:12 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2023-07-07T18:11:12Z</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/883278#M43703</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 03:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-preform-a-interrupted-time-series-analysis-using-PROC/m-p/883278#M43703</guid>
      <dc:creator>Fable</dc:creator>
      <dc:date>2023-07-03T03:24:56Z</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/883998#M43783</link>
      <description>&lt;P&gt;This is a case where the MIXED approach can be generalized (see what I did there) by using GLIMMIX with a binomial distribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 18:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-preform-a-interrupted-time-series-analysis-using-PROC/m-p/883998#M43783</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-07-07T18:11:12Z</dc:date>
    </item>
  </channel>
</rss>

