<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="letter" dtd-version="2.0">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMIR</journal-id>
      <journal-id journal-id-type="nlm-ta">J Med Internet Res</journal-id>
      <journal-title>Journal of Medical Internet Research</journal-title>
      <issn pub-type="epub">1438-8871</issn>
      <publisher>
        <publisher-name>JMIR Publications</publisher-name>
        <publisher-loc>Toronto, Canada</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="publisher-id">v22i9e16179</article-id>
      <article-id pub-id-type="pmid">32930671</article-id>
      <article-id pub-id-type="doi">10.2196/16179</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Letter to the Editor</subject>
        </subj-group>
        <subj-group subj-group-type="article-type">
          <subject>Letter to the Editor</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Comment on “Designing Robust N-of-1 Studies for Precision Medicine: Simulation Study and Design Recommendations”</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Eysenbach</surname>
            <given-names>Gunther</given-names>
          </name>
        </contrib>
        <contrib contrib-type="editor">
          <name>
            <surname>Derrick</surname>
            <given-names>Thomas</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Percha</surname>
            <given-names>Bethany</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Landes</surname>
            <given-names>Reid D</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <address>
            <institution>Department of Biostatistics</institution>
            <institution>University of Arkansas for Medical Sciences</institution>
            <addr-line>4301 W Markham St</addr-line>
            <addr-line>Slot 781</addr-line>
            <addr-line>Little Rock, AR, 72205</addr-line>
            <country>United States</country>
            <phone>1 501 526 6714</phone>
            <email>rdlandes@uams.edu</email>
          </address>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-6349-0081</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>Department of Biostatistics</institution>
        <institution>University of Arkansas for Medical Sciences</institution>
        <addr-line>Little Rock, AR</addr-line>
        <country>United States</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Reid D Landes 
        <email>rdlandes@uams.edu</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <month>9</month>
        <year>2020</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>15</day>
        <month>9</month>
        <year>2020</year>
      </pub-date>
      <volume>22</volume>
      <issue>9</issue>
      <elocation-id>e16179</elocation-id>
      <history>
        <date date-type="received">
          <day>7</day>
          <month>9</month>
          <year>2019</year>
        </date>
        <date date-type="accepted">
          <day>10</day>
          <month>8</month>
          <year>2020</year>
        </date>
      </history>
      <copyright-statement>©Reid D Landes. Originally published in the Journal of Medical Internet Research (http://www.jmir.org), 15.09.2020.</copyright-statement>
      <copyright-year>2020</copyright-year>
      <license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on http://www.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="https://www.jmir.org/2020/9/e16179" xlink:type="simple"/>
      <related-article related-article-type="commentary-article" id="v21i4e12641" ext-link-type="doi" xlink:href="10.2196/12641" vol="21" page="e12641" xlink:type="simple">https://www.jmir.org/2019/4/e12641/</related-article>
      <kwd-group>
        <kwd>sample size</kwd>
        <kwd>misleading statements</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <p>In “Designing robust N-of-1 studies for precision medicine: Simulation study and design recommendations” by Percha et al [<xref ref-type="bibr" rid="ref1">1</xref>], the authors use misleading language when speaking about the required numbers of samples regarding results in Figure 4a. For example, they write on page 8:</p>
    <disp-quote>
      <p>In Figure 4a, we see that for effect sizes of 0.1, 0.2, and 0.3, more than 100 samples are needed to obtain a power of 0.8 (at a standard 5% significance level). For an effect size of 0.4, at least 100 samples are needed. For effect sizes of 0.5, 0.6, 0.7, 0.8, 0.9, and 1.0, the numbers of samples needed to attain a power of 0.8 are approximately 65, 45, 35, 26, 21, and 18, respectively. [Figure 4]</p>
    </disp-quote>
    <p>Since Figure 4a is exactly equivalent to power curves from a two-sample, equal-variance <italic>t</italic> test (see <xref rid="figure1" ref-type="fig">Figure 1</xref>; generating R code provided in <xref ref-type="boxed-text" rid="box1">Textbox 1</xref>), the numbers of samples are for <italic>one</italic> of the two treatments; thus, the total numbers of samples are doubled. An easy fix in most instances of the unclear language is to add “per treatment” after “samples.” I provide a list of potential clarifying edits to the article’s text below (but may have missed some instances):</p>
    <list list-type="bullet">
      <list-item>
        <p>Figure 4c caption: “(ie, number of samples <italic>per treatment</italic>, with sampling rate fixed at 1 sample per time unit)”</p>
      </list-item>
      <list-item>
        <p>Figure 4a and 4b: the label for the horizontal axis should be “Number of samples <italic>per treatment</italic>”</p>
      </list-item>
      <list-item>
        <p>Page 8: “In Figure 4a, we see that for effect sizes of 0.1, 0.2, and 0.3, more than 100 samples <italic>per treatment</italic> are needed to obtain a power of 0.8 (at a standard 5% significance level). For an effect size of 0.4, at least 100 samples <italic>per treatment</italic> are needed. For effect sizes of 0.5, 0.6, 0.7, 0.8, 0.9, and 1.0, the numbers of samples <italic>per treatment</italic> needed to attain a power of 0.8 are approximately 65, 45, 35, 26, 21, and 18, respectively.”</p>
      </list-item>
      <list-item>
        <p>Page 9: “For an effect size of 0.5 and σ<sub>p</sub>=0.0, 0.4, 0.8, 1.2, 1.6, 2.0, the numbers of samples <italic>per treatment</italic> needed to obtain a power of 0.8 are 61, 76, 89, 111, 135, and 176, respectively. For an effect size of 1.0, the numbers of samples <italic>per treatment</italic> needed are 20, 24, 28, 34, 43, and 53, respectively.”</p>
      </list-item>
      <list-item>
        <p>Page 9: “For σ<sub>p</sub>=0.0, 0.4, 0.8, 1.2, 1.6, 2.0 and α=0.1, the numbers of samples <italic>per treatment</italic> required are 36, 64, 110, 174, 228, and 250, respectively. For α=10.0, the numbers of samples <italic>per treatment</italic> required are only 20, 23, 28, 34, 42, and 53, respectively.”</p>
      </list-item>
    </list>
    <fig id="figure1" position="float">
      <label>Figure 1</label>
      <caption>
        <p>For effect sizes ranging from 0.1 to 1.0, power of a 0.05 level two-sample <italic>t</italic> test plotted by <italic>n</italic>, the number of samples in one treatment group. Total sample size is assumed to be <italic>2n</italic>.</p>
      </caption>
      <graphic xlink:href="jmir_v22i9e16179_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
    </fig>
    <boxed-text id="box1" position="float">
      <title>R code.</title>
      <p>#--- R code for generating <xref rid="figure1" ref-type="fig">Figure 1</xref>.</p>
      <p>library(pwr)</p>
      <p>color &#60;- c("#F8766D", "#D89000", "#A3A500", "#39B600", "#00BF7D", "#00BFC4",</p>
      <p>           "#00B0F6", "#9590FF", "#E76BF3", "#FF62BC")</p>
      <p> </p>
      <p>#--- Producing the power plot (upper portion of figure)</p>
      <p>plot(50, 1, type = 'n', xlim = c(0,100), ylim = c(0,1), axes = FALSE,</p>
      <p>     ylab = substitute(paste("2-sample ", italic('t'), " test power")),</p>
      <p>     xlab =  substitute(paste(italic('n'), " = # of samples for 1 of 2 treatments") ) )</p>
      <p>axis(1, at = seq(0, 100, 20)); axis(2, at = seq(0, 1, .2), las = 2)</p>
      <p>abline(v = seq(10, 100, 10), col = 'gray80')</p>
      <p>abline(h = seq(.1, 1, .1), col = 'gray85')</p>
      <p> </p>
      <p>#--- Filling in the power plot</p>
      <p>for(.d in 10:1/10){ </p>
      <p>   tmp.power &#60;- NULL </p>
      <p>   for( .n in 5:100){ </p>
      <p>     #--- Computes power for a 2-sample t-test, each sample with n observations.</p>
      <p>     p &#60;- pwr.t.test(n = .n, d = .d, sig.level = .05, power = NULL,</p>
      <p>                     type = "two.sample", alternative = "two.sided")$power</p>
      <p>     tmp.power &#60;- c(tmp.power, p)</p>
      <p>   }</p>
      <p>   lines(5:100, tmp.power, lwd=3, col=color[.d*10])</p>
      <p>}</p>
      <p> </p>
      <p>#--- Producing the the legend (lower portion of figure)</p>
      <p>plot(50, 1, type = 'n', xlim = c(0,100), ylim = c(.25, .75), </p>
      <p>      axes = FALSE, xlab = 'Effect Size', ylab = '', cex.lab=1.5)</p>
      <p>x &#60;- 15</p>
      <p>for(iter in seq(2,10,2)){ </p>
      <p>   mult &#60;- (iter/2)</p>
      <p>   .x &#60;- x*mult</p>
      <p>   segments( .x-3, 0.67, .x+3, lwd=5, col= color[iter-1])</p>
      <p>   text(.x+3, .67, pos=4, (iter-1)/10, cex=1.25)</p>
      <p>   segments( .x-3, 0.33, .x+3, lwd=5, col= color[iter]  )</p>
      <p>   text(.x+3, .33, pos=4, (iter)/10, cex=1.25)</p>
      <p>}</p>
    </boxed-text>
  </body>
  <back>
    <app-group/>
    <fn-group>
      <fn fn-type="other">
        <label>Editorial Notice</label>
        <p>Percha and colleagues have agreed to the above changes; these changes have been made to the original paper.</p>
      </fn>
      <fn fn-type="conflict">
        <p>None declared.</p>
      </fn>
    </fn-group>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Percha</surname>
              <given-names>Bethany</given-names>
            </name>
            <name name-style="western">
              <surname>Baskerville</surname>
              <given-names>Edward B</given-names>
            </name>
            <name name-style="western">
              <surname>Johnson</surname>
              <given-names>Matthew</given-names>
            </name>
            <name name-style="western">
              <surname>Dudley</surname>
              <given-names>Joel T</given-names>
            </name>
            <name name-style="western">
              <surname>Zimmerman</surname>
              <given-names>Noah</given-names>
            </name>
          </person-group>
          <article-title>Designing Robust N-of-1 Studies for Precision Medicine: Simulation Study and Design Recommendations</article-title>
          <source>J Med Internet Res</source>
          <year>2019</year>
          <month>04</month>
          <day>01</day>
          <volume>21</volume>
          <issue>4</issue>
          <fpage>e12641</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.jmir.org/2019/4/e12641/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/12641</pub-id>
          <pub-id pub-id-type="medline">30932871</pub-id>
          <pub-id pub-id-type="pii">v21i4e12641</pub-id>
          <pub-id pub-id-type="pmcid">PMC6462889</pub-id>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
