<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Psychol.</journal-id>
<journal-title>Frontiers in Psychology</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Psychol.</abbrev-journal-title>
<issn pub-type="epub">1664-1078</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fpsyg.2022.947768</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Psychology</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Sample size determination for Bayesian ANOVAs with informative hypotheses</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Fu</surname> <given-names>Qianrao</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Moerbeek</surname> <given-names>Mirjam</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/119888/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Hoijtink</surname> <given-names>Herbert</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2085495/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>School of Management, Xi&#x00027;an University of Architecture and Technology</institution>, <addr-line>Xi&#x00027;an</addr-line>, <country>China</country></aff>
<aff id="aff2"><sup>2</sup><institution>Department of Methodology and Statistics, Utrecht University</institution>, <addr-line>Utrecht</addr-line>, <country>Netherlands</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Antonio P. Gutierrez de Blume, Georgia Southern University, United States</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Xiaofeng Liu, University of South Carolina, United States; Min Wang, University of Texas at San Antonio, United States</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Qianrao Fu <email>qfu&#x00040;xauat.edu.cn</email></corresp>
<fn fn-type="other" id="fn001"><p>This article was submitted to Educational Psychology, a section of the journal Frontiers in Psychology</p></fn></author-notes>
<pub-date pub-type="epub">
<day>22</day>
<month>11</month>
<year>2022</year>
</pub-date>
<pub-date pub-type="collection">
<year>2022</year>
</pub-date>
<volume>13</volume>
<elocation-id>947768</elocation-id>
<history>
<date date-type="received">
<day>19</day>
<month>05</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>04</day>
<month>11</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2022 Fu, Moerbeek and Hoijtink.</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Fu, Moerbeek and Hoijtink</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license> </permissions>
<abstract>
<p>Researchers can express their expectations with respect to the group means in an ANOVA model through equality and order constrained hypotheses. This paper introduces the <monospace>R</monospace> package <monospace>SSDbain</monospace>, which can be used to calculate the sample size required to evaluate (informative) hypotheses using the Approximate Adjusted Fractional Bayes Factor (AAFBF) for one-way ANOVA models as implemented in the <monospace>R</monospace> package <monospace>bain</monospace>. The sample size is determined such that the probability that the Bayes factor is larger than a threshold value is at least &#x003B7; when either of the hypotheses under consideration is true. The Bayesian ANOVA, Bayesian Welch&#x00027;s ANOVA, and Bayesian robust ANOVA are available. Using the <monospace>R</monospace> package <monospace>SSDbain</monospace> and/or the tables provided in this paper, researchers in the social and behavioral sciences can easily plan the sample size if they intend to use a Bayesian ANOVA.</p></abstract>
<kwd-group>
<kwd>Bayes factor</kwd>
<kwd>Bayesian ANOVAs</kwd>
<kwd>informative hypothesis</kwd>
<kwd>sample size</kwd>
<kwd>SSDbain</kwd>
</kwd-group>
<counts>
<fig-count count="1"/>
<table-count count="0"/>
<equation-count count="17"/>
<ref-count count="50"/>
<page-count count="11"/>
<word-count count="8439"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1. Introduction</title>
<p>In a classical one-way ANOVA, two hypotheses, the null hypothesis <italic>H</italic><sub>0</sub> and the alternative hypotheses <italic>H</italic><sub><italic>a</italic></sub> are contrasted:
<disp-formula id="E1"><label>(1)</label><mml:math id="M1"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
vs.
<disp-formula id="E2"><label>(2)</label><mml:math id="M2"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:mtext class="textup" mathvariant="normal">not all means are equal</mml:mtext><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where &#x003BC;<sub><italic>k</italic></sub> denotes the mean for group <italic>k</italic> &#x0003D; 1, 2, &#x02026;, <italic>K</italic>, and <italic>K</italic> denotes the number of groups.</p>
<p>Statistical power is the probability to correctly reject the null hypothesis when an effect exists in the population. Cohen (<xref ref-type="bibr" rid="B6">1988</xref>, <xref ref-type="bibr" rid="B7">1992</xref>) published some of the most cited literature on power analysis; he proposed the effect size measure <italic>f</italic> &#x0003D; &#x003C3;<sub><italic>m</italic></sub>/&#x003C3;, where &#x003C3;<sub><italic>m</italic></sub> denotes the standard deviation of the means of the <italic>K</italic> groups, and &#x003C3; the common within-group standard deviation. The classical sample size table of the one-way ANOVA based on the <italic>F</italic>-test (Cohen, <xref ref-type="bibr" rid="B7">1992</xref>) indicates that in the case of three groups, 322, 52, or 21 subjects per group are needed to obtain a power of 0.8 to detect a small (<italic>f</italic> &#x0003D; 0.1), medium (<italic>f</italic> &#x0003D; 0.25), or large (<italic>f</italic> &#x0003D; 0.4) effect size at a Type I error rate &#x003B1; &#x0003D; 0.05. Required sample sizes for other scenarios can be calculated using software for power analysis and optimal study design, such as <monospace>G*Power</monospace> (Faul et al., <xref ref-type="bibr" rid="B12">2007</xref>, <xref ref-type="bibr" rid="B11">2009</xref>; Mayr et al., <xref ref-type="bibr" rid="B29">2007</xref>), <monospace>nQuery Advisor</monospace> (Elashoff, <xref ref-type="bibr" rid="B10">2007</xref>) and <monospace>PASS</monospace> (Hintze, <xref ref-type="bibr" rid="B21">2011</xref>). Power analysis has become more important in a scientific world with competition for limited funding for research grants. Funding agencies often require value for money: if an effect size exists in the population then it should be detected with sufficient probability. However, many studies in the behavioral and social sciences are underpowered, mainly because of insufficient funding or numbers of subjects willing to participate. As well as a reduced probability of detecting an important effect size, underpowered research causes many problems, including overestimation of effect size, poor replicability of research findings, and thus an increased risk of drawing incorrect conclusions. For relevant articles, see Fraley and Vazire (<xref ref-type="bibr" rid="B13">2014</xref>), Maxwell (<xref ref-type="bibr" rid="B28">2004</xref>), Simonsohn et al. (<xref ref-type="bibr" rid="B39">2014</xref>), Dumas-Mallet et al. (<xref ref-type="bibr" rid="B9">2017</xref>), and Szucs and Ioannidis (<xref ref-type="bibr" rid="B41">2017</xref>).</p>
<p>Recently, null-hypothesis significance testing (NHST) has been criticized in numerous articles. Unnecessary detail will not be given in this paper, but see the typical references Nickerson (<xref ref-type="bibr" rid="B32">2000</xref>), Wagenmakers (<xref ref-type="bibr" rid="B45">2007</xref>), Masicampo and Lalande (<xref ref-type="bibr" rid="B27">2012</xref>), Harlow et al. (<xref ref-type="bibr" rid="B18">2016</xref>), and Wicherts et al. (<xref ref-type="bibr" rid="B49">2016</xref>). Alternatives such as Bayesian statistics have as a consequence become increasingly popular over the past decade (Van de Schoot et al., <xref ref-type="bibr" rid="B42">2017</xref>; Vandekerckhove et al., <xref ref-type="bibr" rid="B44">2018</xref>; Wagenmakers et al., <xref ref-type="bibr" rid="B46">2016</xref>). Among them, Bayes factor is the most important tool to evaluate the competing hypotheses. The Bayes factor is the measurement of the relative evidence between two competing hypotheses. For example, if <italic>H</italic><sub>0</sub> vs. <italic>H</italic><sub>1</sub>, and the Baye factor BF<sub>01</sub> &#x0003D; 10, then the support for <italic>H</italic><sub>0</sub> is 10 times more than <italic>H</italic><sub>1</sub>. The Bayes factor cannot only provide evidence in favor of the alternative hypothesis, but, in contrast to the <italic>p</italic>-value, also provides evidence in favor of the null hypotheses. The Bayes factor quantifies the strength of current data to support for <italic>H</italic><sub>0</sub> and <italic>H</italic><sub>1</sub>, respectively, which is more balanced than the traditional NHST where Bayes factor are more balanced in terms of support for <italic>H</italic><sub>0</sub> and <italic>H</italic><sub>1</sub>, and thus its tendency to reject <italic>H</italic><sub>0</sub> is relatively less strong. Under the traditional NHST hypothesis, as long as the collected data is enough the researcher can obtain <italic>p</italic> &#x0003C; 0.05 and thus reject <italic>H</italic><sub>0</sub>, in contrast to the NHST, the Bayes factor tends to be stable with the increase of data. The Bayes factor does not depend on the unknown or nonexistent sampling plan, while the <italic>p</italic>-value is affected by the sampling plan. In addition, the traditional null and alternative hypotheses as specified by (1) and (2) may not reflect the researcher&#x00027;s expectations. The researcher can express his or her expectations with regard to the ordering of the group means &#x003BC;<sub>1</sub>, &#x003BC;<sub>2</sub>, &#x02026;, &#x003BC;<sub><italic>K</italic></sub> in an informative hypothesis (Hoijtink, <xref ref-type="bibr" rid="B22">2011</xref>). For example, consider a comparison of the average body heights of adults in the Netherlands, China, and Japan, as denoted by &#x003BC;<sub><italic>N</italic></sub>, &#x003BC;<sub><italic>C</italic></sub> and &#x003BC;<sub><italic>J</italic></sub>. Informative hypotheses may be formulated on the basis of observations, expectations or findings in the literature. One example is hypothesis <italic>H</italic><sub>1</sub> : &#x003BC;<sub><italic>N</italic></sub> &#x0003E; &#x003BC;<sub><italic>C</italic></sub> &#x0003E; &#x003BC;<sub><italic>J</italic></sub>. It is worth mentioning that the Bayes factor can not only be used to compare the null hypothesis with alternative hypotheses, but also can be used to compare two informative hypotheses directly. Accordingly, in NHST if ordered hypothesis is included, multiple testing should be carried, which leads to increased chances of false positive results. Software for calculating Bayes factor are the <monospace>R</monospace> package <monospace>BayesFactor</monospace>, the <monospace>R</monospace> package <monospace>BFpack</monospace>, and the <monospace>R</monospace> package <monospace>bain</monospace>, which make the Bayes factor readily accessible to applied researchers. Therefore, it is important that sample size calculations for the Bayesian approach to hypothesis testing become available to researchers in the behavioral and social sciences.</p>
<p>Recently, a sequential Bayesian <italic>t</italic>-test (Sch&#x000F6;nbrodt et al., <xref ref-type="bibr" rid="B37">2017</xref>) was developed that can, when applicable, avoid an a priori sample size calculation. A sequential test (Wald, <xref ref-type="bibr" rid="B47">1945</xref>) allows researchers to add additional observations at every stage of an experiment depending on whether target strength of evidence is reached. That is, the size of the Bayes factor is large enough or a decision rule whether to i) accept the hypothesis being tested; ii) reject the hypothesis being tested; or iii) continue the experiment by making additional observations is satisfied.</p>
<p>However, a sequential test based on Bayesian updating is not always possible, for example, when the population of research is small (e.g., rare disease or cognitive disorder), when the study is longitudinal and runs for many years, when a research plan with an a priori sample size calculation is to be submitted to an ethical committee, or when researchers want to have an indication of the sample sizes needed even when they do use a sequential design. In these situations sample size determination is necessary. In practice, a combination of sample size determination and Bayesian updating is the best choice. For a more extensive overview of the role of sample size determination and Bayesian updating, the reader is referred to Fu et al. (<xref ref-type="bibr" rid="B14">2020</xref>).</p>
<p>Throughout this paper sample size determination (SSD) for the comparison of null, informative, and alternative hypotheses under a one-way ANOVA in the Bayesian framework van den Bergh et al. (<xref ref-type="bibr" rid="B43">2020</xref>), which will build on the sample size calculations for <italic>t</italic>-tests discussed in Sch&#x000F6;nbrodt and Wagenmakers (<xref ref-type="bibr" rid="B36">2018</xref>), Stefan et al. (<xref ref-type="bibr" rid="B40">2019</xref>), and Fu et al. (<xref ref-type="bibr" rid="B14">2020</xref>), will be performed. However, the observed data in social and behavioral research are often non-normal distributed or homogeneous of variance, see, for example, Glass et al. (<xref ref-type="bibr" rid="B16">1972</xref>), Micceri (<xref ref-type="bibr" rid="B30">1989</xref>), Harwell et al. (<xref ref-type="bibr" rid="B19">1992</xref>), Coombs et al. (<xref ref-type="bibr" rid="B8">1996</xref>), Keselman et al. (<xref ref-type="bibr" rid="B26">1998</xref>), and Blanca et al. (<xref ref-type="bibr" rid="B3">2013</xref>). To solve these problems, alternative ANOVAs will also be considered: (1) SSD for Bayesian Welch&#x00027;s ANOVA is available when homogeneity of variance does not hold; (2) SSD for Bayesian robust ANOVA is available when homogeneity of variance and normality of residuals do not hold and/or when the data contain outliers.</p>
<p>The outline of this paper is as follows. First, the models that are used in the article are introduced, the informative hypotheses that are evaluated is described, and the Approximate Adjusted Fractional Bayes Factor (AAFBF) approach as implemented in the <monospace>R</monospace> package <monospace>bain</monospace> is elaborated. Subsequently, sample size determination will be introduced, features of SSD will be highlighted, and examples will be provided and discussed. The paper ends with a short conclusion.</p></sec>
<sec id="s2">
<title>2. One-way ANOVAs, (Informative) hypotheses, and Bayes factor</title>
<p>In this paper, <italic>K</italic> mutually independent group means, &#x003BC;<sub>1</sub>, &#x003BC;<sub>2</sub>, &#x022EF;&#x02009;, &#x003BC;<sub><italic>K</italic></sub> are compared. Three different types of ANOVA models are considered:</p>
<p>Model 1: ANOVA, that is, the within-group variances for the <italic>K</italic> groups are equal
<disp-formula id="E3"><label>(3)</label><mml:math id="M3"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0007E;</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
Model 2: Welch&#x00027;s ANOVA, that is, the within-group variances for the <italic>K</italic> groups are unequal
<disp-formula id="E4"><label>(4)</label><mml:math id="M4"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0007E;</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
Model 3: Robust ANOVA, that is, the within-group variances for the <italic>K</italic> groups are unequal, and the distribution of the residuals is non-normal and/or the data contain outliers
<disp-formula id="E5"><label>(5)</label><mml:math id="M5"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0007E;</mml:mo><mml:msub><mml:mrow><mml:mi>f</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <italic>y</italic><sub><italic>tk</italic></sub> for person <italic>t</italic> &#x0003D; 1, &#x022EF;&#x02009;, <italic>N</italic> belonging to group <italic>k</italic> &#x0003D; 1, 2, &#x022EF;&#x02009;, <italic>K</italic> is the dependent variable, <italic>N</italic> denotes the sample size per group, <italic>D</italic><sub><italic>tk</italic></sub> &#x0003D; 1 denotes that person <italic>t</italic> is a member of group <italic>k</italic> and 0 otherwise, &#x003F5;<sub><italic>tk</italic></sub> denotes the error in prediction for person <italic>t</italic> in group <italic>k</italic>, <italic>f</italic><sub><italic>k</italic></sub>(&#x003F5;<sub><italic>tk</italic></sub>) is an unspecified distribution of the residuals in group <italic>k</italic>, &#x003C3;<sup>2</sup> denotes the common within-group variance for each group in case of ANOVA, <inline-formula><mml:math id="M6"><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> denotes the within-group variance of group <italic>k</italic> in case of the Welch&#x00027;s ANOVA, and &#x003BC;<sub><italic>k,ROB</italic></sub> is the robust estimator of population mean.</p>
<p>In this paper, sample size will be determined under the following situations:</p>
<p>Situation 1: If the researchers believe that nothing is going on or something else is going on but they do not know what, sample size will be determined for the comparison of</p>
<p><italic>H</italic><sub>0</sub> : &#x003BC;<sub>1</sub> &#x0003D; &#x003BC;<sub>2</sub> &#x0003D; &#x022EF; &#x0003D; &#x003BC;<sub><italic>K</italic></sub> vs. <italic>H</italic><sub><italic>a</italic></sub>, where <italic>H</italic><sub><italic>a</italic></sub>: not all means are equal;</p>
<p>Situation 2: Many researchers have clear ideas or expectations with respect to what might be going on. These researchers might believe nothing is going on or have a specific expectation about the ordering of the means. Therefore sample size will be determined for a comparison of</p>
<p><italic>H</italic><sub>0</sub> : &#x003BC;<sub>1</sub> &#x0003D; &#x003BC;<sub>2</sub> &#x0003D; &#x022EF; &#x0003D; &#x003BC;<sub><italic>K</italic></sub> vs. <inline-formula><mml:math id="M7"><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>;</p>
<p>where 1<sup>&#x0002A;</sup>, 2<sup>&#x0002A;</sup>, &#x022EF;&#x02009;, <italic>K</italic><sup>&#x0002A;</sup> are a re-ordering of the numbers 1, 2, &#x022EF;&#x02009;, <italic>K</italic>;</p>
<p>Situation 3: Or, continuing Situation 2, researchers may want to compare their expectation with its complement. Therefore sample size will be determined for a comparison of</p>
<p><inline-formula><mml:math id="M8"><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula> vs. <italic>H</italic><sub><italic>c</italic></sub>: not <italic>H</italic><sub><italic>i</italic></sub>;</p>
<p>Situation 4: The researchers have two competing expectations</p>
<p><inline-formula><mml:math id="M9"><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mo>*</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula> vs. <inline-formula><mml:math id="M10"><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>&#x00023;</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>&#x00023;</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x00023;</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>,</p>
<p>where 1<sup>&#x00023;</sup>, 2<sup>&#x00023;</sup>, &#x022EF;&#x02009;, <italic>K</italic><sup>&#x00023;</sup> denote a re-ordering of numbers 1, 2, &#x022EF;&#x02009;, <italic>K</italic> that is different from <italic>H</italic><sub><italic>i</italic></sub>. Note that, SSD is also possible if some of the &#x00022;&#x0003E;&#x00022; in <italic>H</italic><sub><italic>i</italic></sub> or <italic>H</italic><sub><italic>j</italic></sub> are replaced by &#x00022;=.&#x00022;</p>
<p>The AAFBF as implemented in the <monospace>R</monospace> package <monospace>bain</monospace> will be used to determine the relative support in the data for a pair of hypotheses. The interested reader is referred to Gu et al. (<xref ref-type="bibr" rid="B17">2018</xref>), Hoijtink et al. (<xref ref-type="bibr" rid="B23">2019a</xref>) and Hoijtink et al. (<xref ref-type="bibr" rid="B24">2019b</xref>) for the complete statistical background. Here only the main features of this approach will be presented. If, for example, BF<sub><italic>ij</italic></sub> &#x0003D; 10, this implies that the data are 10 times more likely to have been observed under <italic>H</italic><sub><italic>i</italic></sub> than under <italic>H</italic><sub><italic>j</italic></sub>. In this manuscript, the AAFBF will be used because it is currently the only Bayes factor available that can handle the four situations introduced above for regular ANOVA, Welch&#x00027;s ANOVA, and robust ANOVA. In what follows, the AAFBF implementation for ANOVAs will be described. First of all, the Bayes factor with which <italic>H</italic><sub>0</sub> and <italic>H</italic><sub><italic>i</italic></sub> can be compared to <italic>H</italic><sub><italic>a</italic></sub> will be introduced. Subsequently, BF<sub><italic>ij</italic></sub> and BF<sub><italic>ic</italic></sub> will be introduced.</p>
<p>Let <italic>H</italic><sub><italic>z</italic></sub> denote either of <italic>H</italic><sub>0</sub> and <italic>H</italic><sub><italic>i</italic></sub>, and note that for robust ANOVA <bold>&#x003BC;</bold> has to be replaced by <bold>&#x003BC;</bold><sub><italic>ROB</italic></sub>, then
<disp-formula id="E6"><label>(6)</label><mml:math id="M11"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mtext class="textrm" mathvariant="normal">BF</mml:mtext></mml:mrow><mml:mrow><mml:mi>z</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>f</mml:mi></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>c</mml:mi></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mo>&#x0222B;</mml:mo></mml:mrow><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle><mml:mo>&#x02208;</mml:mo><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mo>&#x0222B;</mml:mo></mml:mrow><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle><mml:mo>&#x02208;</mml:mo><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <italic>f</italic><sub><italic>z</italic></sub> and <italic>c</italic><sub><italic>z</italic></sub> are the fit and complexity of <italic>H</italic><sub><italic>z</italic></sub> relative to <italic>H</italic><sub><italic>a</italic></sub>, respectively, <italic>g</italic><sub><italic>a</italic></sub>(<bold>&#x003BC;</bold>) denotes a normal approximation to the posterior distribution of <bold>&#x003BC;</bold> under <italic>H</italic><sub><italic>a</italic></sub>, and <italic>h</italic><sub><italic>a</italic></sub>(<bold>&#x003BC;</bold>) the corresponding prior distribution of <bold>&#x003BC;</bold> under <italic>H</italic><sub><italic>a</italic></sub>. The fit is the proportion of the posterior distribution <italic>g</italic><sub><italic>a</italic></sub>(&#x000B7;) in agreement with <italic>H</italic><sub><italic>z</italic></sub>, and the complexity is the proportion of the prior distribution <italic>h</italic><sub><italic>a</italic></sub>(&#x000B7;) in agreement with <italic>H</italic><sub><italic>z</italic></sub>. The Bayes factor (BF) for <italic>H</italic><sub><italic>i</italic></sub> against <italic>H</italic><sub><italic>j</italic></sub> is:
<disp-formula id="E7"><label>(7)</label><mml:math id="M12"><mml:mrow><mml:msub><mml:mrow><mml:mtext>BF</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mtext>BF</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mtext>BF</mml:mtext></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:mrow></mml:mfrac><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
and the BF of <italic>H</italic><sub><italic>i</italic></sub> vs. <italic>H</italic><sub><italic>c</italic></sub> is:
<disp-formula id="E8"><label>(8)</label><mml:math id="M13"><mml:msub><mml:mtext>BF</mml:mtext><mml:mrow><mml:mi>i</mml:mi><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mtext>BF</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mtext>BF</mml:mtext></mml:mrow><mml:mrow><mml:mi>c</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mfrac><mml:mo>.</mml:mo></mml:math></disp-formula>
The posterior distribution used in the AAFBF is a normal approximation of the actual posterior distribution of the <italic>K</italic> group means. This can be justified using large sample theory (Gelman et al., <xref ref-type="bibr" rid="B15">2013</xref>, pp. 101). This normal approximation can be specified using the estimates of &#x003BC;, the residual variance <italic>s</italic><sup>2</sup> and <italic>N</italic>. For the regular ANOVA (Model 1) this renders:
<disp-formula id="E9"><label>(9)</label><mml:math id="M14"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:msub><mml:mrow><mml:mo>&#x0222C;</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x003BC;</mml:mi><mml:mo>&#x02208;</mml:mo><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow></mml:msub></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003C0;</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle><mml:mo>,</mml:mo><mml:mstyle mathvariant="bold"><mml:msup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mi>d</mml:mi><mml:mstyle mathvariant="bold"><mml:msup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mstyle></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:msub><mml:mrow><mml:mo>&#x0222B;</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x003BC;</mml:mi><mml:mo>&#x02208;</mml:mo><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow></mml:msub></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003C0;</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle><mml:mo>=</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>/</mml:mo><mml:mi>N</mml:mi></mml:mtd><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x022F1;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd><mml:mtd><mml:msup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>/</mml:mo><mml:mi>N</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>;</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
for the Welch&#x00027;s ANOVA (Model 2) this renders:
<disp-formula id="E11"><label>(10)</label><mml:math id="M15"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>/</mml:mo><mml:mi>N</mml:mi></mml:mtd><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>&#x022F1;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd><mml:mtd><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>/</mml:mo><mml:mi>N</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>;</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <inline-formula><mml:math id="M16"><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mspace width="0.3em" class="thinspace"/><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> denotes the maximum likelihood estimates of the <italic>K</italic> group means, &#x0015D;<sup>2</sup> denotes the unbiased estimate of the residual variance, and <inline-formula><mml:math id="M17"><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>, <inline-formula><mml:math id="M18"><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>, &#x022EF;&#x02009;, <inline-formula><mml:math id="M19"><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> denote unbiased estimates of the <italic>K</italic> within-group variances. For the robust ANOVA (Model 3),
<disp-formula id="E12"><label>(11)</label><mml:math id="M20"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mtext class="textrm" mathvariant="normal">ROB</mml:mtext></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>/</mml:mo><mml:mi>N</mml:mi></mml:mtd><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>&#x022F1;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd><mml:mtd><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>/</mml:mo><mml:mi>N</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <inline-formula><mml:math id="M21"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the 20% trimmed mean, which according to Wilcox (<xref ref-type="bibr" rid="B50">2017</xref>, pp. 45-93) is the best choice, and <inline-formula><mml:math id="M22"><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> is a robust estimate of the residual variance in Group <italic>k</italic>, which is based on the Winsorized variance (see, Wilcox, <xref ref-type="bibr" rid="B50">2017</xref>, pp. 60&#x02013;64). If the data are severely non-normal or contain outliers, the estimates of means can be very poor estimates of central tendency, and the within-group variances can be very poor estimates of the variability within a group (Bosman, <xref ref-type="bibr" rid="B4">2018</xref>) therefore in these situations it may be preferable to use <inline-formula><mml:math id="M23"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="M24"><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> for <italic>k</italic> &#x0003D; 1, &#x022EF;&#x02009;, <italic>K</italic>.</p>
<p>The prior distribution is based on the adjusted (Mulder, <xref ref-type="bibr" rid="B31">2014</xref>) fractional Bayes factor approach (O&#x00027;Hagan, <xref ref-type="bibr" rid="B33">1995</xref>). As is elaborated in Gu et al. (<xref ref-type="bibr" rid="B17">2018</xref>) and Hoijtink et al. (<xref ref-type="bibr" rid="B23">2019a</xref>) for the regular ANOVA with homogeneous within-group variances (Model 1), the prior distribution is:
<disp-formula id="E13"><label>(12)</label><mml:math id="M25"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>b</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mtd><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>&#x022F1;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd><mml:mtd><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>b</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>;</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
and, for the Welch&#x00027;s ANOVA with group specific variances (Model 2) the prior distribution is
<disp-formula id="E14"><label>(13)</label><mml:math id="M26"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>b</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mtd><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>&#x022F1;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd><mml:mtd><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>b</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>;</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
and, for the robust ANOVA (Model 3) the prior distribution is
<disp-formula id="E15"><label>(14)</label><mml:math id="M27"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mi>&#x003BC;</mml:mi></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>b</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mtd><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>&#x022F1;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mn>0</mml:mn></mml:mstyle></mml:mtd><mml:mtd><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>b</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x0015D;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>O</mml:mi><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
For the hypotheses considered in this paper mean of the prior distribution should be the origin <bold>0</bold>. As is elaborated in Mulder (<xref ref-type="bibr" rid="B31">2014</xref>), this choice renders a quantification of complexity in accordance with Occam&#x00027;s razor and, as is elaborated in Hoijtink et al. (<xref ref-type="bibr" rid="B24">2019b</xref>), it renders a Bayes factor that is consistent. The variances appearing in the prior distribution are based on a fraction of the information in the data. For each group in an ANOVA this fraction is <inline-formula><mml:math id="M28"><mml:mi>b</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:math></inline-formula> (Hoijtink et al., <xref ref-type="bibr" rid="B23">2019a</xref>). The choice for the parameter <italic>J</italic> is inspired by the minimal training sample approach (Berger and Pericchi, <xref ref-type="bibr" rid="B1">1996</xref>, <xref ref-type="bibr" rid="B2">2004</xref>): it is the number of independent constraints used to specify the hypotheses under consideration, because these can be seen as the number of underlying parameters (the differences between pairs of means) that are of interest. Specifically, if <italic>H</italic><sub>0</sub> : &#x003BC;<sub>1</sub> &#x0003D; &#x003BC;<sub>2</sub> &#x0003D; &#x003BC;<sub>3</sub> vs <italic>H</italic><sub><italic>i</italic></sub> : &#x003BC;<sub>1</sub> &#x0003E; &#x003BC;<sub>2</sub> &#x0003E; &#x003BC;<sub>3</sub> is considered, <italic>J</italic> is equal to 2. The choice for minimum training samples is to some degree arbitrary. It is in general common in Bayesian analyzes to execute sensitivity (to the prior distribution) analyzes. Hence alternative choices of <inline-formula><mml:math id="M29"><mml:mi>b</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mn>2</mml:mn><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:math></inline-formula> and <inline-formula><mml:math id="M30"><mml:mi>b</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mn>3</mml:mn><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x000D7;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:math></inline-formula> are also considered in this paper. Note that, prior sensitivity only applies to Situations 1 and 2, the Bayes factors computed for Situations 3 and 4 are not sensitive to the choice of <italic>b</italic> (see Mulder, <xref ref-type="bibr" rid="B31">2014</xref>).</p></sec>
<sec id="s3">
<title>3. Sample size determination for one-way ANOVAs</title>
<p>SSD for the Bayesian one-way ANOVA is implemented in the <monospace>R</monospace> package <monospace>SSDbain</monospace><xref ref-type="fn" rid="fn0001"><sup>1</sup></xref>. This section describes the specific ingredients needed for the functions <monospace>SSDANOVA</monospace> and <monospace>SSDANOVA_robust</monospace> in the <monospace>R</monospace> package <monospace>SSDbain</monospace>. The interested reader is referred to <xref ref-type="supplementary-material" rid="SM1">Appendices A</xref>,<xref ref-type="supplementary-material" rid="SM1">B</xref> for an elaboration of the SSD algorithm. After installing the <monospace>R</monospace> package <monospace>SSDbain</monospace>, the following Call 1 and Call 2 are used to calculate the sample size per group for regular ANOVA and Welch&#x00027;s ANOVA:</p>
<p>Call 1: using Cohen&#x00027;s <italic>f</italic> (Cohen, <xref ref-type="bibr" rid="B7">1992</xref>) to specify the populations of interest</p>
<preformat>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M31"><mml:mstyle class="text" mathcolor="#3f835f"><mml:mtext mathvariant="bold">&#x00023;load&#x000A0;SSDbain&#x000A0;package</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content></bold>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M32"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">library</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(SSDbain)</bold>
<bold>SSDANOVA(hyp1=<named-content content-type="pre"><inline-formula><mml:math id="M33"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu1=mu2=mu3&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,hyp2=<named-content content-type="pre"><inline-formula><mml:math id="M34"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;Ha&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,&#x000A0;type=<named-content content-type="pre"><inline-formula><mml:math id="M35"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;equal&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,f1</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;=0,f2=0.25,<named-content content-type="pre"><inline-formula><mml:math id="M36"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">var</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>=NULL,</bold>
<bold>BFthresh=3,eta=0.8,T=10000,seed=10)</bold>
</preformat>
<p>Call 2: using means and variances to specify the populations of interest</p>
<preformat>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M37"><mml:mstyle class="text" mathcolor="#3f835f"><mml:mtext mathvariant="bold">&#x00023;load&#x000A0;SSDbain&#x000A0;package</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content></bold>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M38"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">library</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(SSDbain)</bold>
<bold>SSDANOVA(hyp1=<named-content content-type="pre"><inline-formula><mml:math id="M39"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu1=mu2=mu3&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,hyp2=<named-content content-type="pre"><inline-formula><mml:math id="M40"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;Ha&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,type=<named-content content-type="pre"><inline-formula><mml:math id="M41"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;equal&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,f1=</bold>
&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;<bold><named-content content-type="pre"><inline-formula><mml:math id="M42"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(0,0,0),f2=</bold>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M43"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(5.5,4.5,2),<named-content content-type="pre"><inline-formula><mml:math id="M44"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">var</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>=<named-content content-type="pre"><inline-formula><mml:math id="M45"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(4,4,4),BFthresh=3,eta=0.8,T=10000,</bold>
&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;<bold>seed=10)</bold>
</preformat>
<p>and the Call 3 below is used for a robust ANOVA:</p>
<preformat>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M46"><mml:mstyle class="text" mathcolor="#3f835f"><mml:mtext mathvariant="bold">&#x00023;load&#x000A0;SSDbain&#x000A0;package</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content></bold>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M47"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">library</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(SSDbain)</bold>
<bold>SSDANOVA<named-content content-type="pre"><inline-formula><mml:math id="M48"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">_</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>robust(hyp1=<named-content content-type="pre"><inline-formula><mml:math id="M49"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu1=mu2=mu3&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,hyp2=<named-content content-type="pre"><inline-formula><mml:math id="M50"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;Ha&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,f1=0,f2</bold>
&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;<bold>=0.25,skews=<named-content content-type="pre"><inline-formula><mml:math id="M51"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(0,0,0),</bold>
<bold>kurts=<named-content content-type="pre"><inline-formula><mml:math id="M52"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(0,0,0),<named-content content-type="pre"><inline-formula><mml:math id="M53"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">var</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>=<named-content content-type="pre"><inline-formula><mml:math id="M54"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(1.5,0.75,0.75),BFthresh=3,eta</bold>
&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;<bold>=0.8,T=10000,seed=10)</bold>
</preformat>
<p>The following arguments appear in these calls:
<list list-type="order">
<list-item><p><monospace>hyp1</monospace> and <monospace>hyp2</monospace>, strings that specify the hypotheses of interest. If the unconstrained hypothesis is used, <monospace>hyp2=&#x00022;Ha;&#x00022;</monospace> if the complement hypothesis is used, <monospace>hyp2=&#x00022;Hc.&#x00022;</monospace> In case of three groups the default setting is <monospace>hyp1=&#x00022;mu1=mu2=mu3,&#x00022;</monospace> and <monospace>hyp2=&#x00022;mu1&#x0003E;mu2&#x0003E;mu3,&#x00022;</monospace> which generalizes seamlessly to more than three groups.</p></list-item>
<list-item><p><monospace>type</monospace>, a string that specifies the type of ANOVA. If one expects that the <italic>K</italic> within-group variances are equal, <monospace>type=&#x00022;equal,&#x00022;</monospace> otherwise <monospace>type=&#x00022;unequal.&#x00022;</monospace></p></list-item>
<list-item><p><monospace>f1</monospace> and <monospace>f2</monospace>, parameters used to specify the populations corresponding to hyp1 and hyp2, respectively. There are two options. In Call 1 given above <monospace>f1</monospace> and <monospace>f2</monospace> denote Cohen&#x00027;s <italic>f</italic> &#x0003D; &#x003C3;<sub>&#x003BC;</sub>/&#x003C3; where &#x003C3;<sub>&#x003BC;</sub> denotes the standard deviation of the means of the <italic>K</italic> groups, and &#x003C3; denotes the common within-group standard deviation. If <monospace>type = &#x00022;equal,&#x00022;</monospace> the <monospace>var=NULL</monospace> is required, where <monospace>var = NULL</monospace> denotes that the variances do not have to be specified. If <monospace>type = &#x00022;unequal,&#x00022;</monospace> the <monospace>var</monospace> has to be specified by the users (see the next argument for detail). In Call 2 given above <monospace>f1</monospace> and <monospace>f2</monospace> contain the population means corresponding to both hypotheses <monospace>hyp1</monospace> and <monospace>hyp2</monospace>. This option can always be used and requires the specification of <monospace>var</monospace>. In Call 3, the combination of Cohen&#x00027;s <italic>f</italic> and within-group variances or the combination of means and variances are used to specify the populations of interest. In <xref ref-type="supplementary-material" rid="SM1">Appendix C</xref> it is elaborated how population means are computed if <monospace>f1</monospace> and <monospace>f2</monospace> denote Cohen&#x00027;s <italic>f</italic>.</p></list-item>
<list-item><p><monospace>var</monospace>, vector of length <italic>K</italic> that specifies the within-group variances of the <italic>K</italic> groups. If <monospace>type = &#x00022;equal&#x00022;</monospace> and <italic>f</italic><sub>1</sub> and <italic>f</italic><sub>2</sub> are Cohen&#x00027;s <italic>f</italic>, the specification <monospace>var = NULL</monospace> implies that each within-group variance is set to 1. In case of <monospace>type = &#x00022;unequal&#x00022;</monospace> or Call 3, the user needs to input Cohen&#x00027;s <italic>f</italic> and the variances for each group. The corresponding population means can be computed. In <xref ref-type="supplementary-material" rid="SM1">Appendix C</xref> it is elaborated how in both cases the corresponding population means are computed.</p></list-item>
<list-item><p><monospace>skews</monospace> and <monospace>kurts</monospace>, vectors of length <italic>K</italic> that specify the skewness and kurtosis for the <italic>K</italic> groups compared. Here kurtosis means the true kurtosis minus 3, that is, the kurtosis is 0 when the distribution is normal. The default setting is <monospace>skews=c(0,0,0)</monospace> and <monospace>kurts=c(0,0,0)</monospace>, which renders a normal distribution. Note that the relationship kurtosis &#x02265; skewness<sup>2</sup> &#x02212; 2 should hold (Shohat, <xref ref-type="bibr" rid="B38">1929</xref>).</p>
<p>Two situations can be distinguished. If researchers want to execute an ANOVA that is robust against outliers, both <monospace>skews</monospace> and <monospace>kurts</monospace> are zero vectors with dimension <italic>K</italic>. Outliers can be addressed in this manner because robust estimates of the mean and its variance obtained for data sampled from a normal distribution (that is, without outliers) are very similar to the robust estimates obtained for data sample from a normal distribution to which outliers are added. If researchers want to address skewed or heavy tailed data, they have to specify the expected skewness and kurtosis for each group.</p>
<p>The following gives guidelines for choosing appropriate values for skewness and kurtosis. If the population distribution is left-skewed, the skewness is a negative value; if the population distribution is right-skewed, the skewness is a positive value. The commonly used example of a distribution with a positive skewness is the distribution of salary data where many employees earn relatively little, while just a few employees have a high salary. In addition, typical response time data often show positive skewness because long response times are less common (Palmer et al., <xref ref-type="bibr" rid="B34">2011</xref>). The high school GPA of students who apply for college often shows a negative skewness. Furthermore, in psychological research, scores on easy cognitive tasks tend to be negatively skewed because the majority of participants can complete most tasks successfully (Wang et al., <xref ref-type="bibr" rid="B48">2008</xref>). If the population distribution is heavy-tailed relative to a normal distribution, the kurtosis is larger than 0; if the population distribution has lighter tailed than a normal distribution, the kurtosis is smaller than 0.</p>
<p>The values to be used for the skewness and kurtosis can be chosen based on a meta-analysis or literature review (e.g., Schmidt and Hunter, <xref ref-type="bibr" rid="B35">2015</xref>). The absolute value of the skewness is typically smaller than 3 in psychological studies. As a general rule, skewness and kurtosis values that are within &#x000B1;1 of the normal distribution&#x00027;s skewness of 0 and kurtosis of 0 indicate sufficient normality. Blanca et al. (<xref ref-type="bibr" rid="B3">2013</xref>) studied the shape of the distribution used in the real psychology, and found that 20% of the distribution showed extreme non-normality. Therefore, it is essential to consider robust ANOVA when the non-normal distribution is involved. After determining the values of the skewness and kurtosis relevant for their populations, researchers can use <monospace>SSDANOVA_robust</monospace> to determine the sample sizes needed for a robust evaluation of their hypotheses for data sampled from populations that skewed and/or show kurtosis. The non-normal data is generated from a generalization of the normal distribution that accounts for skewness and kurtosis. The Tukey <italic>g</italic>-and-<italic>h</italic> family of non-normal distributions (see, Headrick et al., <xref ref-type="bibr" rid="B20">2008</xref>; Jorge and Boris, <xref ref-type="bibr" rid="B25">1984</xref>) is commonly used for univariate real data generation in Monte Carlo studies. If the researchers input the skewness and kurtosis, <italic>g</italic> and <italic>h</italic> can be obtained (Headrick et al., <xref ref-type="bibr" rid="B20">2008</xref>). The data can be generated as follows. Firstly, <italic>T</italic> (see point 8 for a explanation on Page 18) data sets with sample size <italic>N</italic> from the standard distribution are simulated; secondly, observations are transformed into a sample from the <italic>g</italic>-and-<italic>h</italic>-distribution as below</p>
<p>if <italic>g</italic> &#x02260; 0
<disp-formula id="E16"><label>(15)</label><mml:math id="M55"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>T</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>A</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mi>B</mml:mi><mml:mo class="qopname">exp</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>h</mml:mi><mml:mo>/</mml:mo><mml:mn>2</mml:mn><mml:msup><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo class="qopname">exp</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>g</mml:mi><mml:mi>X</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>/</mml:mo><mml:mi>g</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
if <italic>g</italic> &#x0003D; 0
<disp-formula id="E17"><label>(16)</label><mml:math id="M56"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>T</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>A</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mi>B</mml:mi><mml:mo class="qopname">exp</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>h</mml:mi><mml:mo>/</mml:mo><mml:mn>2</mml:mn><mml:msup><mml:mrow><mml:mi>X</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>X</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <italic>X</italic> &#x0007E; <italic>N</italic>(0, 1), <italic>A</italic> is the mean parameter, <italic>B</italic> is the standard deviation parameter, <italic>g</italic> is the skewness parameter, and <italic>h</italic> is the kurtosis parameter.</p></list-item>
</list></p>
<sec>
<title>3.1. Intermezo: The probability that the Bayes factor is larger than a threshold value</title>
<p>In this intermezzo it will be elaborated how the required sample size is determined once the populations corresponding to the two competing hypotheses have been specified, that is, once the population group means, variances, and possibly skewness and kurtosis have been specified. <xref ref-type="fig" rid="F1">Figure 1</xref> portrays the distributions of the Bayes factor under <italic>H</italic><sub>0</sub> : &#x003BC;<sub>1</sub> &#x0003D; &#x003BC;<sub>2</sub> &#x0003D; &#x003BC;<sub>3</sub> and <italic>H</italic><sub>1</sub> : &#x003BC;<sub>1</sub> &#x0003E; &#x003BC;<sub>2</sub> &#x0003E; &#x003BC;<sub>3</sub>, that is, when data are repeatedly sampled from <italic>H</italic><sub>0</sub> and for each data set BF<sub>01</sub> is computed, what is the distribution of BF<sub>01</sub>, and, when data are repeatedly sampled from <italic>H</italic><sub>1</sub> and for each data set BF<sub>10</sub> is computed, what is the distribution of BF<sub>10</sub>. <xref ref-type="fig" rid="F1">Figure 1A</xref> shows the distribution obtained using <italic>N</italic> &#x0003D; 18 per group, and <xref ref-type="fig" rid="F1">Figure 1B</xref> shows the distribution obtained using <italic>N</italic> &#x0003D; 93 per group. To determine these sample sizes, two criteria are specified. First of all, what is the required size of the Bayes factor to be denoted by BF<sub><italic>thresh</italic></sub>; and, secondly, what should be the minimum probability that BF<sub>01</sub> and BF<sub>10</sub> are larger than BF<sub><italic>thresh</italic></sub> denoted by <italic>P</italic>(BF<sub>01</sub> &#x0003E; BF<sub><italic>thresh</italic></sub>|<italic>H</italic><sub>0</sub>) &#x02265; &#x003B7; and <italic>P</italic>(BF<sub>10</sub> &#x0003E; BF<sub><italic>thresh</italic></sub>|<italic>H</italic><sub>1</sub>) &#x02265; &#x003B7;, respectively. As can be seen in <xref ref-type="fig" rid="F1">Figure 1</xref>, BF<sub><italic>thresh</italic></sub> &#x0003D; 3 and &#x003B7; &#x0003D; 0.90, that is, with <italic>N</italic> &#x0003D; 18 <italic>P</italic>(BF<sub>01</sub> &#x0003E; 3|<italic>H</italic><sub>0</sub>) &#x02265; 0.90, and with <italic>N</italic> &#x0003D; 93 <italic>P</italic>(BF<sub>10</sub> &#x0003E; 3|<italic>H</italic><sub>1</sub>) &#x02265; 0.90. Therefore, to fulfill the criteria for both <italic>H</italic><sub>0</sub> and <italic>H</italic><sub>1</sub>, <italic>N</italic> &#x0003D; 93 persons per group are required.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>The sampling distribution of BF<sub>01</sub> under <italic>H</italic><sub>0</sub> and BF<sub>10</sub> under <italic>H</italic><sub>1</sub>. The vertical dashed line represents BF<sub><italic>thresh</italic></sub> &#x0003D; 3, and the gray area denotes &#x003B7;, that is, the probability that the Bayes factor is larger than 3. <bold>(A)</bold> <italic>N</italic> = 18 when <italic>H</italic><sub>0</sub> is true. <bold>(B)</bold> <italic>N</italic> = 93 and <italic>f</italic> = 0.25 when <italic>H</italic><sub>1</sub> is true.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpsyg-13-947768-g0001.tif"/>
</fig>
<p>Two aspects of sample size determination need to be elaborated: how to choose BF<sub><italic>thresh</italic></sub> and how to choose &#x003B7;. The choice of the <monospace>BF</monospace><sub><italic>thresh</italic></sub> is subjective, common values are 3, 5, and 10. In high-stakes research, such as a clinical trial to compare a new medication for cancer to a placebo and a standard medication, one would prefer a large BF<sub><italic>thresh</italic></sub>. In low-stakes research, such as an observational study on the comparison of ages of customers at three different coffeehouses, one may use a smaller BF<sub><italic>thresh</italic></sub>. The second is how to determine &#x003B7;. It should be noted that 1-&#x003B7; is the Bayesian counterpart of the Type I error rate if <monospace>hyp1</monospace> is true, and the Bayesian counterpart of the Type II error rate if <monospace>hyp2</monospace> is true. If the consequences of failing to detect the effect could be serious, such as in toxicity testing, one might want a relatively high &#x003B7; such as 0.90. In studies where one may only be interested in large effects, an error for detecting the effect may not have such serious consequences. Here an &#x003B7; &#x0003D; 0.80 may be sufficient.</p>
<list list-type="simple">
<list-item><p>6. <monospace>BFthresh</monospace>, a numeric value not less than 1 that specifies the required size of the Bayes factor. The default setting is <monospace>BFthresh=3</monospace>.</p></list-item>
<list-item><p>7. <monospace>eta</monospace>, a numeric value that specifies the probability that the Bayes factor is larger than <monospace>BFthresh</monospace> if either of the competing hypotheses is true. The default setting is <monospace>eta=0.80</monospace>.</p></list-item>
<list-item><p>8. <monospace>T</monospace>, a positive integer that specifies the number of data sets sampled from the populations corresponding to the two hypotheses of interest. A larger number of samples returns a more precise sample size estimate but takes longer to run. We recommend that users start with a smaller number of samples (e.g., <monospace>T</monospace> <monospace>=</monospace> <monospace>1,000</monospace>) to get a rough estimate of sample size before confirming it with the default setting <monospace>T</monospace> <monospace>= 10,000</monospace>.</p></list-item>
<list-item><p>9. <monospace>seed</monospace>, a positive integer that specifies the seed of <monospace>R</monospace>&#x00027;s random number generator. It should be noted that different data sets are simulated in Step 8 if a different seed is used, and thus, that the results of sample size determination may be slightly different. However, the sample sizes obtained using two different seeds give an indication of the stability of the results (this will be highlighted when discussing Table 4 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>). The default setting is <monospace>seed=10</monospace>.</p></list-item>
</list>
<p>The results of the functions <monospace>SSDANOVA</monospace> and <monospace>SSDANOVA_robust</monospace> include the sample size required per group and the corresponding probability that the Bayes factor is larger than BF<sub><italic>thresh</italic></sub> when either of the competing hypotheses is true. For example, if the following call to <monospace>SSDANOVA</monospace> is executed</p>
<preformat>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M57"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">library</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(SSDbain)</bold>
<bold>SSDANOVA(hyp1&#x000A0;=&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M58"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu1=mu2=mu3,&#x000A0;&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>hyp2&#x000A0;=&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M59"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;Ha,&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;type&#x000A0;=&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M60"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content></bold>
&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;<bold><named-content content-type="pre"><inline-formula><mml:math id="M61"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">equal,&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;f1&#x000A0;=&#x000A0;0,&#x000A0;f2&#x000A0;=&#x000A0;0.25,&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M62"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">var</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;=&#x000A0;NULL,</bold>
<bold>BFthresh&#x000A0;=&#x000A0;3,&#x000A0;eta=0.8,&#x000A0;T&#x000A0;=&#x000A0;10000,&#x000A0;seed&#x000A0;=&#x000A0;10)</bold>
</preformat>
<p>the results for <italic>b</italic> based on the minimum value of <italic>J</italic>, and the results for <italic>b</italic> based on 2<italic>J</italic> and 3<italic>J</italic> (with the aim to address the sensitivity to the specification of the prior distribution) are:</p>
<preformat>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;using&#x000A0;</bold><italic><bold>N</bold></italic><bold>&#x000A0;=&#x000A0;93&#x000A0;and&#x000A0;</bold><italic><bold>b</bold></italic><bold>&#x000A0;=&#x000A0;0.007</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;P(BF0a&#x0003E;3|H0)=0.977</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;P(BFa0&#x0003E;3|Ha)=0.801</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;using&#x000A0;</bold><italic><bold>N</bold></italic><bold>&#x000A0;=&#x000A0;83&#x000A0;and&#x000A0;</bold><italic><bold>b</bold></italic><bold>&#x000A0;=&#x000A0;0.016</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;P(BF0a&#x0003E;3|H0)=0.949</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;P(BFa0&#x0003E;3|Ha)=0.802</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;using&#x000A0;</bold><italic><bold>N</bold></italic><bold>&#x000A0;=&#x000A0;77&#x000A0;and&#x000A0;</bold><italic><bold>b</bold></italic><bold>&#x000A0;=&#x000A0;0.026</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;P(BF0a&#x0003E;3|H0)=0.918</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;P(BFa0&#x0003E;3|Ha)=0.802</bold>
</preformat>
<p>Further interpretation of the results of SSD will be given in the form of three examples that will be presented after the next section.</p></sec></sec>
<sec id="s4">
<title>4. Features of sample size determination for one-way ANOVAs</title>
<p>In this section sample sizes are given based on classical hypotheses, informative hypotheses, and their complement hypotheses for one-way ANOVAs with three groups when the effect size is Cohen&#x00027;s <italic>f</italic> &#x0003D; 0.1, <italic>f</italic> &#x0003D; 0.25, and <italic>f</italic> &#x0003D; 0.4. Table 1 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> shows the populations corresponding to <italic>H</italic><sub>1</sub>, <italic>H</italic><sub>2</sub>, <italic>H</italic><sub><italic>a</italic></sub>, and <italic>H</italic><sub><italic>c</italic></sub> for three different effect sizes when the pooled within-group variance is 1. Tables 2&#x02013;5 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> show the sample size and the corresponding probability that the Bayes factor is larger than BF<sub><italic>thresh</italic></sub> for regular, Welch&#x00027;s and robust ANOVA for <italic>H</italic><sub>0</sub> vs. <italic>H</italic><sub><italic>a</italic></sub>, <italic>H</italic><sub>0</sub> vs. <italic>H</italic><sub>1</sub>, <italic>H</italic><sub>1</sub> vs. <italic>H</italic><sub>2</sub>, and <italic>H</italic><sub>1</sub> vs. <italic>H</italic><sub><italic>c</italic></sub>, respectively. Table 6 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> displays the robust ANOVA for moderately skewed, extremely skewed, and heavy tailed populations. All the tables are obtained with <monospace>set.seed=10</monospace>. To illustrate the stability of the results when using <monospace>T</monospace> <monospace>= 10,000</monospace>, in Table 4 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> additionally the results are obtained using <monospace>set.seed=1234</monospace>. Based on the results presented in these tables a number of features of SSD will be highlighted.</p>
<p>Comparing Table 3 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> with Table 2 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>, it can be seen that the sample size required is smaller if <italic>H</italic><sub>0</sub> is compared to the order constrained hypothesis <italic>H</italic><sub>1</sub> instead of to the unconstrained hypothesis <italic>H</italic><sub><italic>a</italic></sub>. For example, if effect size <italic>f</italic> &#x0003D; 0.25, BF<sub><italic>thresh</italic></sub> &#x0003D; 3, &#x003B7; &#x0003D; 0.8, and regular ANOVA are chosen, the sample size required is 93 per group if <italic>H</italic><sub>0</sub> is compared to <italic>H</italic><sub><italic>a</italic></sub>, while the sample size required is 71 per group if <italic>H</italic><sub>0</sub> is compared to <italic>H</italic><sub>1</sub>. This is because <italic>H</italic><sub>1</sub> is more precise than <italic>H</italic><sub><italic>a</italic></sub> and it is easier to find evidence against or for a more precise hypothesis.</p>
<p>Comparing Table 4 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> with Table 3 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>, it can be clearly seen that the comparison of two non-nested hypotheses like <italic>H</italic><sub>1</sub> and <italic>H</italic><sub>2</sub> requires less sample size than the comparison of nested hypotheses like <italic>H</italic><sub>0</sub> and <italic>H</italic><sub>1</sub> (<italic>H</italic><sub>0</sub> is in fact on the boundary of <italic>H</italic><sub>1</sub>). For example, if effect size <italic>f</italic> &#x0003D; 0.25, BF<sub><italic>thresh</italic></sub> &#x0003D; 3, &#x003B7; &#x0003D; 0.8, and regular ANOVA is used, the sample size required is 71 per group if <italic>H</italic><sub>0</sub> is compared to <italic>H</italic><sub>1</sub>, while the sample size required is 13 per group for <italic>H</italic><sub>1</sub> is compared to <italic>H</italic><sub>2</sub>. The same phenomenon can be observed comparing Table 4 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> (<italic>H</italic><sub>1</sub> vs. <italic>H</italic><sub>2</sub>) with Table 5 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> (<italic>H</italic><sub>1</sub> vs. <italic>H</italic><sub><italic>c</italic></sub>). Although in both cases non-nested hypotheses are compared, <italic>H</italic><sub>2</sub> is much more precise than <italic>H</italic><sub><italic>c</italic></sub> and therefore the required sample size for the comparison of <italic>H</italic><sub>1</sub> with <italic>H</italic><sub>2</sub> is smaller than for the comparison of <italic>H</italic><sub>1</sub> with <italic>H</italic><sub><italic>c</italic></sub>. In summary the more specific the hypotheses that are evaluated, the smaller the required sample size. The sample size is further reduced if two non-nested hypotheses are compared.</p>
<p>From Tables 2&#x02013;5 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>, it appears that the sample size required is smaller for a regular ANOVA than for a Welch&#x00027;s ANOVA. For example, as shown in Table 2 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>, if effect size <italic>f</italic> &#x0003D; 0.25, BF<sub><italic>thresh</italic></sub> &#x0003D; 3, &#x003B7; &#x0003D; 0.8, and <italic>H</italic><sub>0</sub> vs. <italic>H</italic><sub><italic>a</italic></sub>, the sample size required for regular ANOVA is 93 per group, while the sample size required is 102 per group for Welch&#x00027;s ANOVA. However, this is not always the case. The sample size required for Welch&#x00027;s ANOVA may be smaller than the sample size required for a regular ANOVA. The main determinant is order of the size of the variances relative to the order of the means.</p>
<p>For the robust ANOVA, two situations are evaluated. First of all, if the data may include outliers, Tables 2&#x02013;5 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> apply, because sampling from a normal distribution and using 20% trimming is a very good approximation of sampling from a normal with outliers. Secondly, if the data is skewed or heavy tailed, the results in Table 6 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> apply. Three situations are distinguished: skewness = 0.61 and kurtosis = 0.67, skewness = 1.75 and kurtosis = 5.89, and skewness = 0 and kurtosis = 6.94. These three situations represent moderately skewed, extremely skewed, and extremely heavy-tailed distributions that are often encountered in psychological research (Micceri, <xref ref-type="bibr" rid="B30">1989</xref>; Cain et al., <xref ref-type="bibr" rid="B5">2017</xref>). From Tables 2&#x02013;5 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>, it can be seen that the sample size required is the largest for robust ANOVA. Comparing Table 3 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref> in which the data had a skewness of 0 and a kurtosis of 0 with Table 6 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>, it can be seen that the required sample sizes are larger if robust ANOVA is used to evaluate hypotheses using data sampled from skewed and heavy tailed population distributions.</p>
<p>In addition, the extremely skewed distribution needs smaller sample size than moderately skewed, and the extremely heavy tailed needs a higher sample size than skewed.</p>
<p>Finally, as is illustrated in Table 4 in <xref ref-type="supplementary-material" rid="SM1">Appendix</xref>, when <monospace>T</monospace> <monospace>= 1,0000</monospace> is used, the results of SSD are very stable, that is, the required sample sizes and &#x003B7;<sub>1</sub> and &#x003B7;<sub>2</sub> are irrelevantly different if different seeds are used. This was also observed for the other tables but these results are not reported in this paper.</p></sec>
<sec id="s5">
<title>5. Examples of sample size determination for one-way ANOVAs</title>
<p>To demonstrate how to use the functions <monospace>SSDANOVA</monospace> and <monospace>SSDANOVA_robust</monospace> to execute SSD for one-way ANOVAs in practice, in the following we introduce three practical examples. The first example presents the SSD process for the regular ANOVA, the second example presents the SSD process for the Welch&#x00027;s ANOVA, and the third example presents the SSD process for the robust ANOVA.</p>
<p><monospace>Example 1:</monospace> A team of researchers in the field of educational science wants to conduct a study in the area of mathematics education involving different teaching methods to improve standardized math scores. The study will randomly assign fourth grade students who are randomly sampled from a large urban school district to three different teaching methods. The teaching methods are 1) The traditional teaching method where the classroom teacher explains the concepts and assigns homework problems from the textbook; 2) the intensive practice method, in which students fill out additional work sheets both before and after school; 3) the peer assistance learning method, which pairs each fourth grader with a fifth grader who helps them learn the concepts. At the end of the semester all students take the Multiple Math Proficiency Inventory (MMPI). The researchers expect that the traditional teaching group (Group 1) will have the lowest mean score and that the peer assistance group (Group 3) will have the highest mean score. That is,</p>
<p><italic>H</italic><sub>1</sub> : &#x003BC;<sub>3</sub> &#x0003E; &#x003BC;<sub>2</sub> &#x0003E; &#x003BC;<sub>1</sub>.</p>
<p>This hypothesis is compared to <italic>H</italic><sub>0</sub> which states that the standardized math scores are the same in the three conditions.</p>
<p><italic>H</italic><sub>0</sub>: &#x003BC;<sub>1</sub> &#x0003D; &#x003BC;<sub>2</sub> &#x0003D; &#x003BC;<sub>3</sub>.</p>
<p>The researchers guess a priori that Group 1 has a mean of 550, Group 2 has a mean of 560, and Group 3 has a mean that equals 580. Based on prior research, the common standard deviation &#x003C3; is set to 50. Therefore the effect size is <inline-formula><mml:math id="M63"><mml:mi>f</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>.</mml:mo><mml:mn>249</mml:mn></mml:math></inline-formula>. The researchers decide to use BF<sub><italic>thresh</italic></sub> &#x0003D; 3 because they are happy to get some evidence in favor of the best hypothesis. They also choose &#x003B7; &#x0003D; 0.8 because their research is not a high-stakes research. The researchers also want to do a sensitivity analysis to see how the sample size is influenced by <italic>b</italic>. To determine the required sample size the researchers use the following call to <monospace>SSDANOVA</monospace>.</p>
<preformat>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M64"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">library</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(SSDbain)</bold>
<bold>SSDANOVA(hyp1=<named-content content-type="pre"><inline-formula><mml:math id="M65"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu1=mu2=mu3,&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;hyp2&#x000A0;=&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M66"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu3&#x0003E;mu2&#x0003E;mu1,&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content></bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;type&#x000A0;=&#x000A0;&#x00027;&#x00027;<named-content content-type="pre"><inline-formula><mml:math id="M67"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">equal</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>,&#x00027;&#x00027;&#x000A0;f1&#x000A0;=&#x000A0;(0,0,0),</bold>
<bold>f2=<named-content content-type="pre"><inline-formula><mml:math id="M68"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(550,560,580),&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M69"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">var</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;=&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M70"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(2,500,2,500,2,500),</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;BFthresh=3,eta=0.8,&#x000A0;T&#x000A0;=&#x000A0;10000,</bold>
<bold>seed=10)</bold>
</preformat>
<p>The results are as follows:</p>
<preformat>
<bold>using&#x000A0;N&#x000A0;=&#x000A0;73&#x000A0;and&#x000A0;b&#x000A0;=&#x000A0;0.009</bold>
<bold>P(BF03&#x0003E;3|H0)=0.972</bold>
<bold>P(BF30&#x0003E;3|H3)=0.801</bold>
<bold>using&#x000A0;N&#x000A0;=&#x000A0;62&#x000A0;and&#x000A0;b&#x000A0;=&#x000A0;0.021</bold>
<bold>P(BF03&#x0003E;3|H0)=0.944</bold>
<bold>P(BF30&#x0003E;3|H3)=0.803</bold>
<bold>using&#x000A0;N&#x000A0;=&#x000A0;55&#x000A0;and&#x000A0;b&#x000A0;=&#x000A0;0.036</bold>
<bold>P(BF03&#x0003E;3|H0)=0.909</bold>
<bold>P(BF30&#x0003E;3|H3)=0.802</bold>
</preformat>
<p>According to the results the researchers should execute their project using between 55 and 73 persons per group. These are the numbers that they can submit to the (medical) ethical review committee, and, to which they should tailor their resources (time, effort and money). The researchers can combine the results of SSD with Bayesian updating (see the elaboration on this topic in Fu et al., <xref ref-type="bibr" rid="B14">2020</xref>) to avoid using too few or too many persons. Bayesian updating can be executed as follows. They can use 1/4 of the sample size 73, that is, collect 18 students per group firstly, and compute the Bayes factor once the data have been collected. If the Bayes factor is larger than 3, they stop the experiment; otherwise, they collect another 18 students per group, compute the Bayes factor using 36 students per group, and check if the Bayes factor is larger than 3, etc. In this manner, resources can be used in an optimal way while reaching the required amount of evidence.</p>
<p><monospace>Example 2:</monospace> A team of psychologists is interested in whether male college students&#x00027; hair color (1: black, 2: blond, or 3: brunette) influences their social extroversion. The students are given a measure of social extroversion with a range from 0 (low) to 10 (high). Based on a meta analysis of research projects addressing the same research question, the means in the three groups are specified as 7.33, 6.13, and 5.00, and the standard deviations are 2.330, 2.875, and 2.059, respectively. The sampling variance which is denoted as &#x00027;var&#x00027; in the following code is the squared of standard deviation. The effect size is <inline-formula><mml:math id="M71"><mml:mi>f</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>.</mml:mo><mml:mn>39</mml:mn></mml:math></inline-formula>. The researchers want to replicate the result emerging of the existing body of evidence, that is, is it <italic>H</italic><sub>1</sub>: &#x003BC;<sub>1</sub> &#x0003E; &#x003BC;<sub>2</sub> &#x0003E; &#x003BC;<sub>3</sub> or <italic>H</italic><sub><italic>c</italic></sub>: not <italic>H</italic><sub>1</sub>. They want to obtain decisive evidence BF<sub><italic>thresh</italic></sub> = 10 with a high probability &#x003B7; &#x0003D; 0.90. The researchers use the following call to <monospace>SSDANOVA</monospace>:</p>
<preformat>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M72"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">library</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(SSDbain)</bold>
<bold>SSDANOVA(hyp1=<named-content content-type="pre"><inline-formula><mml:math id="M73"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu1&#x0003E;mu2&#x0003E;mu3,&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;hyp2=<named-content content-type="pre"><inline-formula><mml:math id="M74"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;Hc,&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;type=&#x00027;&#x00027;unequal</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;,&#x00027;&#x00027;&#x000A0;f1=<named-content content-type="pre"><inline-formula><mml:math id="M75"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(7.33,6.13,5.00),</bold>
<bold>f2=<named-content content-type="pre"><inline-formula><mml:math id="M76"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(5.00,7.33,6.13),&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M77"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">var</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>=<named-content content-type="pre"><inline-formula><mml:math id="M78"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(2.330^2,2.875^2,2.059^2),</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;BFthresh=10,&#x000A0;eta=0.9,</bold>
<bold>T&#x000A0;=&#x000A0;10000,&#x000A0;seed=10)</bold>
</preformat>
<p>The results are as follows:</p>
<preformat>
<bold>using&#x000A0;N&#x000A0;=&#x000A0;38&#x000A0;and&#x000A0;b&#x000A0;=&#x000A0;0.017</bold>
<bold>P(BF1c&#x0003E;3|H1)=0.903</bold>
<bold>P(BFc1&#x0003E;3|Hc)=0.988</bold>
</preformat>
<p>Therefore the researchers should obtain 38 males for each hair color.</p>
<p><monospace>Example 3:</monospace> A team of economists would like to conduct a study to compare the average salary of three age groups in the US. The typical salary distribution in an age group population usually shows positive skewness. Three age groups that include 25-34, 35-44, and 45-54 years old are considered, and the mean salaries for these three groups are denoted as &#x003BC;<sub>1</sub>, &#x003BC;<sub>2</sub>, and &#x003BC;<sub>3</sub>, respectively. Based on prior research, experts&#x00027; opinion or a pilot study, they assume the effect size is <italic>f</italic> &#x0003D; 0.25, the variances are 1.5, 0.75, and 0.75, the skewnesses are 2, 2.5, and 1.75, and the kurtosis is 6, 10, and 6, respectively. The researchers are only interested in a decision for or against one of the two hypotheses involved. Therefore they use BF<sub><italic>thresh</italic></sub> &#x0003D; 1 and use &#x003B7; &#x0003D; 0.90 to have a high probability that the observed Bayes factor correctly identifies the best hypothesis. Two hypotheses are involved: <italic>H</italic><sub>1</sub>:&#x003BC;<sub>2</sub> &#x0003E; &#x003BC;<sub>3</sub> &#x0003E; &#x003BC;<sub>1</sub> and <italic>H</italic><sub>2</sub>:&#x003BC;<sub>3</sub> &#x0003E; &#x003BC;<sub>2</sub> &#x0003E; &#x003BC;<sub>1</sub>. The following call is used:</p>
<preformat>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M79"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">library</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(SSDbain)</bold>
<bold>SSDANOVA<named-content content-type="pre"><inline-formula><mml:math id="M80"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">_</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>robust(hyp1=<named-content content-type="pre"><inline-formula><mml:math id="M81"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu2&#x0003E;mu3&#x0003E;mu1,&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;hyp2=<named-content content-type="pre"><inline-formula><mml:math id="M82"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;mu3&#x0003E;mu2&#x0003E;mu1,</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content></bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;<named-content content-type="pre"><inline-formula><mml:math id="M83"><mml:mstyle class="text" mathcolor="#7f459a"><mml:mtext mathvariant="bold">&#x00022;</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>&#x000A0;f1=0.25,f2=0.25,skews=</bold>
<bold><named-content content-type="pre"><inline-formula><mml:math id="M84"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(2,2.5,1.75),kurts=<named-content content-type="pre"><inline-formula><mml:math id="M85"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(6,10,6),<named-content content-type="pre"><inline-formula><mml:math id="M86"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">var</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>=<named-content content-type="pre"><inline-formula><mml:math id="M87"><mml:mstyle class="text" mathcolor="#ec008d"><mml:mtext mathvariant="bold">c</mml:mtext></mml:mstyle></mml:math></inline-formula></named-content>(1.5,0.75,0.75),</bold>
<bold>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;BFthresh=1,eta=0.9,</bold>
<bold>T&#x000A0;=&#x000A0;10000,&#x000A0;seed=10)</bold>
</preformat>
<preformat>
<bold>using&#x000A0;N&#x000A0;=&#x000A0;50&#x000A0;and&#x000A0;b&#x000A0;=&#x000A0;0.013</bold>
<bold>P(BF23&#x0003E;1|H2)=0.976</bold>
<bold>P(BF32&#x0003E;1|H3)=0.904</bold>
</preformat>
<p>The results show that if the researchers survey 50 persons per group, they have a probability that the Bayes factor is larger than 1 of 0.976 if <italic>H</italic><sub>1</sub> is true or get a probability that the Bayes factor is larger than 1 of 0.904 if <italic>H</italic><sub>2</sub> is true.</p></sec>
<sec sec-type="conclusions" id="s6">
<title>6. Conclusion</title>
<p>In this paper we introduced sample size determination for the evaluation of the classical null and alternative hypotheses and informative hypotheses (and their complement) in the one way ANOVA context, using the AAFBF as is implemented in the <monospace>R</monospace> package <monospace>bain</monospace>. Our SSD approach is implemented in the functions <monospace>SSDANOVA</monospace> (which covers regular ANOVA and Welch&#x00027;s ANOVA) and <monospace>SSDANOVA_robust</monospace> (which covers robust ANOVA) which are part of the <monospace>R</monospace> package <monospace>SSDbain</monospace>. Besides the one-way ANOVA, <monospace>SSDbain</monospace> also contains the function <monospace>SSDttest</monospace> (Fu et al., <xref ref-type="bibr" rid="B14">2020</xref>). In the near future another function, <monospace>SSDregression</monospace>, will be added to evaluate (informative) hypotheses using the Bayes factor in the context of multiple regression models. We believe that the <monospace>R</monospace> package <monospace>SSDbain</monospace> is a welcome addition to the applied researcher&#x00027;s toolbox, and may help the researcher to get an idea about the required sample sizes while planning a research project. The novelty of this research can be concluded as follows:
<list list-type="order">
<list-item><p>A new sample size determination principle is proposed. Different from traditional unilateral principle, we give a principle, which can be described as the probability that the Bayes factor is larger than a threshold value is at least? when either of the hypotheses under consideration is true.</p></list-item>
<list-item><p>A sample size determination method based on dichotomy is proposed, which can effectively reduce the computation effort. In the traditional sample size determination method, the sample size is increase by 1 until the termination conditions are satisfied. This method is simple and easy to be implemented. However, it might be very time-consuming especially when the sample size is very large. The dichotomy-based sample size determination method only requires a small number of iterations, which is more convenient to the practical application.</p></list-item>
<list-item><p>The sample size determination method proposed in this paper has wider applicability. The software developed in this paper is available for Bayesian ANOVA, Bayesian Welch&#x00027;s ANOVA, and Bayesian robust ANOVA.</p></list-item>
</list></p>
<p>The usage of informative hypothesis results in a reduction in the number of sample size required, which further saves the resources. However, Given the sample size requirement for informative hypotheses is usually lower, the researchers may choose to plan their studies with an informative hypothesis even when there is no strong evidence for the specified direction of the means, just so that they can justify their small sample size. This may further exacerbate the replicability crisis problems in the literature. Therefore, the user should be careful if the informative hypothesis is introduced.</p></sec>
<sec sec-type="data-availability" id="s7">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/<xref ref-type="supplementary-material" rid="SM1">Supplementary material</xref>, further inquiries can be directed to the corresponding author/s.</p></sec>
<sec id="s8">
<title>Author contributions</title>
<p>QF, MM, and HH designed the research. QF developed the software package and wrote the paper. MM and HH gave feedback on software development, constructing, and writing the paper. All authors contributed to the article and approved the submitted version.</p></sec>
<sec sec-type="funding-information" id="s9">
<title>Funding</title>
<p>QF was supported by the China Scholarship Council. HH was supported by a fellowship from the Netherlands Institute for Advanced Study in the Humanities and Social Sciences (NIAS-KNAW) and the Consortium on Individual Development (CID) which was funded through the Gravitation program of the Dutch Ministry of Education, Culture, and Science and the Netherlands Organization for Scientific Research (NWO Grant No. 024.001.003).</p></sec>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p></sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x00027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p></sec>
</body>
<back>
<sec sec-type="supplementary-material" id="s11">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fpsyg.2022.947768/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fpsyg.2022.947768/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="Data_Sheet_1.pdf" id="SM1" mimetype="application/pdf" xmlns:xlink="http://www.w3.org/1999/xlink"/></sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Berger</surname> <given-names>J. O.</given-names></name> <name><surname>Pericchi</surname> <given-names>L. R.</given-names></name></person-group> (<year>1996</year>). <article-title>The intrinsic Bayes factor for model selection and prediction</article-title>. <source>J. Am. Stat. Assoc</source>. <volume>91</volume>, <fpage>109</fpage>&#x02013;<lpage>122</lpage>. <pub-id pub-id-type="doi">10.1080/01621459.1996.10476668</pub-id></citation></ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Berger</surname> <given-names>J. O.</given-names></name> <name><surname>Pericchi</surname> <given-names>L. R.</given-names></name></person-group> (<year>2004</year>). <article-title>Training samples in objective bayesian model selection</article-title>. <source>Ann. Stat</source>. <volume>32</volume>, <fpage>841</fpage>&#x02013;<lpage>869</lpage>. <pub-id pub-id-type="doi">10.1214/009053604000000229</pub-id></citation></ref>
<ref id="B3">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Blanca</surname> <given-names>M. J.</given-names></name> <name><surname>Arnau</surname> <given-names>J.</given-names></name> <name><surname>L&#x000F3;pez-Montiel</surname> <given-names>D.</given-names></name> <name><surname>Bono</surname> <given-names>R.</given-names></name> <name><surname>Bendayan</surname> <given-names>R.</given-names></name></person-group> (<year>2013</year>). <article-title>Skewness and kurtosis in real data samples</article-title>. <source>Methodology</source> <volume>9</volume>, <fpage>78</fpage>&#x02013;<lpage>84</lpage>. <pub-id pub-id-type="doi">10.1027/1614-2241/a000057</pub-id></citation></ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bosman</surname> <given-names>M.</given-names></name></person-group> (<year>2018</year>). <source>Robust Bayes factors for Bayesian ANOVA: Overcoming adverse effects of non-normality and outliers</source>. Master&#x00027;s thesis.</citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cain</surname> <given-names>M. K.</given-names></name> <name><surname>Zhang</surname> <given-names>Z.</given-names></name> <name><surname>Yuan</surname> <given-names>K.-H.</given-names></name></person-group> (<year>2017</year>). <article-title>Univariate and multivariate skewness and kurtosis for measuring nonnormality: prevalence, influence and estimation</article-title>. <source>Behav. Res. Methods</source> <volume>49</volume>, <fpage>1716</fpage>&#x02013;<lpage>1735</lpage>. <pub-id pub-id-type="doi">10.3758/s13428-016-0814-1</pub-id><pub-id pub-id-type="pmid">27752968</pub-id></citation></ref>
<ref id="B6">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Cohen</surname> <given-names>J.</given-names></name></person-group> (<year>1988</year>). <source>Statistical Power Analysis for the Behavioral Sciences, 2nd Edn</source>. <publisher-loc>Hillsdale, NJ</publisher-loc>: <publisher-name>Erlbaum</publisher-name>.</citation></ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cohen</surname> <given-names>J.</given-names></name></person-group> (<year>1992</year>). <article-title>A power primer</article-title>. <source>Psychol. Bull</source>. <volume>112</volume>, <fpage>155</fpage>&#x02013;<lpage>159</lpage>. <pub-id pub-id-type="doi">10.1037/0033-2909.112.1.155</pub-id></citation></ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Coombs</surname> <given-names>W. T.</given-names></name> <name><surname>Algina</surname> <given-names>J.</given-names></name> <name><surname>Oltman</surname> <given-names>D. O.</given-names></name></person-group> (<year>1996</year>). <article-title>Univariate and multivariate omnibus hypothesis tests selected to control type i error rates when population variances are not necessarily equal</article-title>. <source>Rev. Educ. Res</source>. <volume>66</volume>, <fpage>137</fpage>&#x02013;<lpage>179</lpage>. <pub-id pub-id-type="doi">10.3102/00346543066002137</pub-id></citation></ref>
<ref id="B9">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dumas-Mallet</surname> <given-names>E.</given-names></name> <name><surname>Button</surname> <given-names>K. S.</given-names></name> <name><surname>Boraud</surname> <given-names>T.</given-names></name> <name><surname>Gonon</surname> <given-names>F.</given-names></name> <name><surname>Munaf&#x000F2;</surname> <given-names>M. R.</given-names></name></person-group> (<year>2017</year>). <article-title>Low statistical power in biomedical science: a review of three human research domains</article-title>. <source>R. Soc. Open Sci</source>. <volume>4</volume>, <fpage>160254</fpage>. <pub-id pub-id-type="doi">10.1098/rsos.160254</pub-id><pub-id pub-id-type="pmid">28386409</pub-id></citation></ref>
<ref id="B10">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Elashoff</surname> <given-names>J.</given-names></name></person-group> (<year>2007</year>). <source>nQuery version 7.0 Advisor User&#x00027; Guide. Los Angeles, CA</source>. Available online at: <ext-link ext-link-type="uri" xlink:href="https://cdn2.hubspot.net/hubfs/488764/nQ70_Manual.pdf">https://cdn2.hubspot.net/hubfs/488764/nQ70_Manual.pdf</ext-link></citation></ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Faul</surname> <given-names>F.</given-names></name> <name><surname>Erdfelder</surname> <given-names>E.</given-names></name> <name><surname>Buchner</surname> <given-names>A.</given-names></name> <name><surname>Lang</surname> <given-names>A.-G.</given-names></name></person-group> (<year>2009</year>). <article-title>Statistical power analyses using g* power 3.1: tests for correlation and regression analyses</article-title>. <source>Behav. Res. Methods</source> <volume>41</volume>, <fpage>1149</fpage>&#x02013;<lpage>1160</lpage>. <pub-id pub-id-type="doi">10.3758/BRM.41.4.1149</pub-id><pub-id pub-id-type="pmid">19897823</pub-id></citation></ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Faul</surname> <given-names>F.</given-names></name> <name><surname>Erdfelder</surname> <given-names>E.</given-names></name> <name><surname>Lang</surname> <given-names>A.-G.</given-names></name> <name><surname>Buchner</surname> <given-names>A.</given-names></name></person-group> (<year>2007</year>). <article-title>G* Power 3: a flexible statistical power analysis program for the social, behavioral, and biomedical sciences</article-title>. <source>Behav. Res. Methods</source> <volume>39</volume>, <fpage>175</fpage>&#x02013;<lpage>191</lpage>. <pub-id pub-id-type="doi">10.3758/BF03193146</pub-id><pub-id pub-id-type="pmid">17695343</pub-id></citation></ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Fraley</surname> <given-names>R. C.</given-names></name> <name><surname>Vazire</surname> <given-names>S.</given-names></name></person-group> (<year>2014</year>). <article-title>The n-pact factor: evaluating the quality of empirical journals with respect to sample size and statistical power</article-title>. <source>PLoS ONE</source> <volume>9</volume>, <fpage>e109019</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0109019</pub-id><pub-id pub-id-type="pmid">25296159</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Fu</surname> <given-names>Q.</given-names></name> <name><surname>Hoijtink</surname> <given-names>H.</given-names></name> <name><surname>Moerbeek</surname> <given-names>M.</given-names></name></person-group> (<year>2020</year>). <article-title>Sample-size determination for the Bayesian t test and Welch&#x00027;s test using the approximate adjusted fractional Bayes factor</article-title>. <source>Behav. Res. Methods</source> <volume>53</volume>, <fpage>139</fpage>&#x02013;<lpage>152</lpage>. <pub-id pub-id-type="doi">10.31234/osf.io/2v4js</pub-id><pub-id pub-id-type="pmid">32632740</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Gelman</surname> <given-names>A.</given-names></name> <name><surname>Carlin</surname> <given-names>J. B.</given-names></name> <name><surname>Stern</surname> <given-names>H. S.</given-names></name> <name><surname>Dunson</surname> <given-names>D. B.</given-names></name> <name><surname>Vehtari</surname> <given-names>A.</given-names></name> <name><surname>Rubin</surname> <given-names>D. B.</given-names></name></person-group> (<year>2013</year>). <source>Bayesian Data Analysis, 3rd Edn</source>. <publisher-loc>Boca Raton, FL</publisher-loc>: <publisher-name>Chapman and Hall/CRC</publisher-name>.</citation></ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Glass</surname> <given-names>G. V.</given-names></name> <name><surname>Peckham</surname> <given-names>P. D.</given-names></name> <name><surname>Sanders</surname> <given-names>J. R.</given-names></name></person-group> (<year>1972</year>). <article-title>Consequences of failure to meet assumptions underlying the fixed effects analyses of variance and covariance</article-title>. <source>Rev. Educ. Res</source>. <volume>42</volume>, <fpage>237</fpage>&#x02013;<lpage>288</lpage>. <pub-id pub-id-type="doi">10.3102/00346543042003237</pub-id></citation></ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gu</surname> <given-names>X.</given-names></name> <name><surname>Mulder</surname> <given-names>J.</given-names></name> <name><surname>Hoijtink</surname> <given-names>H.</given-names></name></person-group> (<year>2018</year>). <article-title>Approximated adjusted fractional Bayes factors: a general method for testing informative hypotheses</article-title>. <source>Br. J. Math. Stat. Psychol</source>. <volume>71</volume>, <fpage>229</fpage>&#x02013;<lpage>261</lpage>. <pub-id pub-id-type="doi">10.1111/bmsp.12110</pub-id><pub-id pub-id-type="pmid">28857129</pub-id></citation></ref>
<ref id="B18">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Harlow</surname> <given-names>L. L. E.</given-names></name> <name><surname>Mulaik</surname> <given-names>S. A.</given-names></name> <name><surname>Steiger</surname> <given-names>J. H.</given-names></name></person-group> (<year>2016</year>). <source>What if There Were no Significance Tests?</source> <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Routledge</publisher-name>.</citation></ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Harwell</surname> <given-names>M. R.</given-names></name> <name><surname>Rubinstein</surname> <given-names>E. N.</given-names></name> <name><surname>Hayes</surname> <given-names>W. S.</given-names></name> <name><surname>Olds</surname> <given-names>C. C.</given-names></name></person-group> (<year>1992</year>). <article-title>Summarizing monte carlo results in methodological research: the one-and two-factor fixed effects anova cases</article-title>. <source>J. Educ. Stat</source>. <volume>17</volume>, <fpage>315</fpage>&#x02013;<lpage>339</lpage>. <pub-id pub-id-type="doi">10.3102/10769986017004315</pub-id></citation></ref>
<ref id="B20">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Headrick</surname> <given-names>T. C.</given-names></name> <name><surname>Kowalchuk</surname> <given-names>R. K.</given-names></name> <name><surname>Sheng</surname> <given-names>Y.</given-names></name></person-group> (<year>2008</year>). <article-title>Parametric probability densities and distribution functions for tukey g-and-h transformations and their use for fitting data</article-title>. <source>Appl. Math. Sci</source>. <volume>2</volume>, <fpage>449</fpage>&#x02013;<lpage>462</lpage>. Available online at: <ext-link ext-link-type="uri" xlink:href="https://core.ac.uk/download/pdf/60537699.pdf">https://core.ac.uk/download/pdf/60537699.pdf</ext-link></citation></ref>
<ref id="B21">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Hintze</surname> <given-names>J.</given-names></name></person-group> (<year>2011</year>). <source>PASS 11</source>. <publisher-loc>Kaysville, Utah</publisher-loc>: <publisher-name>NCSS, LLC</publisher-name>.</citation></ref>
<ref id="B22">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Hoijtink</surname> <given-names>H.</given-names></name></person-group> (<year>2011</year>). <source>Informative Hypotheses: Theory and Practice for Behavioral and Social Scientists</source>. <publisher-loc>Boca Raton, FL</publisher-loc>: <publisher-name>Chapman and Hall/CRC</publisher-name>.</citation></ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hoijtink</surname> <given-names>H.</given-names></name> <name><surname>Gu</surname> <given-names>X.</given-names></name> <name><surname>Mulder</surname> <given-names>J.</given-names></name></person-group> (<year>2019a</year>). <article-title>Bayesian evaluation of informative hypotheses for multiple populations</article-title>. <source>Br. J. Math. Stat. Psychol</source>. <volume>72</volume>, <fpage>219</fpage>&#x02013;<lpage>243</lpage>. <pub-id pub-id-type="doi">10.1111/bmsp.12145</pub-id><pub-id pub-id-type="pmid">30345637</pub-id></citation></ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hoijtink</surname> <given-names>H.</given-names></name> <name><surname>Mulder</surname> <given-names>J.</given-names></name> <name><surname>van Lissa</surname> <given-names>C.</given-names></name> <name><surname>Gu</surname> <given-names>X.</given-names></name></person-group> (<year>2019b</year>). <article-title>A tutorial on testing hypotheses using the Bayes factor</article-title>. <source>Psychol. Methods</source> <volume>24</volume>, <fpage>539</fpage>&#x02013;<lpage>556</lpage>. <pub-id pub-id-type="doi">10.1037/met0000201</pub-id><pub-id pub-id-type="pmid">30742472</pub-id></citation></ref>
<ref id="B25">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jorge</surname> <given-names>M.</given-names></name> <name><surname>Boris</surname> <given-names>I.</given-names></name></person-group> (<year>1984</year>). <article-title>Some properties of the tukey g and h family of distributions</article-title>. <source>Commun. Stat. Theory Methods</source> <volume>13</volume>, <fpage>353</fpage>&#x02013;<lpage>369</lpage>. <pub-id pub-id-type="doi">10.1080/03610928408828687</pub-id></citation></ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Keselman</surname> <given-names>H.</given-names></name> <name><surname>Huberty</surname> <given-names>C. J.</given-names></name> <name><surname>Lix</surname> <given-names>L. M.</given-names></name> <name><surname>Olejnik</surname> <given-names>S.</given-names></name> <name><surname>Cribbie</surname> <given-names>R. A.</given-names></name> <name><surname>Donahue</surname> <given-names>B.</given-names></name> <etal/></person-group>. (<year>1998</year>). <article-title>Statistical practices of educational researchers: an analysis of their anova, manova, and ancova analyses</article-title>. <source>Rev. Educ. Res</source>. <volume>68</volume>, <fpage>350</fpage>&#x02013;<lpage>386</lpage>. <pub-id pub-id-type="doi">10.3102/00346543068003350</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Masicampo</surname> <given-names>E.</given-names></name> <name><surname>Lalande</surname> <given-names>D. R.</given-names></name></person-group> (<year>2012</year>). <article-title>A peculiar prevalence of p values just below. 05</article-title>. <source>Q. J. Exp. Psychol</source>. <volume>65</volume>, <fpage>2271</fpage>&#x02013;<lpage>2279</lpage>. <pub-id pub-id-type="doi">10.1080/17470218.2012.711335</pub-id><pub-id pub-id-type="pmid">22853650</pub-id></citation></ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Maxwell</surname> <given-names>S. E.</given-names></name></person-group> (<year>2004</year>). <article-title>The persistence of underpowered studies in psychological research: causes, consequences, and remedies</article-title>. <source>Psychol. Methods</source> <volume>9</volume>, <fpage>147</fpage>&#x02013;<lpage>163</lpage>. <pub-id pub-id-type="doi">10.1037/1082-989X.9.2.147</pub-id><pub-id pub-id-type="pmid">15137886</pub-id></citation></ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mayr</surname> <given-names>S.</given-names></name> <name><surname>Erdfelder</surname> <given-names>E.</given-names></name> <name><surname>Buchner</surname> <given-names>A.</given-names></name> <name><surname>Faul</surname> <given-names>F.</given-names></name></person-group> (<year>2007</year>). <article-title>A short tutorial of gpower</article-title>. <source>Tutor. Quant. Methods Psychol</source>. <volume>3</volume>, <fpage>51</fpage>&#x02013;<lpage>59</lpage>. <pub-id pub-id-type="doi">10.20982/tqmp.03.2.p051</pub-id></citation></ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Micceri</surname> <given-names>T.</given-names></name></person-group> (<year>1989</year>). <article-title>The unicorn, the normal curve, and other improbable creatures</article-title>. <source>Psychol. Bull</source>. <volume>105</volume>, <fpage>156</fpage>&#x02013;<lpage>166</lpage>. <pub-id pub-id-type="doi">10.1037/0033-2909.105.1.156</pub-id></citation></ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mulder</surname> <given-names>J.</given-names></name></person-group> (<year>2014</year>). <article-title>Prior adjusted default Bayes factors for testing (in) equality constrained hypotheses</article-title>. <source>Comput. Stat. Data Anal</source>. <volume>71</volume>, <fpage>448</fpage>&#x02013;<lpage>463</lpage>. <pub-id pub-id-type="doi">10.1016/j.csda.2013.07.017</pub-id></citation></ref>
<ref id="B32">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nickerson</surname> <given-names>R. S.</given-names></name></person-group> (<year>2000</year>). <article-title>Null hypothesis significance testing: a review of an old and continuing controversy</article-title>. <source>Psychol. Methods</source> <volume>5</volume>, <fpage>241</fpage>&#x02013;<lpage>301</lpage>. <pub-id pub-id-type="doi">10.1037/1082-989X.5.2.241</pub-id><pub-id pub-id-type="pmid">10937333</pub-id></citation></ref>
<ref id="B33">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>O&#x00027;Hagan</surname> <given-names>A.</given-names></name></person-group> (<year>1995</year>). <article-title>Fractional Bayes factors for model comparison</article-title>. <source>J. R. Stat. Soc. B</source> <volume>57</volume>, <fpage>99</fpage>&#x02013;<lpage>138</lpage>. <pub-id pub-id-type="doi">10.1111/j.2517-6161.1995.tb02017.x</pub-id><pub-id pub-id-type="pmid">25042460</pub-id></citation></ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Palmer</surname> <given-names>E. M.</given-names></name> <name><surname>Horowitz</surname> <given-names>T. S.</given-names></name> <name><surname>Torralba</surname> <given-names>A.</given-names></name> <name><surname>Wolfe</surname> <given-names>J. M.</given-names></name></person-group> (<year>2011</year>). <article-title>What are the shapes of response time distributions in visual search?</article-title> <source>J. Exp. Psychol</source>. <volume>37</volume>, <fpage>58</fpage>&#x02013;<lpage>71</lpage>. <pub-id pub-id-type="doi">10.1037/a0020747</pub-id><pub-id pub-id-type="pmid">21090905</pub-id></citation></ref>
<ref id="B35">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Schmidt</surname> <given-names>F. L.</given-names></name> <name><surname>Hunter</surname> <given-names>J. E.</given-names></name></person-group> (<year>2015</year>). <source>Methods of Meta-Analysis: Correcting Error and Bias in Research Findings</source>. <publisher-loc>London</publisher-loc>: <publisher-name>Sage</publisher-name>.</citation></ref>
<ref id="B36">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sch&#x000F6;nbrodt</surname> <given-names>F. D.</given-names></name> <name><surname>Wagenmakers</surname> <given-names>E.-J.</given-names></name></person-group> (<year>2018</year>). <article-title>Bayes factor design analysis: planning for compelling evidence</article-title>. <source>Psychon. Bull. Rev</source>. <volume>25</volume>, <fpage>128</fpage>&#x02013;<lpage>142</lpage>. <pub-id pub-id-type="doi">10.3758/s13423-017-1230-y</pub-id><pub-id pub-id-type="pmid">28251595</pub-id></citation></ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sch&#x000F6;nbrodt</surname> <given-names>F. D.</given-names></name> <name><surname>Wagenmakers</surname> <given-names>E.-J.</given-names></name> <name><surname>Zehetleitner</surname> <given-names>M.</given-names></name> <name><surname>Perugini</surname> <given-names>M.</given-names></name></person-group> (<year>2017</year>). <article-title>Sequential hypothesis testing with Bayes factors: efficiently testing mean differences</article-title>. <source>Psychol. Methods</source> <volume>22</volume>, <fpage>322</fpage>&#x02013;<lpage>339</lpage>. <pub-id pub-id-type="doi">10.1037/met0000061</pub-id><pub-id pub-id-type="pmid">26651986</pub-id></citation></ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Shohat</surname> <given-names>J.</given-names></name></person-group> (<year>1929</year>). <article-title>Inequalities for moments of frequency functions and for various statistical constants</article-title>. <source>Biometrika</source> <volume>21</volume>, <fpage>361</fpage>&#x02013;<lpage>375</lpage>. <pub-id pub-id-type="doi">10.1093/biomet/21.1-4.361</pub-id></citation></ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Simonsohn</surname> <given-names>U.</given-names></name> <name><surname>Nelson</surname> <given-names>L. D.</given-names></name> <name><surname>Simmons</surname> <given-names>J. P.</given-names></name></person-group> (<year>2014</year>). <article-title>p-curve and effect size: correcting for publication bias using only significant results</article-title>. <source>Perspect. Psychol. Sci</source>. <volume>9</volume>, <fpage>666</fpage>&#x02013;<lpage>681</lpage>. <pub-id pub-id-type="doi">10.1177/1745691614553988</pub-id><pub-id pub-id-type="pmid">26186117</pub-id></citation></ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Stefan</surname> <given-names>A. M.</given-names></name> <name><surname>Gronau</surname> <given-names>Q. F.</given-names></name> <name><surname>Sch&#x000F6;nbrodt</surname> <given-names>F. D.</given-names></name> <name><surname>Wagenmakers</surname> <given-names>E.-J.</given-names></name></person-group> (<year>2019</year>). <article-title>A tutorial on Bayes factor design analysis using an informed prior</article-title>. <source>Behav. Res. Methods</source> <volume>51</volume>, <fpage>1042</fpage>&#x02013;<lpage>1058</lpage>. <pub-id pub-id-type="doi">10.3758/s13428-018-01189-8</pub-id><pub-id pub-id-type="pmid">30719688</pub-id></citation></ref>
<ref id="B41">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Szucs</surname> <given-names>D.</given-names></name> <name><surname>Ioannidis</surname> <given-names>J. P.</given-names></name></person-group> (<year>2017</year>). <article-title>Empirical assessment of published effect sizes and power in the recent cognitive neuroscience and psychology literature</article-title>. <source>PLoS Biol</source>. <volume>15</volume>, <fpage>e2000797</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pbio.2000797</pub-id><pub-id pub-id-type="pmid">33667221</pub-id></citation></ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Van de Schoot</surname> <given-names>R.</given-names></name> <name><surname>Winter</surname> <given-names>S. D.</given-names></name> <name><surname>Ryan</surname> <given-names>O.</given-names></name> <name><surname>Zondervan-Zwijnenburg</surname> <given-names>M.</given-names></name> <name><surname>Depaoli</surname> <given-names>S.</given-names></name></person-group> (<year>2017</year>). <article-title>A systematic review of bayesian articles in psychology: the last 25 years</article-title>. <source>Psychol. Methods</source> <volume>22</volume>, <fpage>217</fpage>&#x02013;<lpage>239</lpage>. <pub-id pub-id-type="doi">10.1037/met0000100</pub-id><pub-id pub-id-type="pmid">28594224</pub-id></citation></ref>
<ref id="B43">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>van den Bergh</surname> <given-names>D.</given-names></name> <name><surname>Van Doorn</surname> <given-names>J.</given-names></name> <name><surname>Marsman</surname> <given-names>M.</given-names></name> <name><surname>Draws</surname> <given-names>T.</given-names></name> <name><surname>Van Kesteren</surname> <given-names>E.-J.</given-names></name> <name><surname>Derks</surname> <given-names>K.</given-names></name> <etal/></person-group>. (<year>2020</year>). <article-title>A tutorial on conducting and interpreting a bayesian anova in jasp</article-title>. <source>LAnnee Psychol</source>. <volume>120</volume>, <fpage>73</fpage>&#x02013;<lpage>96</lpage>. <pub-id pub-id-type="doi">10.3917/anpsy1.201.0073</pub-id></citation></ref>
<ref id="B44">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vandekerckhove</surname> <given-names>J.</given-names></name> <name><surname>Rouder</surname> <given-names>J. N.</given-names></name> <name><surname>Kruschke</surname> <given-names>J. K.</given-names></name></person-group> (<year>2018</year>). <article-title>Editorial: Bayesian methods for advancing psychological science</article-title>. <source>Psychon. Bull. Rev</source>. <volume>25</volume>, <fpage>1</fpage>&#x02013;<lpage>4</lpage>. <pub-id pub-id-type="doi">10.3758/s13423-018-1443-8</pub-id><pub-id pub-id-type="pmid">29450790</pub-id></citation></ref>
<ref id="B45">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wagenmakers</surname> <given-names>E.-J.</given-names></name></person-group> (<year>2007</year>). <article-title>A practical solution to the pervasive problems of p values</article-title>. <source>Psychon. Bull. Rev</source>. <volume>14</volume>, <fpage>779</fpage>&#x02013;<lpage>804</lpage>. <pub-id pub-id-type="doi">10.3758/BF03194105</pub-id><pub-id pub-id-type="pmid">18087943</pub-id></citation></ref>
<ref id="B46">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wagenmakers</surname> <given-names>E.-J.</given-names></name> <name><surname>Morey</surname> <given-names>R. D.</given-names></name> <name><surname>Lee</surname> <given-names>M. D.</given-names></name></person-group> (<year>2016</year>). <article-title>Bayesian benefits for the pragmatic researcher</article-title>. <source>Curr. Dir. Psychol. Sci</source>. <volume>25</volume>, <fpage>169</fpage>&#x02013;<lpage>176</lpage>. <pub-id pub-id-type="doi">10.1177/0963721416643289</pub-id></citation></ref>
<ref id="B47">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wald</surname> <given-names>A.</given-names></name></person-group> (<year>1945</year>). <article-title>Sequential tests of statistical hypotheses</article-title>. <source>Ann. Math. Stat</source>. <volume>16</volume>, <fpage>117</fpage>&#x02013;<lpage>186</lpage>. <pub-id pub-id-type="doi">10.1214/aoms/1177731118</pub-id></citation></ref>
<ref id="B48">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname> <given-names>L.</given-names></name> <name><surname>Zhang</surname> <given-names>Z.</given-names></name> <name><surname>McArdle</surname> <given-names>J. J.</given-names></name> <name><surname>Salthouse</surname> <given-names>T. A.</given-names></name></person-group> (<year>2008</year>). <article-title>Investigating ceiling effects in longitudinal data analysis</article-title>. <source>Multivariate Behav. Res</source>. <volume>43</volume>, <fpage>476</fpage>&#x02013;<lpage>496</lpage>. <pub-id pub-id-type="doi">10.1080/00273170802285941</pub-id><pub-id pub-id-type="pmid">19924269</pub-id></citation></ref>
<ref id="B49">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wicherts</surname> <given-names>J. M.</given-names></name> <name><surname>Veldkamp</surname> <given-names>C. L.</given-names></name> <name><surname>Augusteijn</surname> <given-names>H. E.</given-names></name> <name><surname>Bakker</surname> <given-names>M.</given-names></name> <name><surname>Van Aert</surname> <given-names>R.</given-names></name> <name><surname>Van Assen</surname> <given-names>M. A.</given-names></name></person-group> (<year>2016</year>). <article-title>Degrees of freedom in planning, running, analyzing, and reporting psychological studies: a checklist to avoid p-hacking</article-title>. <source>Front. Psychol</source>. <volume>7</volume>, <fpage>1832</fpage>. <pub-id pub-id-type="doi">10.3389/fpsyg.2016.01832</pub-id><pub-id pub-id-type="pmid">27933012</pub-id></citation></ref>
<ref id="B50">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Wilcox</surname> <given-names>R. R.</given-names></name></person-group> (<year>2017</year>). <source>Introduction to Robust Estimation and Hypothesis Testing, 4th Edn</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Academic Press</publisher-name>.</citation></ref>
</ref-list>
<fn-group>
<fn id="fn0001"><p><sup>1</sup><monospace>SSDbain</monospace> comes with a user manual and can be installed from <ext-link ext-link-type="uri" xlink:href="https://github.com/Qianrao-Fu/SSDbain">https://github.com/Qianrao-Fu/SSDbain</ext-link>. Further information on <monospace>bain</monospace> can be found at <ext-link ext-link-type="uri" xlink:href="https://informative-hypotheses.sites.uu.nl/software/bain/">https://informative-hypotheses.sites.uu.nl/software/bain/</ext-link>.</p></fn>
</fn-group>
</back>
</article>