<?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: Propensity score and IPW with imputed data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/928877#M46275</link>
    <description>&lt;P&gt;In order to combine any statistics from multiply imputed data you need the point estimate and a standard error.&amp;nbsp; Do you know how the standard errors for standardized mean differences and synthetic Ns would be calculated?&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 21:05:08 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2024-05-17T21:05:08Z</dc:date>
    <item>
      <title>Propensity score and IPW with imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/928799#M46266</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the codes at below to estimate the propensity score and logistic regression for inverse probability weighting.&lt;/P&gt;
&lt;P&gt;How can I test the balance of the standardised mean differences before and after adjustment?&lt;/P&gt;
&lt;P&gt;How to obtain the synthetic n values derived from weights?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/***CREATING PROPENSITY SCORES********/

proc sort data=tab_imput; by _imputation_;run;
proc logistic data=tab_imput desc;
class var1 var2 var3 var4 var5 var6 var7 var8 var9 ;
model mut= var var1 var2 var3 var4 var5 var6 var7 var8 var9/link=logit rsquare ;
output out=denom p=d;
by _imputation_;
run;
		
proc logistic data=tab_imput desc;
model mut=;
output out=num p=n;
by _imputation_;
run;

proc sort data=tab_imput ;
by anonymat;run;
proc sort data=denom;
by anonymat;run;
proc sort data=num;
by anonymat;run;

data tab_imput_pscore;
merge tab_imput denom num;
by anonymat;
if mut=1 then uw=1/d; else if mut=0 then uw=1/(1-d);
if mut=1 then sw=n/d; else if mut=0 then sw=(1-n)/(1-d);
run;
proc sort data=tab_imput_pscore; by _imputation_;run;

/***PROPENSITY SCORE WEIGHTED OUTCOME MODEL****/

ods graphics on;
proc logistic data=tab_imput_pscore desc; 
	class mut(ref='no') / param=reference ; 
	model vif (event='no') = mut/ rsquare clodds=wald lackfit ;
	weight sw ;
    by _imputation_;
    oddsratio mut;
    ods output parameterEstimates  = ipw_mut ;
run;
ods graphics off;
proc mianalyze parms=ipw_mut ;
modeleffects mut;
ods output parameterEstimates  = ipw_mut1;
run;

data ipw_mut2; set ipw_mut1;
OR_est=EXP(ESTIMATE);
LCI_OR=OR_est*EXP(-1.96*STDERR);
UCI_OR=OR_est*EXP(+1.96*STDERR);
run;

proc print data=ipw_mut2;
var Parm OR_est LCI_OR UCI_OR Probt ;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2024 09:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/928799#M46266</guid>
      <dc:creator>Liamb</dc:creator>
      <dc:date>2024-05-17T09:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Propensity score and IPW with imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/928877#M46275</link>
      <description>&lt;P&gt;In order to combine any statistics from multiply imputed data you need the point estimate and a standard error.&amp;nbsp; Do you know how the standard errors for standardized mean differences and synthetic Ns would be calculated?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 21:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/928877#M46275</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-05-17T21:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Propensity score and IPW with imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/929014#M46281</link>
      <description>&lt;P&gt;Standrd erros will be estimated according to Rubin's rules. For parameter estimates, averages are taken. Their variance is basically a combination of the average squared standard errors plus the variance of the parameter estimates across the imputed data sets. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 13:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/929014#M46281</guid>
      <dc:creator>Liamb</dc:creator>
      <dc:date>2024-05-20T13:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Propensity score and IPW with imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/929019#M46282</link>
      <description>&lt;P&gt;The standard errors that I was referring to were associated with the point estimates themselves, not the combined estimates.&amp;nbsp; In other words, do you have a formula that reflects the standard errors that you will eventually average in the first half of Rubin's methodology?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 13:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/929019#M46282</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-05-20T13:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Propensity score and IPW with imputed data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/929043#M46285</link>
      <description>&lt;P&gt;I'm not sure but I think it is the following formula for standard mean difference (SMD):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Liamb_0-1716215611455.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96635iD907BCC839EA2409/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Liamb_0-1716215611455.png" alt="Liamb_0-1716215611455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 14:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-and-IPW-with-imputed-data/m-p/929043#M46285</guid>
      <dc:creator>Liamb</dc:creator>
      <dc:date>2024-05-20T14:29:49Z</dc:date>
    </item>
  </channel>
</rss>

