<?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: Inverse probability of censoring weight help in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Inverse-probability-of-censoring-weight-help/m-p/966552#M48576</link>
    <description>&lt;P&gt;I'm not sure it's reasonable to expect that the model is going to balance the cohorts across all time points, especially at later points where the data (presumably) become noisier (and remember there's nothing magic about the 0.1 SMD threshold).&amp;nbsp; You could try adding interaction terms to your denominator model (in SAS, you can, for example, request all 2-way interactions between a set of variables like this (in your MODEL statement):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model censor = cov1 | cov2 | cov3 | cov4 | cov5&amp;nbsp;@2 / dist=binomial link=logit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, have you tried trimming / stabilizing the weights?&amp;nbsp; I know when I've done this for longitudinal data, where each weight is affected by all prior weights for a person, you can get very extreme values for later timepoints.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 10:14:27 GMT</pubDate>
    <dc:creator>quickbluefish</dc:creator>
    <dc:date>2025-05-15T10:14:27Z</dc:date>
    <item>
      <title>Inverse probability of censoring weight help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Inverse-probability-of-censoring-weight-help/m-p/966459#M48566</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a target trial emulation comparing drug A to drug B using the clone censor weight approach. each individual is cloned twice and assigned to either drug A or drug B. they are censored if they deviate from their assigned strategy. grace period to start either drug is 6 months from date of diagnosis (time 0). individuals are followed up for up to 2 years after date of diagnosis. the dataset is structured so that each row represents one month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am stuck on the inverse probability of censoring weight step. I am finding the two groups are not balanced at month=12 (exposure_final=0 -&amp;gt; drug B, exposure_final=1 -&amp;gt; drug A) with SMD &amp;gt;0.1. Could someone advise if there is an error in my SAS coding?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;*denominator model;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=example descending;&lt;/P&gt;&lt;P&gt;by exposure_final;&lt;/P&gt;&lt;P&gt;class month (ref=”6”);&lt;BR /&gt;model censor = covariate1 covariate2 covariate3 covariate4 covariate5 / dist=binomial link=logit;&lt;/P&gt;&lt;P&gt;output out=censor_den p=den;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*numerator model;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=censor_den descending;&lt;/P&gt;&lt;P&gt;by exposure_final;&lt;/P&gt;&lt;P&gt;class month (ref=”6”);&lt;BR /&gt;model censor = month / dist=binomial link=logit;&lt;/P&gt;&lt;P&gt;output out=censor_num p=num;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=censor_num; by id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example_final;&lt;BR /&gt;set censor_num;&lt;/P&gt;&lt;P&gt;retain n d;&lt;/P&gt;&lt;P&gt;by id;&lt;/P&gt;&lt;P&gt;if first.id then do;&lt;/P&gt;&lt;P&gt;n=1;&lt;/P&gt;&lt;P&gt;d=1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;n=num*n;&lt;/P&gt;&lt;P&gt;d=den*d;&lt;/P&gt;&lt;P&gt;wt=n/d;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 04:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Inverse-probability-of-censoring-weight-help/m-p/966459#M48566</guid>
      <dc:creator>mecramarathon</dc:creator>
      <dc:date>2025-05-14T04:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse probability of censoring weight help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Inverse-probability-of-censoring-weight-help/m-p/966552#M48576</link>
      <description>&lt;P&gt;I'm not sure it's reasonable to expect that the model is going to balance the cohorts across all time points, especially at later points where the data (presumably) become noisier (and remember there's nothing magic about the 0.1 SMD threshold).&amp;nbsp; You could try adding interaction terms to your denominator model (in SAS, you can, for example, request all 2-way interactions between a set of variables like this (in your MODEL statement):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model censor = cov1 | cov2 | cov3 | cov4 | cov5&amp;nbsp;@2 / dist=binomial link=logit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, have you tried trimming / stabilizing the weights?&amp;nbsp; I know when I've done this for longitudinal data, where each weight is affected by all prior weights for a person, you can get very extreme values for later timepoints.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Inverse-probability-of-censoring-weight-help/m-p/966552#M48576</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-05-15T10:14:27Z</dc:date>
    </item>
  </channel>
</rss>

