<?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 IP weights in Marginal structure models in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/IP-weights-in-Marginal-structure-models/m-p/811468#M39998</link>
    <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m learning MSM model and find a helpful paper published by SAS:&amp;nbsp;&lt;A href="https://support.sas.com/content/dam/SAS/support/en/books/analysis-of-observational-health-care-data-using-sas/61876_excerpt.pdf" target="_blank"&gt;https://support.sas.com/content/dam/SAS/support/en/books/analysis-of-observational-health-care-data-using-sas/61876_excerpt.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I was not able to follow the piece of code below on page 16:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA WEIGHTS;&lt;/P&gt;&lt;P&gt;merge weights predtrt predcen;&lt;/P&gt;&lt;P&gt;By patsc vis;&lt;/P&gt;&lt;P&gt;VWT=Predtrt*predcen;&lt;/P&gt;&lt;P&gt;If first.patsc then stabwt=VWT;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Else stabwt=VWT*DUM;&lt;/P&gt;&lt;P&gt;Retain DUM;&lt;/P&gt;&lt;P&gt;DROP DUM;&lt;/P&gt;&lt;P&gt;DUM=STABWT;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;how was DUM defined here?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 14:45:42 GMT</pubDate>
    <dc:creator>sasprog</dc:creator>
    <dc:date>2022-05-04T14:45:42Z</dc:date>
    <item>
      <title>IP weights in Marginal structure models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/IP-weights-in-Marginal-structure-models/m-p/811468#M39998</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m learning MSM model and find a helpful paper published by SAS:&amp;nbsp;&lt;A href="https://support.sas.com/content/dam/SAS/support/en/books/analysis-of-observational-health-care-data-using-sas/61876_excerpt.pdf" target="_blank"&gt;https://support.sas.com/content/dam/SAS/support/en/books/analysis-of-observational-health-care-data-using-sas/61876_excerpt.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I was not able to follow the piece of code below on page 16:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA WEIGHTS;&lt;/P&gt;&lt;P&gt;merge weights predtrt predcen;&lt;/P&gt;&lt;P&gt;By patsc vis;&lt;/P&gt;&lt;P&gt;VWT=Predtrt*predcen;&lt;/P&gt;&lt;P&gt;If first.patsc then stabwt=VWT;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Else stabwt=VWT*DUM;&lt;/P&gt;&lt;P&gt;Retain DUM;&lt;/P&gt;&lt;P&gt;DROP DUM;&lt;/P&gt;&lt;P&gt;DUM=STABWT;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;how was DUM defined here?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 14:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/IP-weights-in-Marginal-structure-models/m-p/811468#M39998</guid>
      <dc:creator>sasprog</dc:creator>
      <dc:date>2022-05-04T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: IP weights in Marginal structure models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/IP-weights-in-Marginal-structure-models/m-p/811515#M40000</link>
      <description>&lt;P&gt;The variable DUM has the same the value as STABWT when the RUN statement is encountered.&amp;nbsp; But the DROP statement keeps it out of the WEIGHTS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, DUM is retained, meaning each observation starts out with the value in DUM generated in the preceding observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when the "&lt;EM&gt;&lt;STRONG&gt;else stabwt=vwt*dum;&lt;/STRONG&gt;&lt;/EM&gt;" statement is executed, it is actually calculating &lt;EM&gt;&lt;STRONG&gt;stabwt&lt;/STRONG&gt;&lt;/EM&gt; as the product of VWT from the current observation and STABWT from the prior observation.&amp;nbsp; EXCEPT when the current obs is the beginning of a new &lt;EM&gt;&lt;STRONG&gt;patsc&lt;/STRONG&gt;&lt;/EM&gt; group, when the "&lt;EM&gt;&lt;STRONG&gt;stabwt=VWT;&lt;/STRONG&gt;&lt;/EM&gt;" statement is executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, STABWT=VWT*lag(STABWT) except when starting a new patsc.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 17:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/IP-weights-in-Marginal-structure-models/m-p/811515#M40000</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-05-04T17:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: IP weights in Marginal structure models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/IP-weights-in-Marginal-structure-models/m-p/811543#M40006</link>
      <description>Thank you for explain, very helpful.</description>
      <pubDate>Wed, 04 May 2022 19:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/IP-weights-in-Marginal-structure-models/m-p/811543#M40006</guid>
      <dc:creator>sasprog</dc:creator>
      <dc:date>2022-05-04T19:21:52Z</dc:date>
    </item>
  </channel>
</rss>

