<?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 Obtaining a pooled estimate with proc freq in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-a-pooled-estimate-with-proc-freq/m-p/679229#M32671</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recently performed a propensity analysis using stratification (n=7 strata). To estimate the treatment effect across all stratas, I would like to pool this estimate using proc freq. I've tried the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc psmatch data=HipF region=cs(extend=0);&lt;/P&gt;
&lt;P&gt;class TXAstatus sex CS1 CS2 CS3 year2014 year2015 anesth2 anesth3 surg2 surg3;&lt;/P&gt;
&lt;P&gt;psmodel TXAstatus (Treated='1') = age sex CS1 CS2 CS3 preopHb anesth2 anesth3 surg2 surg3 year2014 year2015;&lt;/P&gt;
&lt;P&gt;strata nstrata=7 key=none;&lt;/P&gt;
&lt;P&gt;assess lps var=(age sex CS1 CS2 CS3 preopHb anesth2 anesth3 surg2 surg3 year2014 year2015) /&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plots = (stddiff) stddev=pooled;&lt;/P&gt;
&lt;P&gt;output out(obs=region)=TXAstrat10;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=TXAstrat;&lt;/P&gt;
&lt;P&gt;tables Tx*TXAstatus / cmh;&lt;/P&gt;
&lt;P&gt;exact mcnem;&lt;/P&gt;
&lt;P&gt;by _STRATA_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Despite specifying 'CMH', this seems to generate stratum-specific ORs and RRs. Is there an option that I'm missing here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 17:50:50 GMT</pubDate>
    <dc:creator>bretthouston</dc:creator>
    <dc:date>2020-08-25T17:50:50Z</dc:date>
    <item>
      <title>Obtaining a pooled estimate with proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-a-pooled-estimate-with-proc-freq/m-p/679229#M32671</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recently performed a propensity analysis using stratification (n=7 strata). To estimate the treatment effect across all stratas, I would like to pool this estimate using proc freq. I've tried the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc psmatch data=HipF region=cs(extend=0);&lt;/P&gt;
&lt;P&gt;class TXAstatus sex CS1 CS2 CS3 year2014 year2015 anesth2 anesth3 surg2 surg3;&lt;/P&gt;
&lt;P&gt;psmodel TXAstatus (Treated='1') = age sex CS1 CS2 CS3 preopHb anesth2 anesth3 surg2 surg3 year2014 year2015;&lt;/P&gt;
&lt;P&gt;strata nstrata=7 key=none;&lt;/P&gt;
&lt;P&gt;assess lps var=(age sex CS1 CS2 CS3 preopHb anesth2 anesth3 surg2 surg3 year2014 year2015) /&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plots = (stddiff) stddev=pooled;&lt;/P&gt;
&lt;P&gt;output out(obs=region)=TXAstrat10;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=TXAstrat;&lt;/P&gt;
&lt;P&gt;tables Tx*TXAstatus / cmh;&lt;/P&gt;
&lt;P&gt;exact mcnem;&lt;/P&gt;
&lt;P&gt;by _STRATA_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Despite specifying 'CMH', this seems to generate stratum-specific ORs and RRs. Is there an option that I'm missing here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 17:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-a-pooled-estimate-with-proc-freq/m-p/679229#M32671</guid>
      <dc:creator>bretthouston</dc:creator>
      <dc:date>2020-08-25T17:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining a pooled estimate with proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-a-pooled-estimate-with-proc-freq/m-p/679238#M32672</link>
      <description>&lt;P&gt;You should remove the BY statement and place the _STRATA_ variable on the TABLES statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=TXAstrat;&lt;/P&gt;
&lt;P&gt;tables _strata_*Tx*TXAstatus / cmh;&lt;/P&gt;
&lt;P&gt;exact mcnem;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 18:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-a-pooled-estimate-with-proc-freq/m-p/679238#M32672</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-08-25T18:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining a pooled estimate with proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-a-pooled-estimate-with-proc-freq/m-p/679242#M32673</link>
      <description>Thank-you, this is perfect. Much appreciated!</description>
      <pubDate>Tue, 25 Aug 2020 18:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-a-pooled-estimate-with-proc-freq/m-p/679242#M32673</guid>
      <dc:creator>bretthouston</dc:creator>
      <dc:date>2020-08-25T18:24:48Z</dc:date>
    </item>
  </channel>
</rss>

