<?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 to graph lines representing counterfactuals? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-graph-lines-representing-counterfactuals/m-p/789567#M22489</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmc_NYC_0-1641925432361.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67326iDC7C9EFF28D59CC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmc_NYC_0-1641925432361.png" alt="cmc_NYC_0-1641925432361.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi all, I'm trying to create a graphical display with similar notation to the one above (taken from Warton 2020) from an ITS analysis that was run for me. I have mean distress scores by year which I've graphed in the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this might work to share.png" style="width: 570px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67328i8B1CA9360349F230/image-size/large?v=v2&amp;amp;px=999" role="button" title="this might work to share.png" alt="this might work to share.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the code I used to generate graphic above:&lt;/P&gt;&lt;P&gt;Data AimII_Table2;&lt;BR /&gt;input TimeElapsed Year Distress Event $;&lt;BR /&gt;datalines;&lt;BR /&gt;0 2011 3.7339771 Before&lt;BR /&gt;1 2012 3.8688698 Before&lt;BR /&gt;2 2013 3.8669976 Before&lt;BR /&gt;3 2014 3.5876379 Before&lt;BR /&gt;4 2015 3.64495 Before&lt;BR /&gt;5 2016 3.4850532 Before&lt;BR /&gt;5 2017 3.4850532 Before&lt;BR /&gt;6 2017 3.6610487 After&lt;BR /&gt;7 2018 3.5467001 After&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Proc sgplot data=AimII_Table2;&lt;BR /&gt;Xaxis Values=(2011 TO 2018);&lt;BR /&gt;Yaxis Values=(1 TO 25);&lt;BR /&gt;reg x=Year y=Distress/group=Event ;&lt;BR /&gt;refline 2017 / axis=x label='Event' Transparency = 0.5;&lt;BR /&gt;Title'Distress over Time';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have coefficients from the ITS for time, exposure to event, and their interaction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does one code the notation showing:&lt;/P&gt;&lt;P&gt;1) counterfactual lines&lt;/P&gt;&lt;P&gt;2) the estimates for the betas for time, intervention, and interaction term?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 18:43:59 GMT</pubDate>
    <dc:creator>cmc_NYC</dc:creator>
    <dc:date>2022-01-11T18:43:59Z</dc:date>
    <item>
      <title>How to graph lines representing counterfactuals?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-graph-lines-representing-counterfactuals/m-p/789567#M22489</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmc_NYC_0-1641925432361.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67326iDC7C9EFF28D59CC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmc_NYC_0-1641925432361.png" alt="cmc_NYC_0-1641925432361.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi all, I'm trying to create a graphical display with similar notation to the one above (taken from Warton 2020) from an ITS analysis that was run for me. I have mean distress scores by year which I've graphed in the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this might work to share.png" style="width: 570px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67328i8B1CA9360349F230/image-size/large?v=v2&amp;amp;px=999" role="button" title="this might work to share.png" alt="this might work to share.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the code I used to generate graphic above:&lt;/P&gt;&lt;P&gt;Data AimII_Table2;&lt;BR /&gt;input TimeElapsed Year Distress Event $;&lt;BR /&gt;datalines;&lt;BR /&gt;0 2011 3.7339771 Before&lt;BR /&gt;1 2012 3.8688698 Before&lt;BR /&gt;2 2013 3.8669976 Before&lt;BR /&gt;3 2014 3.5876379 Before&lt;BR /&gt;4 2015 3.64495 Before&lt;BR /&gt;5 2016 3.4850532 Before&lt;BR /&gt;5 2017 3.4850532 Before&lt;BR /&gt;6 2017 3.6610487 After&lt;BR /&gt;7 2018 3.5467001 After&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Proc sgplot data=AimII_Table2;&lt;BR /&gt;Xaxis Values=(2011 TO 2018);&lt;BR /&gt;Yaxis Values=(1 TO 25);&lt;BR /&gt;reg x=Year y=Distress/group=Event ;&lt;BR /&gt;refline 2017 / axis=x label='Event' Transparency = 0.5;&lt;BR /&gt;Title'Distress over Time';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have coefficients from the ITS for time, exposure to event, and their interaction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does one code the notation showing:&lt;/P&gt;&lt;P&gt;1) counterfactual lines&lt;/P&gt;&lt;P&gt;2) the estimates for the betas for time, intervention, and interaction term?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-graph-lines-representing-counterfactuals/m-p/789567#M22489</guid>
      <dc:creator>cmc_NYC</dc:creator>
      <dc:date>2022-01-11T18:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph lines representing counterfactuals?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-graph-lines-representing-counterfactuals/m-p/790327#M22498</link>
      <description>hey, I am a newcomer and this is really interesting, can I get some more details about it so that I can completely learn these. thanks!</description>
      <pubDate>Sat, 15 Jan 2022 09:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-graph-lines-representing-counterfactuals/m-p/790327#M22498</guid>
      <dc:creator>rapheal21</dc:creator>
      <dc:date>2022-01-15T09:06:11Z</dc:date>
    </item>
  </channel>
</rss>

