<?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: Sample size for two treatment effects with binary outcome using proc power in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-two-treatment-effects-with-binary-outcome-using/m-p/815525#M40259</link>
    <description>&lt;P&gt;If you just need the sample size for testing for any difference among the three treatment levels, as can be performed by a Pearson or likelihood ratio chi-square test, then this is easily done as discussed and illustrated in Example 3 in the Results tab of the &lt;A href="https://support.sas.com/kb/25/013.html" target="_self"&gt;PowerRxC macro&lt;/A&gt;, which shows how to do it with that macro or with the CUSTOM statement in PROC POWER.&lt;/P&gt;</description>
    <pubDate>Sat, 28 May 2022 04:15:04 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2022-05-28T04:15:04Z</dc:date>
    <item>
      <title>Sample size for two treatment effects with binary outcome using proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-two-treatment-effects-with-binary-outcome-using/m-p/815511#M40256</link>
      <description>&lt;P&gt;I am trying to run a power analysis with the following specifications to get the required sample size:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Model is logistic regression with binary outcome&lt;/LI&gt;&lt;LI&gt;Two separate treatments, and a control, with the following probabilities:&lt;OL&gt;&lt;LI&gt;Control: 0.30&lt;/LI&gt;&lt;LI&gt;Treatment 1: 0.27&lt;/LI&gt;&lt;LI&gt;Treatment 2: 0.14&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;80% power, and 0.05 alpha&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’m not sure how to use proc power with three study arms. I could not figure out how to specify a non-ordinal, categorical variable in the vardist statement. I input each treatment effect as an ordinal dummy variable to compare to the control group. However, because proc power doesn’t allow for multiple odds ratios in the testoddsratio statement, I put the odds ratio for treatment two as a covariate effect. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc power;
logistic
vardist("x1") = ordinal((0, 1) : (0.5, 0.5))
vardist("x2") = ordinal((0, 1) : (0.5, 0.5))
testpredictor = "x1"
covariates = "x2"
responseprob = 0.30
testoddsratio = 0.863
covoddsratios = 0.38
ntotal = .
power = 0.80;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives me an N of 7,107; 2,369 for each group. Is there a way to specify a non-ordinal, categorical testpredictor in the vardist statement, and if so, how do I put two odds ratios in the testoddsratio statement?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 22:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-two-treatment-effects-with-binary-outcome-using/m-p/815511#M40256</guid>
      <dc:creator>Caetreviop543</dc:creator>
      <dc:date>2022-05-27T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size for two treatment effects with binary outcome using proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-two-treatment-effects-with-binary-outcome-using/m-p/815525#M40259</link>
      <description>&lt;P&gt;If you just need the sample size for testing for any difference among the three treatment levels, as can be performed by a Pearson or likelihood ratio chi-square test, then this is easily done as discussed and illustrated in Example 3 in the Results tab of the &lt;A href="https://support.sas.com/kb/25/013.html" target="_self"&gt;PowerRxC macro&lt;/A&gt;, which shows how to do it with that macro or with the CUSTOM statement in PROC POWER.&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 04:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-two-treatment-effects-with-binary-outcome-using/m-p/815525#M40259</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-05-28T04:15:04Z</dc:date>
    </item>
  </channel>
</rss>

