<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>W. Joel Schneider</title>
<link>https://wjschne.github.io/blog.html</link>
<atom:link href="https://wjschne.github.io/blog.xml" rel="self" type="application/rss+xml"/>
<description>{{&lt; meta description-meta &gt;}}</description>
<generator>quarto-1.9.36</generator>
<lastBuildDate>Tue, 11 Nov 2025 05:00:00 GMT</lastBuildDate>
<item>
  <title>Winners of Posit’s 2025 Table Contest</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/2025-11-11-winners-of-posit-s-2025-table-contest/</link>
  <description><![CDATA[ 





<p>Every year Posit holds a contest for the best statistical table. The <a href="https://posit.co/blog/2025-table-contest-winners/">2025 contest results</a> have some fantastic tables covering a diverse range of purposes, methods, and aesthetics. The winner was Martin Stavro’s <a href="https://github.com/mstavro/fleetR">interactive app</a> that displays characteristics of the United Airlines Fleet.</p>
<p>Eight special prize categories were also announced. It was gratifying that my <a href="https://wjschne.github.io/posts/apatables/apa701.html">24-part series</a>, in which I recreate the tables in the <em>APA Publication Manual</em>, won the the prize for Best Tutorial. I have been informed that a small prize is in the mail!</p>



<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel and Joel Schneider, W.},
  title = {Winners of {Posit’s} 2025 {Table} {Contest}},
  date = {2025-11-11},
  url = {https://wjschne.github.io/posts/2025-11-11-winners-of-posit-s-2025-table-contest/},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J., &amp; Joel Schneider, W. (2025, November 11). Winners
of Posit’s 2025 Table Contest. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/2025-11-11-winners-of-posit-s-2025-table-contest/">https://wjschne.github.io/posts/2025-11-11-winners-of-posit-s-2025-table-contest/</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>apa7</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/2025-11-11-winners-of-posit-s-2025-table-contest/</guid>
  <pubDate>Tue, 11 Nov 2025 05:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.24 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa724.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-24-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 24 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Use of <code>hanging_indent</code></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(lme4)</span>
<span id="cb1-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-8">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-724" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-724-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.24</p>
</div>
</figcaption>
<div aria-describedby="fig-724-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table724.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>Making this table was relatively straightforward, except that I needed to play with the column widths and hanging indents until they fit in a table that is 6.5 inches wide.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="We integrated quantitative data (whether students selected a card about nuclear power or about climate change) and qualitative data (interviews with students) to provide a more comprehensive description of students’ card selections between the two topics." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-724</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Integrated Results Matrix for the Effect of</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Topic Familiarity on Reliance on Author Expertise"</span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: "We integrated quantitative data (whether</span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|            students selected a card about nuclear power</span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|            or about climate change) and qualitative data</span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|            (interviews with students) to provide a more</span></span>
<span id="cb2-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|            comprehensive description of students’ card</span></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|            selections between the two topics."</span></span>
<span id="cb2-11"></span>
<span id="cb2-12"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-13">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Quantitative result</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-14">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"When the topic was more (climate change) and"</span>, </span>
<span id="cb2-15">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"cards were more relevant, participants placed"</span>, </span>
<span id="cb2-16">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"less value on author expertise."</span>),</span>
<span id="cb2-17">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"When the topic is less familiar (nuclear power)"</span>, </span>
<span id="cb2-18">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"and cards were more relevant, participants"</span>, </span>
<span id="cb2-19">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"placed more value on author expertise."</span>)),</span>
<span id="cb2-20">   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Qualitative result</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-21">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"When an assertion was considered to be more"</span>, </span>
<span id="cb2-22">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"familiar and to be general knowledge,"</span>, </span>
<span id="cb2-23">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"participants perceived less need to rely on"</span>, </span>
<span id="cb2-24">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"author expertise."</span>),</span>
<span id="cb2-25">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"When an assertion was considered to be less"</span>, </span>
<span id="cb2-26">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"familiar and not general knowledge,"</span>, </span>
<span id="cb2-27">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"participants perceived more need to rely on"</span>, </span>
<span id="cb2-28">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"offer as brief expertise author expertise."</span>)),</span>
<span id="cb2-29">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-30">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Participant 144: </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">I feel that I know more"</span>, </span>
<span id="cb2-31">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"about climate, and there are several things"</span>, </span>
<span id="cb2-32">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"on climate cards that are obvious, and that"</span>, </span>
<span id="cb2-33">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"if I sort of know it already, then the source"</span>, </span>
<span id="cb2-34">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"is not so critical... whereas with nuclear"</span>, </span>
<span id="cb2-35">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"energy. I don't know so much, so then I may"</span>, </span>
<span id="cb2-36">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"be more interested in who says what.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-37">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Participant 3: </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">[Nuclear power], which I know"</span>, </span>
<span id="cb2-38">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"much, much less about, I would back up my"</span>, </span>
<span id="cb2-39">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"arguments more with what I trust from the"</span>, </span>
<span id="cb2-40">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"professors.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>))</span>
<span id="cb2-41">) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-42">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-43">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Quantitative result</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(</span>
<span id="cb2-44">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Quantitative result</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">25</span>),</span>
<span id="cb2-45">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Qualitative result</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(</span>
<span id="cb2-46">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Qualitative result</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">25</span>),</span>
<span id="cb2-47">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(</span>
<span id="cb2-48">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">32</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-49">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font_size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">12</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-50">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-51">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>,<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>,<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.5</span>))</span>
<span id="cb2-52"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-724" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-apa-note="We integrated quantitative data (whether students selected a card about nuclear power or about climate change) and qualitative data (interviews with students) to provide a more comprehensive description of students’ card selections between the two topics." prefix="" data-tblnum="1">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-724-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-f754bc44{}.cl-f74f0ef2{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-f751644a{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-f7516454{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-f751893e{width:2in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-f751893f{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-f7518948{width:2in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-f7518949{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-f751894a{width:2in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-f7518952{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-f754bc44"><thead><tr style="overflow-wrap:break-word;"><th class="cl-f751893e"><p class="cl-f751644a"><span class="cl-f74f0ef2">Quantitative</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">result</span></p></th><th class="cl-f751893e"><p class="cl-f751644a"><span class="cl-f74f0ef2">Qualitative</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">result</span></p></th><th class="cl-f751893f"><p class="cl-f751644a"><span class="cl-f74f0ef2">Example</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">quote</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-f7518948"><p class="cl-f7516454"><span class="cl-f74f0ef2">When</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">the</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">topic</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">was</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;(climate</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">change)</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">and</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;cards</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">were</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">relevant,</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;participants</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">placed</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;less</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">value</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">on</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">author</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;expertise.</span></p></td><td class="cl-f7518948"><p class="cl-f7516454"><span class="cl-f74f0ef2">When</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">an</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">assertion</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;was</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">considered</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">to</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">be</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;more</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">familiar</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">and</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">to</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;be</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">general</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">knowledge,</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;participants</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">perceived</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;less</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">need</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">to</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">rely</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">on</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;author</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">expertise.</span></p></td><td class="cl-f7518949"><p class="cl-f7516454"><span class="cl-f74f0ef2">Participant</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">144:</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">“</span><span class="cl-f74f0ef2">I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">feel</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">that</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">know</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">about</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">climate,</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">and</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;there</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">are</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">several</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">things</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">on</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;climate</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">cards</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">that</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">are</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">obvious,</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;and</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">that</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">if</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">sort</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">of</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">know</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">it</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;already,</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">then</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">the</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">source</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">is</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;not</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">so</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">critical…</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">whereas</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">with</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;nuclear</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">energy.</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">don’t</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">know</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;so</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">much,</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">so</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">then</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">may</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">be</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;interested</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">in</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">who</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">says</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">what.</span><span class="cl-f74f0ef2">”</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-f751894a"><p class="cl-f7516454"><span class="cl-f74f0ef2">When</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">the</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">topic</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">is</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">less</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;familiar</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">(nuclear</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">power)</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;and</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">cards</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">were</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;relevant,</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">participants</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;placed</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">value</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">on</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;author</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">expertise.</span></p></td><td class="cl-f751894a"><p class="cl-f7516454"><span class="cl-f74f0ef2">When</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">an</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">assertion</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">was</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;considered</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">to</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">be</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">less</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;familiar</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">and</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">not</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">general</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;knowledge,</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">participants</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;perceived</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">need</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;to</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">rely</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">on</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">offer</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">as</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;brief</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">expertise</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">author</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;expertise.</span></p></td><td class="cl-f7518952"><p class="cl-f7516454"><span class="cl-f74f0ef2">Participant</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">3:</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">“</span><span class="cl-f74f0ef2">[Nuclear</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">power],</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;which</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">know</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">much,</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">much</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">less</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;about,</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">would</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">back</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">up</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">my</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;arguments</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">more</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">with</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">what</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">I</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">trust</span><br><span class="cl-f74f0ef2">&nbsp;&nbsp;&nbsp;&nbsp;from</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">the</span><span class="cl-f74f0ef2"> </span><span class="cl-f74f0ef2">professors.</span><span class="cl-f74f0ef2">”</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-724-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Integrated Results Matrix for the Effect of Topic Familiarity on Reliance on Author Expertise</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. We integrated quantitative data (whether students selected a card about nuclear power or about climate change) and qualitative data (interviews with students) to provide a more comprehensive description of students’ card selections between the two topics.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.24 in {R} with Apa7},
  date = {2025-10-04},
  url = {https://wjschne.github.io/posts/apatables/apa724.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, October 4). Recreating APA Manual Table 7.24 in
R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa724.html">https://wjschne.github.io/posts/apatables/apa724.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa724.html</guid>
  <pubDate>Sat, 04 Oct 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.23 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa723.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-23-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 23 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Use of <a href="https://wjschne.github.io/apa7/reference/hanging_indent.html"><code>hanging_indent</code></a></li>
<li>Use of <a href="https://davidgohel.github.io/flextable/reference/merge_v.html"><code>flextable::merge_v</code></a> to remove redundant content</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(lme4)</span>
<span id="cb1-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-8">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-723" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-723-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.23</p>
</div>
</figcaption>
<div aria-describedby="fig-723-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table723.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>Making this table was relatively straightforward, except that I needed to play with the column widths and hanging indents until they fit in a table that is 6.5 inches wide.</p>
<p>The <code>Reason for interest</code> column needed vertical merging to remove redundant content.</p>
<p>The frequency column was aligned on the decimal with <a href="https://wjschne.github.io/apa7/reference/align_chr.html"><code>align_chr</code></a>.</p>
<div class="cell FigureWithoutNote page-columns page-full" prefix="" data-tblnum="1" data-custom-style="FigureWithoutNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-723</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Reasons Why Individuals Chose to Watch</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           the Royal Wedding (*N* = 45)"</span></span>
<span id="cb2-5"></span>
<span id="cb2-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-7">   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Reason for interest</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-8">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Royal family and its history"</span>,</span>
<span id="cb2-9">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Royal family and its history"</span>,</span>
<span id="cb2-10">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fashion and pop culture"</span>,</span>
<span id="cb2-11">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fashion and pop culture"</span>,</span>
<span id="cb2-12">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fairy tales and love stories"</span>,</span>
<span id="cb2-13">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fairy tales and love stories"</span>,</span>
<span id="cb2-14">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"To pass time/it was on TV"</span>,</span>
<span id="cb2-15">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"To pass time/it was on TV"</span>),</span>
<span id="cb2-16">   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-17">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-18">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">I love all things British. I studied abroad in"</span>,</span>
<span id="cb2-19">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"the U.K. I also watched the weddings of Charles"</span>,</span>
<span id="cb2-20">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"&amp; Diana and Andrew &amp; Fergie. I watched Diana's"</span>,</span>
<span id="cb2-21">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"funeral. Watching William &amp; Kate get married"</span>,</span>
<span id="cb2-22">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"seemed like the natural thing to do.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-23">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-24">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">I find the royal family and their practices"</span>,</span>
<span id="cb2-25">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"and traditions fascinating. I'm a big fan of"</span>,</span>
<span id="cb2-26">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"tradition in any capacity (graduation ceremonies,"</span>,</span>
<span id="cb2-27">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"weddings, etc.) and enjoy watching traditions"</span>,</span>
<span id="cb2-28">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"older than our country (the U.S.).</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-29">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-30">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">When big pop culture things happen, I tend to"</span>,</span>
<span id="cb2-31">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"want to watch so I'm 'in on it.' Also, when I was"</span>,</span>
<span id="cb2-32">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"little my mom made us get up to watch Princess"</span>,</span>
<span id="cb2-33">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Diana get married, so it felt a little like"</span>,</span>
<span id="cb2-34">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"tradition.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-35">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-36">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">I was curious. Wanted to see her dress and how"</span>,</span>
<span id="cb2-37">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"the other people who attended dressed. Like pomp"</span>,</span>
<span id="cb2-38">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"and ceremony.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-39">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-40">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">I watched his mom and dad get married, watched"</span>,</span>
<span id="cb2-41">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"him grow up. Plus I love a fairy tale that comes"</span>,</span>
<span id="cb2-42">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"true. I believe in love and romance.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-43">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-44">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">I am a romantic and I think this is a great"</span>,</span>
<span id="cb2-45">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"love story.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-46">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-47">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">I was at the airport and it was broadcasting on"</span>,</span>
<span id="cb2-48">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"TV when I was waiting for my flight.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-49">     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">It was on CNN when I got up.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>)),</span>
<span id="cb2-50">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Frequency, *n* (%)</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-51">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"16 (35.6)"</span>,<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>,</span>
<span id="cb2-52">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"13 (28.9)"</span>,<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>,</span>
<span id="cb2-53">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"11 (24.4)"</span>,<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>,</span>
<span id="cb2-54">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"5 (11.1)"</span>,<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>)</span>
<span id="cb2-55">) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-56">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Reason for interest</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Reason for interest</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">16</span>),</span>
<span id="cb2-57">         <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>),</span>
<span id="cb2-58">         <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Frequency, *n* (%)</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Frequency, *n* (%)</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-59">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-60">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-61">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.4</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">3.8</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.3</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-62">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">merge_v</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb2-63"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-723" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" prefix="" data-tblnum="1">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-723-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-ca642d1e{}.cl-ca5d9d00{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-ca5d9d14{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-ca6055e0{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-ca6055e1{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-ca60811e{width:1.4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca60811f{width:3.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca608128{width:1.3in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca608129{width:1.4in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca60812a{width:3.8in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca60812b{width:1.3in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca608132{width:1.4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca608133{width:3.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ca608134{width:1.3in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-ca642d1e"><thead><tr style="overflow-wrap:break-word;"><th class="cl-ca60811e"><p class="cl-ca6055e0"><span class="cl-ca5d9d00">Reason</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">for</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">interest</span></p></th><th class="cl-ca60811f"><p class="cl-ca6055e0"><span class="cl-ca5d9d00">Example</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">quote</span></p></th><th class="cl-ca608128"><p class="cl-ca6055e0"><span class="cl-ca5d9d00">Frequency,</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d14">n</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">(%)</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td rowspan="2" class="cl-ca608129"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">Royal</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">family</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;its</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">history</span></p></td><td class="cl-ca60812a"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">love</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">all</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">things</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">British.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">studied</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">abroad</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">in</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;the</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">U.K.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">also</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">watched</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">the</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">weddings</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">of</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Charles</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;&amp;</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Diana</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Andrew</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">&amp;</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Fergie.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">watched</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Diana’s</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;funeral.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Watching</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">William</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">&amp;</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Kate</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">get</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">married</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;seemed</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">like</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">the</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">natural</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">thing</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">to</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">do.</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca60812b"><p class="cl-ca6055e0"><span class="cl-ca5d9d00">16</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">(35.6)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ca60812a"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">find</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">the</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">royal</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">family</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">their</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">practices</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;traditions</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">fascinating.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I’m</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">a</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">big</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">fan</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">of</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">tradition</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;in</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">any</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">capacity</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">(graduation</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">ceremonies,</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">weddings,</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;etc.)</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">enjoy</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">watching</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">traditions</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">older</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">than</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">our</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;country</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">(the</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">U.S.).</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca60812b"><p class="cl-ca6055e0"><span class="cl-ca5d9d00"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2" class="cl-ca608129"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">Fashion</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">pop</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;culture</span></p></td><td class="cl-ca60812a"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">When</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">big</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">pop</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">culture</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">things</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">happen,</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">tend</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">to</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;want</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">to</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">watch</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">so</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I’m</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">‘</span><span class="cl-ca5d9d00">in</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">on</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">it.</span><span class="cl-ca5d9d00">’</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Also,</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">when</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">was</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;little</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">my</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">mom</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">made</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">us</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">get</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">up</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">to</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">watch</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Princess</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;Diana</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">get</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">married,</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">so</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">it</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">felt</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">a</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">little</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">like</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;tradition.</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca60812b"><p class="cl-ca6055e0"><span class="cl-ca5d9d00">13</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">(28.9)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ca60812a"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">was</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">curious.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Wanted</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">to</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">see</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">her</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">dress</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">how</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;the</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">other</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">people</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">who</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">attended</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">dressed.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Like</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">pomp</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">ceremony.</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca60812b"><p class="cl-ca6055e0"><span class="cl-ca5d9d00"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2" class="cl-ca608129"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">Fairy</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">tales</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;love</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">stories</span></p></td><td class="cl-ca60812a"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">watched</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">his</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">mom</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">dad</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">get</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">married,</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">watched</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;him</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">grow</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">up.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">Plus</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">love</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">a</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">fairy</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">tale</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">that</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">comes</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;true.</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">believe</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">in</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">love</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">romance.</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca60812b"><p class="cl-ca6055e0"><span class="cl-ca5d9d00">11</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">(24.4)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ca60812a"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">am</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">a</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">romantic</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">think</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">this</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">is</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">a</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">great</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">love</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;story.</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca60812b"><p class="cl-ca6055e0"><span class="cl-ca5d9d00"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2" class="cl-ca608132"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">To</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">pass</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">time/it</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;was</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">on</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">TV</span></p></td><td class="cl-ca60812a"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">was</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">at</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">the</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">airport</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">and</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">it</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">was</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">broadcasting</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">on</span><br><span class="cl-ca5d9d00">&nbsp;&nbsp;&nbsp;&nbsp;TV</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">when</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">was</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">waiting</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">for</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">my</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">flight.</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca60812b"><p class="cl-ca6055e0"><span class="cl-ca5d9d00"> 5</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">(11.1)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ca608133"><p class="cl-ca6055e1"><span class="cl-ca5d9d00">“</span><span class="cl-ca5d9d00">It</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">was</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">on</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">CNN</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">when</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">I</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">got</span><span class="cl-ca5d9d00"> </span><span class="cl-ca5d9d00">up.</span><span class="cl-ca5d9d00">”</span></p></td><td class="cl-ca608134"><p class="cl-ca6055e0"><span class="cl-ca5d9d00"></span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-723-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Reasons Why Individuals Chose to Watch the Royal Wedding (<em>N</em> = 45)</p>
</div>
</figcaption>
</figure>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.23 in {R} with Apa7},
  date = {2025-10-03},
  url = {https://wjschne.github.io/posts/apatables/apa723.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, October 3). Recreating APA Manual Table 7.23 in
R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa723.html">https://wjschne.github.io/posts/apatables/apa723.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa723.html</guid>
  <pubDate>Fri, 03 Oct 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.22 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa722.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-22-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 22 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Use of <a href="https://wjschne.github.io/apa7/reference/hanging_indent.html"><code>hanging_indent</code></a></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(lme4)</span>
<span id="cb1-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-8">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-722" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-722-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.22</p>
</div>
</figcaption>
<div aria-describedby="fig-722-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table722.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>Making this table was relatively straightforward, except that I needed to play with the column widths and hanging indents until they fit in a table that is 6.5 inches wide.</p>
<div class="cell FigureWithoutNote page-columns page-full" prefix="" data-tblnum="1" data-custom-style="FigureWithoutNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-722</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Master Narrative Voices: Struggle and</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Success and Emancipation"</span></span>
<span id="cb2-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-7">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Struggle and success"</span>,</span>
<span id="cb2-8">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Struggle and success"</span>,</span>
<span id="cb2-9">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Emancipation"</span>,</span>
<span id="cb2-10">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Emancipation"</span>),</span>
<span id="cb2-11">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Discourse and dimension</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-12">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Self actualization as a member of a larger"</span>,</span>
<span id="cb2-13">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"gay community is the end goal of healthy sexual"</span>,</span>
<span id="cb2-14">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"identity development or </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">coming out</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>),</span>
<span id="cb2-15">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Maintaining healthy sexual identity entails"</span>,</span>
<span id="cb2-16">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vigilance against internalization of"</span>,</span>
<span id="cb2-17">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"societal discrimination"</span>),</span>
<span id="cb2-18">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Open exploration of an individually fluid"</span>,</span>
<span id="cb2-19">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"sexual self is the goal of healthy sexual"</span>,</span>
<span id="cb2-20">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"identity development"</span>),</span>
<span id="cb2-21">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Questioning discrete, monolithic categories of"</span>,</span>
<span id="cb2-22">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"sexual identity"</span>)),</span>
<span id="cb2-23">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-24">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(</span>
<span id="cb2-25">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">My path of gayness...going from denial to saying,"</span>,</span>
<span id="cb2-26">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"'well, this is it,' and then the process of coming"</span>,</span>
<span id="cb2-27">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"out, and the process of just sort of looking around"</span>,</span>
<span id="cb2-28">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"and seeing, well where do I stand in the world? And"</span>,</span>
<span id="cb2-29">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"sort of having, uh, political feelings.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>,</span>
<span id="cb2-30">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"(Carl, age 50)"</span>),</span>
<span id="cb2-31">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">When I'm, like, thinking of criticisms of"</span>,</span>
<span id="cb2-32">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"more mainstream gay culture, I try to...make sure"</span>,</span>
<span id="cb2-33">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"it's coming from an appropriate place and not, like,"</span>,</span>
<span id="cb2-34">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"a place of self loathing.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;"> (Patrick,age 20)"</span>),</span>
<span id="cb2-35">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">[For heterosexuals] the man penetrates the"</span>,</span>
<span id="cb2-36">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"woman, whereas with gay people, I feel like there"</span>,</span>
<span id="cb2-37">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"is this potential for really playing around with"</span>,</span>
<span id="cb2-38">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"that model a lot, you know, and just experimenting"</span>,</span>
<span id="cb2-39">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"and exploring.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;"> (Orion, age 31)"</span>),</span>
<span id="cb2-40">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">LGBTQI, you know, and added on so many letters."</span>,</span>
<span id="cb2-41">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"It does start to raise the question about what the"</span>,</span>
<span id="cb2-42">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"terms mean and whether...any term can adequately be"</span>,</span>
<span id="cb2-43">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"descriptive.</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;"> (Bill, age 50 )"</span>))</span>
<span id="cb2-44">) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-45">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-46">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Discourse and dimension</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(</span>
<span id="cb2-47">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Discourse and dimension</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>,</span>
<span id="cb2-48">      <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">29</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">indent =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>),</span>
<span id="cb2-49">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(</span>
<span id="cb2-50">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Example quote</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>,</span>
<span id="cb2-51">      <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">55</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">indent =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>)</span>
<span id="cb2-52">    ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-53">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(</span>
<span id="cb2-54">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_column =</span> theme, </span>
<span id="cb2-55">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-56">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-57">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.5</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>)) </span>
<span id="cb2-58"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-722" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" prefix="" data-tblnum="1">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-722-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-b7df3888{}.cl-b7b9bf5e{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-b7d8113e{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-b7d81148{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-b7d81152{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:20pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-b7d85676{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d85680{width:4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d8568a{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d8568b{width:4in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d8568c{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d85694{width:4in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d85695{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d85696{width:4in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d85697{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b7d8569e{width:4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-b7df3888"><thead><tr style="overflow-wrap:break-word;"><th class="cl-b7d85676"><p class="cl-b7d8113e"><span class="cl-b7b9bf5e">Discourse</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">dimension</span></p></th><th class="cl-b7d85680"><p class="cl-b7d8113e"><span class="cl-b7b9bf5e">Example</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">quote</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td colspan="2" class="cl-b7d8568a"><p class="cl-b7d81148"><span class="cl-b7b9bf5e">Struggle</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">success</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-b7d8568a"><p class="cl-b7d81152"><span class="cl-b7b9bf5e">Self</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">actualization</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">as</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">a</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;member</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">a</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">larger</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">gay</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;community</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">is</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">end</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">goal</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">healthy</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">sexual</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">identity</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;development</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">or</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">“</span><span class="cl-b7b9bf5e">coming</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">out</span><span class="cl-b7b9bf5e">”</span></p></td><td class="cl-b7d8568b"><p class="cl-b7d81148"><span class="cl-b7b9bf5e">“</span><span class="cl-b7b9bf5e">My</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">path</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">gayness…going</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">from</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">denial</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">to</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">saying,</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="cl-b7b9bf5e">‘</span><span class="cl-b7b9bf5e">well,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">this</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">is</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">it,</span><span class="cl-b7b9bf5e">’</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">then</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">process</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">coming</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;out,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">process</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">just</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">sort</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">looking</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">around</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;seeing,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">well</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">where</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">do</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">I</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">stand</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">in</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">world?</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">And</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">sort</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;having,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">uh,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">political</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">feelings.</span><span class="cl-b7b9bf5e">”</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">(Carl,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">age</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">50)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-b7d8568c"><p class="cl-b7d81152"><span class="cl-b7b9bf5e">Maintaining</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">healthy</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">sexual</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;identity</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">entails</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">vigilance</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;against</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">internalization</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;societal</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">discrimination</span></p></td><td class="cl-b7d85694"><p class="cl-b7d81148"><span class="cl-b7b9bf5e">“</span><span class="cl-b7b9bf5e">When</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">I’m,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">like,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">thinking</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">criticisms</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">more</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;mainstream</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">gay</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">culture,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">I</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">try</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">to…make</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">sure</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">it’s</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;coming</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">from</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">an</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">appropriate</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">place</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">not,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">like,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">a</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">place</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">self</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">loathing.</span><span class="cl-b7b9bf5e">”</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">(Patrick,age</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">20)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="2" class="cl-b7d85695"><p class="cl-b7d81148"><span class="cl-b7b9bf5e">Emancipation</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-b7d8568a"><p class="cl-b7d81152"><span class="cl-b7b9bf5e">Open</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">exploration</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">an</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;individually</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">fluid</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">sexual</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;self</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">is</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">goal</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">healthy</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;sexual</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">identity</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">development</span></p></td><td class="cl-b7d8568b"><p class="cl-b7d81148"><span class="cl-b7b9bf5e">“</span><span class="cl-b7b9bf5e">[For</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">heterosexuals]</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">man</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">penetrates</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">woman,</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;whereas</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">with</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">gay</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">people,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">I</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">feel</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">like</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">there</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">is</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">this</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;potential</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">for</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">really</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">playing</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">around</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">with</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">that</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">model</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">a</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;lot,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">you</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">know,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">just</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">experimenting</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">exploring.</span><span class="cl-b7b9bf5e">”</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;(Orion,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">age</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">31)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-b7d85697"><p class="cl-b7d81152"><span class="cl-b7b9bf5e">Questioning</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">discrete,</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;monolithic</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">categories</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">of</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;sexual</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">identity</span></p></td><td class="cl-b7d8569e"><p class="cl-b7d81148"><span class="cl-b7b9bf5e">“</span><span class="cl-b7b9bf5e">LGBTQI,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">you</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">know,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">added</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">on</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">so</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">many</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">letters.</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;It</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">does</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">start</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">to</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">raise</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">question</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">about</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">what</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">the</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;terms</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">mean</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">and</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">whether…any</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">term</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">can</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">adequately</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">be</span><br><span class="cl-b7b9bf5e">&nbsp;&nbsp;&nbsp;&nbsp;descriptive.</span><span class="cl-b7b9bf5e">”</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">(Bill,</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">age</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">50</span><span class="cl-b7b9bf5e"> </span><span class="cl-b7b9bf5e">)</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-722-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Master Narrative Voices: Struggle and Success and Emancipation</p>
</div>
</figcaption>
</figure>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.22 in {R} with Apa7},
  date = {2025-10-02},
  url = {https://wjschne.github.io/posts/apatables/apa722.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, October 2). Recreating APA Manual Table 7.22 in
R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa722.html">https://wjschne.github.io/posts/apatables/apa722.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa722.html</guid>
  <pubDate>Thu, 02 Oct 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.21 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa721.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-21-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 21 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Use of <a href="https://wjschne.github.io/apa7/reference/add_star_column.html"><code>add_star_column</code></a></li>
<li>Use of thin spaces <code>&amp;thinsp;</code> for footnote superscripts.</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(lme4)</span>
<span id="cb1-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-8">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-721" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-721-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.21</p>
</div>
</figcaption>
<div aria-describedby="fig-721-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table721.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>I did not have enough information to simulate the three models, so I input the data directly. This made it comparatively easy to recreate. Adding stars to the <img src="https://latex.codecogs.com/png.latex?%5Cchi%5E2"> column was made easier by creating a temporary p-value column with values less than .001 and then applying <a href="https://wjschne.github.io/apa7/reference/add_star_column.html"><code>add_star_column</code></a>.</p>
<p>The APA Publication Manual recommends following the footnote symbols with a superscripted space. In the <code>apa-note</code>, the superscript symbols a, b, and c are followed by a thin space within the superscript. This gives a pleasing amount of separation.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="[&quot;Structural equation modeling was used for the analysis. NFI&nbsp;=&nbsp;normed fit index; CFI&nbsp;=&nbsp;comparative fit index; RMSEA&nbsp;=&nbsp;root-mean-square error of approximation.&quot;,&quot;^a ^In Model A, all 57 items of social intelligence, emotional intelligence, and cultural intelligence were loaded onto one factor. ^b ^In Model B, the 21 items of social intelligence were loaded onto one factor, and the 16 items of emotional intelligence and the 20 items of cultural intelligence were loaded onto another factor. ^c ^In Model C, the 21 items of social intelligence were loaded onto one factor, the 16 items of emotional intelligence were loaded onto a second factor, and the 20 items of cultural intelligence were loaded onto a third factor.&quot;,&quot;^\*\*\*^*p* < .001.&quot;]" prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-721</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Results of Confirmatory Factor Analysis for the </span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   Relationships Among Three Types of Intelligence"</span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: </span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   - "Structural equation modeling was used for the analysis. </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     NFI&amp;nbsp;=&amp;nbsp;normed fit index; </span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     CFI&amp;nbsp;=&amp;nbsp;comparative fit index; </span></span>
<span id="cb2-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     RMSEA&amp;nbsp;=&amp;nbsp;root-mean-square error of </span></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     approximation."</span></span>
<span id="cb2-11"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   - "^a&amp;thinsp;^In Model A, all 57 items of social </span></span>
<span id="cb2-12"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    intelligence, emotional intelligence, and cultural </span></span>
<span id="cb2-13"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    intelligence were loaded onto one factor. ^b&amp;thinsp;^In</span></span>
<span id="cb2-14"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    Model B, the 21 items of social intelligence were </span></span>
<span id="cb2-15"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    loaded onto one factor, and the 16 items of emotional </span></span>
<span id="cb2-16"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    intelligence and the 20 items of cultural intelligence </span></span>
<span id="cb2-17"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    were loaded onto another factor. ^c&amp;thinsp;^In Model C, </span></span>
<span id="cb2-18"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    the 21 items of social intelligence were loaded onto one </span></span>
<span id="cb2-19"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    factor, the 16 items of emotional intelligence were </span></span>
<span id="cb2-20"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    loaded onto a second factor, and the 20 items of </span></span>
<span id="cb2-21"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|    cultural intelligence were loaded onto a third factor."</span></span>
<span id="cb2-22"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   - "^\\*\\*\\*^*p* &lt; .001."</span></span>
<span id="cb2-23"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-24">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-25">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A: One-intelligence model^&amp;thinsp;a^"</span>,</span>
<span id="cb2-26">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"B: Two-intelligences mode^&amp;thinsp;b^"</span>,</span>
<span id="cb2-27">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"C: Three-intelligences model^&amp;thinsp;c^"</span>),</span>
<span id="cb2-28">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Chi2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">10994.664</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">10091.236</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">8640.066</span>),</span>
<span id="cb2-29">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">df =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1539</span>L, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1538</span>L, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1536</span>L),</span>
<span id="cb2-30">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">NFI =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.296</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.354</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.447</span>),</span>
<span id="cb2-31">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">CFI =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.326</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.39</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.494</span>),</span>
<span id="cb2-32">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">RMSEA =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.115</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.109</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.1</span>),</span>
<span id="cb2-33">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0001</span></span>
<span id="cb2-34">) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-35">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_star_column</span>(Chi2, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">merge =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-36">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-37">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">column_formats =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">column_formats</span>(</span>
<span id="cb2-38">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>),</span>
<span id="cb2-39">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">layout =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fixed"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-40">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.15</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.15</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">3.2</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">/</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>)))</span>
<span id="cb2-41"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-721" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-apa-note="[&quot;Structural equation modeling was used for the analysis. NFI&nbsp;=&nbsp;normed fit index; CFI&nbsp;=&nbsp;comparative fit index; RMSEA&nbsp;=&nbsp;root-mean-square error of approximation.&quot;,&quot;^a ^In Model A, all 57 items of social intelligence, emotional intelligence, and cultural intelligence were loaded onto one factor. ^b ^In Model B, the 21 items of social intelligence were loaded onto one factor, and the 16 items of emotional intelligence and the 20 items of cultural intelligence were loaded onto another factor. ^c ^In Model C, the 21 items of social intelligence were loaded onto one factor, the 16 items of emotional intelligence were loaded onto a second factor, and the 20 items of cultural intelligence were loaded onto a third factor.&quot;,&quot;^\*\*\*^*p* < .001.&quot;]" data-tblnum="1" prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-721-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-2c3f66c2{}.cl-2c207816{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2c20782a{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2c20782b{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-2c385f80{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-2c385f8a{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-2c38a62a{width:2.15in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a634{width:1.15in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a63e{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a63f{width:2.15in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a640{width:1.15in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a648{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a649{width:2.15in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a64a{width:1.15in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2c38a64b{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-2c3f66c2"><thead><tr style="overflow-wrap:break-word;"><th class="cl-2c38a62a"><p class="cl-2c385f80"><span class="cl-2c207816">Model</span></p></th><th class="cl-2c38a634"><p class="cl-2c385f80"><span class="cl-2c20782a">χ</span><span class="cl-2c20782b">2</span></p></th><th class="cl-2c38a63e"><p class="cl-2c385f80"><span class="cl-2c20782a">df</span></p></th><th class="cl-2c38a63e"><p class="cl-2c385f80"><span class="cl-2c207816">NFI</span></p></th><th class="cl-2c38a63e"><p class="cl-2c385f80"><span class="cl-2c207816">CFI</span></p></th><th class="cl-2c38a63e"><p class="cl-2c385f80"><span class="cl-2c207816">RMSEA</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-2c38a63f"><p class="cl-2c385f8a"><span class="cl-2c207816">A:</span><span class="cl-2c207816"> </span><span class="cl-2c207816">One-intelligence</span><span class="cl-2c207816"> </span><span class="cl-2c207816">model</span><span class="cl-2c20782b"> a</span></p></td><td class="cl-2c38a640"><p class="cl-2c385f80"><span class="cl-2c20782b">   </span><span class="cl-2c207816">10994.664</span><span class="cl-2c20782b">***</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">1,539</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">.296</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">.326</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">.115</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2c38a63f"><p class="cl-2c385f8a"><span class="cl-2c207816">B:</span><span class="cl-2c207816"> </span><span class="cl-2c207816">Two-intelligences</span><span class="cl-2c207816"> </span><span class="cl-2c207816">mode</span><span class="cl-2c20782b"> b</span></p></td><td class="cl-2c38a640"><p class="cl-2c385f80"><span class="cl-2c20782b">   </span><span class="cl-2c207816">10091.236</span><span class="cl-2c20782b">***</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">1,538</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">.354</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">.390</span></p></td><td class="cl-2c38a648"><p class="cl-2c385f80"><span class="cl-2c207816">.109</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2c38a649"><p class="cl-2c385f8a"><span class="cl-2c207816">C:</span><span class="cl-2c207816"> </span><span class="cl-2c207816">Three-intelligences</span><span class="cl-2c207816"> </span><span class="cl-2c207816">model</span><span class="cl-2c20782b"> c</span></p></td><td class="cl-2c38a64a"><p class="cl-2c385f80"><span class="cl-2c207816"> </span><span class="cl-2c20782b">   </span><span class="cl-2c207816">8640.066</span><span class="cl-2c20782b">***</span></p></td><td class="cl-2c38a64b"><p class="cl-2c385f80"><span class="cl-2c207816">1,536</span></p></td><td class="cl-2c38a64b"><p class="cl-2c385f80"><span class="cl-2c207816">.447</span></p></td><td class="cl-2c38a64b"><p class="cl-2c385f80"><span class="cl-2c207816">.494</span></p></td><td class="cl-2c38a64b"><p class="cl-2c385f80"><span class="cl-2c207816">.100</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-721-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Results of Confirmatory Factor Analysis for the Relationships Among Three Types of Intelligence</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. Structural equation modeling was used for the analysis. NFI&nbsp;=&nbsp;normed fit index; CFI&nbsp;=&nbsp;comparative fit index; RMSEA&nbsp;=&nbsp;root-mean-square error of approximation.
</div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<sup>a </sup>In Model A, all 57 items of social intelligence, emotional intelligence, and cultural intelligence were loaded onto one factor. <sup>b </sup>In Model B, the 21 items of social intelligence were loaded onto one factor, and the 16 items of emotional intelligence and the 20 items of cultural intelligence were loaded onto another factor. <sup>c </sup>In Model C, the 21 items of social intelligence were loaded onto one factor, the 16 items of emotional intelligence were loaded onto a second factor, and the 20 items of cultural intelligence were loaded onto a third factor.
</div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<sup>***</sup><em>p</em> &lt; .001.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.21 in {R} with Apa7},
  date = {2025-10-01},
  url = {https://wjschne.github.io/posts/apatables/apa721.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, October 1). Recreating APA Manual Table 7.21 in
R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa721.html">https://wjschne.github.io/posts/apatables/apa721.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa721.html</guid>
  <pubDate>Wed, 01 Oct 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.20 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa720.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-20-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 20 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Display of multilevel models</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(lme4)</span>
<span id="cb1-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-8">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-720" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-720-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.20</p>
</div>
</figcaption>
<div aria-describedby="fig-720-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table720.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>I wanted the experience of making the table close to what would happen in a real analysis. Instead of copying table’s text exactly, I simulated multilevel data based on the results in Figure&nbsp;1. Although there are functions that can simulate multilevel data, In my experience, I can more easily get exactly what I want if I write out the equations and them simulate the data myself. The only information I lacked were the sample sizes at levels 1 and 2 and the number of times these behaviors were measured in the observational study. I supplied some numbers that made the models run without error.</p>
<section id="level-1" class="level3">
<h3 data-anchor-id="level-1">Level 1</h3>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cbegin%7Baligned%7D%0AY_%7Bij%7D%20&amp;=%20b_%7B0j%7D%20+%20b_%7B1j%7DTime_%7Bij%7D%20+%20b_%7B2j%7DTime_%7Bij%7D%5E2%20+%20e_%7Bij%7D%5C%5C%0Ae_%7Bij%7D&amp;%5Csim%5Cmathcal%7BN%7D%5Cleft(0,%5Ctau_1%5Cright)%0A%5Cend%7Baligned%7D%0A"></p>
</section>
<section id="level-2" class="level3 page-columns page-full">
<h3 data-anchor-id="level-2">Level 2</h3>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cbegin%7Baligned%7D%0Ab_%7B0j%7D%20&amp;=%20b_%7B00%7D+b_%7B01%7DPBS_j+b_%7B02%7DSFB_j+e_%7B0j%7D%5C%5C%0Ab_%7B1j%7D%20&amp;=%20b_%7B10%7D+b_%7B11%7DPBS_j+b_%7B12%7DSFB_j+e_%7B1j%7D%5C%5C%0Ab_%7B2j%7D%20&amp;=%20b_%7B20%7D+b_%7B21%7DPBS_j+b_%7B22%7DSFB_j+e_%7B2j%7D%5C%5C%0Ae_2&amp;=%5Cbegin%7Bbmatrix%7D%0Ae_%7B0j%7D%5C%5C%0Ae_%7B1j%7D%5C%5C%0Ae_%7B2j%7D%0A%5Cend%7Bbmatrix%7D%5C%5C%0A%5Ctau_2&amp;=%5Cbegin%7Bbmatrix%7D%0A%5Ctau_%7B00%7D&amp;0&amp;0%5C%5C%0A0&amp;%5Ctau_%7B11%7D&amp;0%5C%5C%0A0&amp;0&amp;%5Ctau_%7B22%7D%5C%5C%0A%5Cend%7Bbmatrix%7D%5C%5C%0Ae_2&amp;%5Csim%5Cmathcal%7BN%7D%5Cleft(0,%5Ctau_2%5Cright)%0A%5Cend%7Baligned%7D%0A"></p>
<p>Because of the stars after the coefficients, I was not able to find a good option for aligning both the coefficients and standard errors in the “Model” columns, so I aligned the coefficients only.</p>
<p>Getting coefficients, variance components, and fit statistics in the same table required a lot of custom formatting. Automating some of this would be a good idea.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="[&quot;Standard errors are in parentheses. All p values in this table are two tailed. In Model 1 (unconditional quadratic growth), the intercept parameter estimate (γ~00~) represents the average positive or negative emotions score at posttest across the sample. In Model 2 (prosocial and self-focused behavior vs. control), the intercept parameter estimate (γ~00~) represents the average positive or negative emotions score in the control condition at posttest, γ~02~ represents the difference at posttest between the prosocial behavior conditions and the control condition, and γ~03~ represents the difference at posttest between the self-focused behavior condition and the control condition. γ~10~ represents the average linear rate of change in the control condition, γ11 represents additional effects of prosocial behavior on linear rate of change, and γ~12~ represents additional effects of self-focused behavior on linear rate of change. Finally, γ~20~ represents the average quadratic rate of change in the control condition, γ~21~ represents additional effects of prosocial behavior on quadratic rate of change, and γ~22~ represents additional effects of self-focused behavior on quadratic rate of change. In all models, the intercept, linear slope (time), and quadratic slope (time2) were free to vary.&quot;,&quot;^\*&nbsp;^*p* < .05. ^\*\*&nbsp;^*p* < .01. ^\*\*\*&nbsp;^*p* < .001.&quot;]" prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">123</span>)</span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Number of people</span></span>
<span id="cb2-3">n_2 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">400</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Number of time points</span></span>
<span id="cb2-5">n_1 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">15</span></span>
<span id="cb2-6"></span>
<span id="cb2-7">d_parameter <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> tibble<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-8">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">symbol =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-9">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_00"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_01"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_02"</span>,</span>
<span id="cb2-10">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_10"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_11"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_12"</span>,</span>
<span id="cb2-11">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_20"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_21"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b_22"</span>,</span>
<span id="cb2-12">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"s_e"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"s_0"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"s_1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"s_2"</span>),</span>
<span id="cb2-13">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Positive =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-14">    <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">3.34</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.39</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.26</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.002</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.06</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>,</span>
<span id="cb2-15">    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.52</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.31</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>),</span>
<span id="cb2-16">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Negative =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-17">    <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.82</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.36</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.16</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.02</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.02</span>, </span>
<span id="cb2-18">    <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.51</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.02</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.02</span>),</span>
<span id="cb2-19">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Parameter =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-20">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"(Intercept)"</span>,</span>
<span id="cb2-21">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PBS"</span>,</span>
<span id="cb2-22">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SFB"</span>,</span>
<span id="cb2-23">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Time"</span>,</span>
<span id="cb2-24">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PBS:Time"</span>,</span>
<span id="cb2-25">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Time:SFB"</span>,</span>
<span id="cb2-26">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"I(Time^2)"</span>,</span>
<span id="cb2-27">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PBS:I(Time^2)"</span>,</span>
<span id="cb2-28">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"I(Time^2):SFB"</span>,</span>
<span id="cb2-29">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SD (Observations)"</span>,</span>
<span id="cb2-30">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SD (Intercept)"</span>,</span>
<span id="cb2-31">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SD (Time)"</span>, </span>
<span id="cb2-32">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SD (I(Time^2))"</span>),</span>
<span id="cb2-33">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">pname =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-34">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Intercept"</span>,</span>
<span id="cb2-35">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Prosocial behavior"</span>,</span>
<span id="cb2-36">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Self-focused behavior"</span>,</span>
<span id="cb2-37">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Time"</span>,</span>
<span id="cb2-38">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Prosocial behavior"</span>, </span>
<span id="cb2-39">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Self-focused behavior"</span>,</span>
<span id="cb2-40">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Time^2"</span>,</span>
<span id="cb2-41">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Prosocial behavior"</span>, </span>
<span id="cb2-42">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Self-focused behavior"</span>,</span>
<span id="cb2-43">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Level 1"</span>,</span>
<span id="cb2-44">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Level 2"</span>,</span>
<span id="cb2-45">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Level 2"</span>,</span>
<span id="cb2-46">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Level 2"</span>),</span>
<span id="cb2-47">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">l2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-48">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Status at postest, &amp;pi;~0j~"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>),</span>
<span id="cb2-49">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Linear rate of change, &amp;pi;~1j~"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>),</span>
<span id="cb2-50">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Quadratic rate of change, &amp;pi;~2j~"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>),</span>
<span id="cb2-51">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Variance components"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>)),</span>
<span id="cb2-52">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">effect_type =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-53">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>),</span>
<span id="cb2-54">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Random"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>))</span>
<span id="cb2-55">) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-56">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">symbol =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(symbol),</span>
<span id="cb2-57">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">pname =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(pname))</span>
<span id="cb2-58"></span>
<span id="cb2-59"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Level 1 variances</span></span>
<span id="cb2-60">tau_1 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_parameter <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-61">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(symbol <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"s_e"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-62">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(symbol, Positive, Negative) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-63">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>symbol) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-64">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(name, value) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-65">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">deframe</span>()</span>
<span id="cb2-66"></span>
<span id="cb2-67"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Level 2 variances</span></span>
<span id="cb2-68">tau_2 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_parameter <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-69">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_starts</span>(symbol, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"s_"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-70">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(symbol <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">!=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"s_e"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-71">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(symbol, Positive, Negative) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-72">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>symbol) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-73">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>symbol) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-74">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>name) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-75">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(</span>
<span id="cb2-76">    value, </span>
<span id="cb2-77">    \(x) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">diag</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unlist</span>(x)))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-78">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">deframe</span>()</span>
<span id="cb2-79"></span>
<span id="cb2-80"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Fixed effects</span></span>
<span id="cb2-81">d_parameter_fixed <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_parameter <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-82">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(effect_type <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-83">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(symbol, Positive, Negative) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-84">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>symbol, </span>
<span id="cb2-85">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"dv"</span>, </span>
<span id="cb2-86">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-87">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> symbol, </span>
<span id="cb2-88">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> b)</span>
<span id="cb2-89"></span>
<span id="cb2-90"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Level 2 simulated data</span></span>
<span id="cb2-91">d_2 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-92">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">id =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">seq_len</span>(n_2),</span>
<span id="cb2-93">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Intercept =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>,</span>
<span id="cb2-94">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">PBS =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rnorm</span>(n_2),</span>
<span id="cb2-95">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">SFB =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rnorm</span>(n_2)</span>
<span id="cb2-96">) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-97">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">crossing</span>(</span>
<span id="cb2-98">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">dv =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Positive"</span>, </span>
<span id="cb2-99">                       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Negative"</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-100">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>dv) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-101">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-102">      <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">tau_2 =</span> tau_2, </span>
<span id="cb2-103">      <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">e_2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(</span>
<span id="cb2-104">        tau_2, </span>
<span id="cb2-105">        \(x) {</span>
<span id="cb2-106">          mvtnorm<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rmvnorm</span>(</span>
<span id="cb2-107">            <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n =</span> n_2, </span>
<span id="cb2-108">            <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mean =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-109">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">e_0j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, </span>
<span id="cb2-110">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">e_1j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, </span>
<span id="cb2-111">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">e_2j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>), </span>
<span id="cb2-112">            <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sigma =</span> x) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-113">            <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>()</span>
<span id="cb2-114">        })) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-115">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>tau_2) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-116">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(data, e_2)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-117">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">left_join</span>(d_parameter_fixed, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">join_by</span>(dv)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-118">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">b_0j =</span> b_00 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_01 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> PBS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_02 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> SFB <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> e_0j,</span>
<span id="cb2-119">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">b_1j =</span> b_10 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_11 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> PBS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_12 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> SFB <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> e_1j,</span>
<span id="cb2-120">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">b_2j =</span> b_20 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_21 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> PBS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_22 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> SFB <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> e_2j)</span>
<span id="cb2-121"></span>
<span id="cb2-122"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Level 1 simulated data</span></span>
<span id="cb2-123">d_1 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_2 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-124">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">crossing</span>(</span>
<span id="cb2-125">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Time =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">seq</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, n_1 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb2-126">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-127">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>dv) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-128">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">tau_1 =</span> tau_1,</span>
<span id="cb2-129">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">e_ij =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2</span>(tau_1, data, \(tau, d) {</span>
<span id="cb2-130">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rnorm</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(d), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sd =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sqrt</span>(tau))</span>
<span id="cb2-131">           })) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-132">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(data, e_ij)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-133">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-134">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">y =</span> b_0j <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_1j <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> Time <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> b_2j <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> Time<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">^</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> e_ij) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-135">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(dv, id, PBS, SFB, Time, y) </span>
<span id="cb2-136"></span>
<span id="cb2-137"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Analyze data</span></span>
<span id="cb2-138">fit <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_1 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-139">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>dv) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-140">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-141">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model 1</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(</span>
<span id="cb2-142">      data, </span>
<span id="cb2-143">      \(d) {</span>
<span id="cb2-144">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lmer</span>(y <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Time <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">I</span>(Time<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">^</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> </span>
<span id="cb2-145">               (<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Time <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">I</span>(Time<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">^</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">||</span> id), </span>
<span id="cb2-146">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)</span>
<span id="cb2-147">      }),</span>
<span id="cb2-148">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model 2</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(</span>
<span id="cb2-149">      data, </span>
<span id="cb2-150">      \(d) {</span>
<span id="cb2-151">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lmer</span>(y <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> PBS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> Time <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> PBS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">I</span>(Time<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">^</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> </span>
<span id="cb2-152">               SFB <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> Time <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> SFB <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">I</span>(Time<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">^</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> </span>
<span id="cb2-153">               (<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Time <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">I</span>(Time<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">^</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">||</span> id), </span>
<span id="cb2-154">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)</span>
<span id="cb2-155">        })</span>
<span id="cb2-156">      ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-157">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>data) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-158">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(dv), </span>
<span id="cb2-159">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model"</span>, </span>
<span id="cb2-160">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fit"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-161">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-162">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">parameters =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(</span>
<span id="cb2-163">      fit, parameters<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span>parameters, </span>
<span id="cb2-164">      <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">include_sigma =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>))</span>
<span id="cb2-165"></span>
<span id="cb2-166"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Peformance statistics</span></span>
<span id="cb2-167">d_performance <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> fit <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-168">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(dv, fit) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-169">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summarise</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(fit), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> dv) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-170">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(fit, \(f1) {</span>
<span id="cb2-171">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">anova</span>(f1[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>]], f1[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>]]) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-172">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-173">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Deviance =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-2*log(L)</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, </span>
<span id="cb2-174">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">deltachi2 =</span> Chisq,</span>
<span id="cb2-175">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">df_diff =</span> Df,</span>
<span id="cb2-176">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pr(&gt;Chisq)</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-177">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model "</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>),</span>
<span id="cb2-178">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">chistar =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">p2stars</span>(p),</span>
<span id="cb2-179">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Deviance =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(Deviance)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-180">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(</span>
<span id="cb2-181">        Model, </span>
<span id="cb2-182">        Deviance, </span>
<span id="cb2-183">        deltachi2, </span>
<span id="cb2-184">        df_diff, </span>
<span id="cb2-185">        chistar) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-186">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_format_columns</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-187">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;Delta;&amp;chi;^2^</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, </span>
<span id="cb2-188">            <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;Delta;&amp;chi;^2^</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, </span>
<span id="cb2-189">            chistar, </span>
<span id="cb2-190">            <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>)</span>
<span id="cb2-191">    })) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-192">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>fit) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-193">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">arrange</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">desc</span>(dv)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-194">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-195">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">dv =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(dv, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" emotions"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-196">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(dv, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(dv, Model)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-197">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">dv =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(dv)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-198">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>dv, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Effect"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-199">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> dv) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-200">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">effect_type =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Goodness of fit"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-201">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>()</span>
<span id="cb2-202">  </span>
<span id="cb2-203"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-204">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> fit <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-205">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(parameters) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-206">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(dv, Model, Parameter, Coefficient, SE, p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-207">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Coefficient =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(Coefficient)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-208">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_star_column</span>(Coefficient, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">merge =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-209">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">SE =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(SE, </span>
<span id="cb2-210">                                    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">01</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-211">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tagger</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" ("</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">")"</span>), </span>
<span id="cb2-212">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">b =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(Coefficient, SE),</span>
<span id="cb2-213">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">dv =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(dv, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"emotions"</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-214">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(dv, Model, Parameter, b) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-215">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(dv, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(dv, Model)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-216">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> dv, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> b) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-217">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">left_join</span>(</span>
<span id="cb2-218">    d_parameter <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-219">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(Parameter, </span>
<span id="cb2-220">             symbol, </span>
<span id="cb2-221">             pname, </span>
<span id="cb2-222">             l2, </span>
<span id="cb2-223">             effect_type), </span>
<span id="cb2-224">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">join_by</span>(Parameter)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-225">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">arrange</span>(symbol) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-226">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Effect =</span> pname) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-227">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Parameter) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-228">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">relocate</span>(Effect, symbol, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.before =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-229">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">symbol =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.character</span>(symbol) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-230">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_replace_all</span>(</span>
<span id="cb2-231">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">s_</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"&amp;sigma;~"</span>,</span>
<span id="cb2-232">               <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">b_</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"&amp;gamma;~"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-233">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"~"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(</span>
<span id="cb2-234">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_detect</span>(symbol, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"^s"</span>), </span>
<span id="cb2-235">             <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"^2^"</span>, </span>
<span id="cb2-236">             <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-237">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Effect =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.character</span>(Effect) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_replace</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">^2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"^2^"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-238">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_grouped_data</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"effect_type"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"l2"</span>))  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-239">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Effect =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">is.na</span>(l2), Effect, l2)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-240">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>l2) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-241">  tidyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fill</span>(effect_type) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-242">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">!</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">is.na</span>(Effect))  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-243">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">bind_rows</span>(d_performance) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-244">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(</span>
<span id="cb2-245">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>(), </span>
<span id="cb2-246">    \(x) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">replace_na</span>(x, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">replace =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-247">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Parameter </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> symbol) </span>
<span id="cb2-248"></span>
<span id="cb2-249"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-250">d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-251">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(</span>
<span id="cb2-252">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_column =</span> effect_type, </span>
<span id="cb2-253">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_align =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"center"</span>,</span>
<span id="cb2-254">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font_size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">10</span>, </span>
<span id="cb2-255">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-256">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">is.na</span>(row_title)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-257">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">padding</span>(</span>
<span id="cb2-258">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb2-259">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">is.na</span>(row_title) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span> </span>
<span id="cb2-260">            <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Parameter </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">!=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>), </span>
<span id="cb2-261">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">padding.left =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">15</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-262">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">merge_v</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Effect"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-263">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.70</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">55</span>, </span>
<span id="cb2-264">                  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.05</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.05</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">05</span>, </span>
<span id="cb2-265">                  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.05</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.05</span>))</span></code></pre></div></div>
<div id="tbl-720" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" prefix="" data-apa-note="[&quot;Standard errors are in parentheses. All p values in this table are two tailed. In Model 1 (unconditional quadratic growth), the intercept parameter estimate (γ~00~) represents the average positive or negative emotions score at posttest across the sample. In Model 2 (prosocial and self-focused behavior vs. control), the intercept parameter estimate (γ~00~) represents the average positive or negative emotions score in the control condition at posttest, γ~02~ represents the difference at posttest between the prosocial behavior conditions and the control condition, and γ~03~ represents the difference at posttest between the self-focused behavior condition and the control condition. γ~10~ represents the average linear rate of change in the control condition, γ11 represents additional effects of prosocial behavior on linear rate of change, and γ~12~ represents additional effects of self-focused behavior on linear rate of change. Finally, γ~20~ represents the average quadratic rate of change in the control condition, γ~21~ represents additional effects of prosocial behavior on quadratic rate of change, and γ~22~ represents additional effects of self-focused behavior on quadratic rate of change. In all models, the intercept, linear slope (time), and quadratic slope (time2) were free to vary.&quot;,&quot;^\*&nbsp;^*p* < .05. ^\*\*&nbsp;^*p* < .01. ^\*\*\*&nbsp;^*p* < .001.&quot;]" data-tblnum="1">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-720-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-9cdfdcd2{}.cl-9cc0d1e8{font-family:'Times New Roman';font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-9cc0d1fc{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-9cc0d1fd{font-family:'Times New Roman';font-size:6pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;top:3pt;}.cl-9cc0d206{font-family:'Times New Roman';font-size:6pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3pt;}.cl-9cc0d207{font-family:'Times New Roman';font-size:10pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-9cd755e4{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3.3pt;padding-top:3.3pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-9cd755ee{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3.3pt;padding-top:3.3pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-9cd755f8{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:3.3pt;padding-top:3.3pt;padding-left:15pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-9cd7a5ee{width:1.7in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a5f8{width:0.55in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a5f9{width:1.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a602{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a603{width:1.7in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a604{width:0.55in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a60c{width:1.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a60d{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a60e{width:1.7in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a616{width:1.7in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a617{width:0.55in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a618{width:1.05in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a620{width:1.7in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a621{width:0.55in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a622{width:1.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a62a{width:1.7in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a62b{width:0.55in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a62c{width:1.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-9cd7a634{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-9cdfdcd2"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-9cd7a5ee"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Effect</span></p></th><th rowspan="2" class="cl-9cd7a5f8"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Parameter</span></p></th><th colspan="2" class="cl-9cd7a5f9"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Negative</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">emotions</span></p></th><th rowspan="2" class="cl-9cd7a602"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></th><th colspan="2" class="cl-9cd7a5f9"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Positive</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">emotions</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-9cd7a5f9"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Model</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">1</span></p></th><th class="cl-9cd7a5f9"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Model</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">2</span></p></th><th class="cl-9cd7a5f9"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Model</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">1</span></p></th><th class="cl-9cd7a5f9"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Model</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">2</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td colspan="7" class="cl-9cd7a603"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Fixed</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755ee"><span class="cl-9cc0d1e8">Status</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">at</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">postest,</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">π</span><span class="cl-9cc0d1fd">0j</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Intercept</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">00</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8"> 1.79</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8"> 1.80</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8"> 3.40</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8"> 3.39</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Prosocial</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">behavior</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">01</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8">−0.34</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8"> 0.25</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Self-focused</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">behavior</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">02</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">  </span><span class="cl-9cc0d1e8">−0.17</span><span class="cl-9cc0d206">**</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8"> 0.22</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.06)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755ee"><span class="cl-9cc0d1e8">Linear</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">rate</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">of</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">change,</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">π</span><span class="cl-9cc0d1fd">1j</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Time</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">10</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.00</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.00</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.00</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.00</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Prosocial</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">behavior</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">11</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.02</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8">−0.08</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Self-focused</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">behavior</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">12</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8">−0.04</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.02</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755ee"><span class="cl-9cc0d1e8">Quadratic</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">rate</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">of</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">change,</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">π</span><span class="cl-9cc0d1fd">2j</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Time</span><span class="cl-9cc0d206">2</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">20</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">  </span><span class="cl-9cc0d1e8"> 0.02</span><span class="cl-9cc0d206">**</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">  </span><span class="cl-9cc0d1e8"> 0.02</span><span class="cl-9cc0d206">**</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.02</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.02</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Prosocial</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">behavior</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">21</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.00</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d206">   </span><span class="cl-9cc0d1e8">−0.03</span><span class="cl-9cc0d206">***</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a616"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Self-focused</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">behavior</span></p></td><td class="cl-9cd7a617"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">γ</span><span class="cl-9cc0d1fd">22</span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.00</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d206"> </span><span class="cl-9cc0d1e8">−0.02</span><span class="cl-9cc0d206">*</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">(0.01)</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="7" class="cl-9cd7a620"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Random</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755ee"><span class="cl-9cc0d1e8">Variance</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">components</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Level</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">1</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">σ</span><span class="cl-9cc0d1fd">e</span><span class="cl-9cc0d206">2</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.73</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.73</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.71</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.71</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="3" class="cl-9cd7a616"><p class="cl-9cd755f8"><span class="cl-9cc0d1e8">Level</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">2</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">σ</span><span class="cl-9cc0d1fd">0</span><span class="cl-9cc0d206">2</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 1.08</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 1.01</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 1.15</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 1.11</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">σ</span><span class="cl-9cc0d1fd">1</span><span class="cl-9cc0d206">2</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.13</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.13</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.22</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.20</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a617"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">σ</span><span class="cl-9cc0d1fd">2</span><span class="cl-9cc0d206">2</span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.13</span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.13</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.18</span></p></td><td class="cl-9cd7a618"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"> 0.18</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="7" class="cl-9cd7a620"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">Goodness</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">of</span><span class="cl-9cc0d1e8"> </span><span class="cl-9cc0d1e8">fit</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755ee"><span class="cl-9cc0d1e8">Deviance</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">17,862.07</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">17,800.95</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">18,214.81</span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">18,133.36</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a60e"><p class="cl-9cd755ee"><span class="cl-9cc0d1e8">Δχ</span><span class="cl-9cc0d206">2</span></p></td><td class="cl-9cd7a604"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">61.12***</span></p></td><td class="cl-9cd7a60d"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a60c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">81.45***</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-9cd7a62a"><p class="cl-9cd755ee"><span class="cl-9cc0d1e8">Δ</span><span class="cl-9cc0d207">df</span></p></td><td class="cl-9cd7a62b"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a62c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a62c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">6</span></p></td><td class="cl-9cd7a634"><p class="cl-9cd755e4"><span class="cl-9cc0d1fc"></span></p></td><td class="cl-9cd7a62c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8"></span></p></td><td class="cl-9cd7a62c"><p class="cl-9cd755e4"><span class="cl-9cc0d1e8">6</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-720-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Model Parameters and Goodness of Fit for Linear and Quadratic Changes in Emotions by Behavior Type</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. Standard errors are in parentheses. All p values in this table are two tailed. In Model 1 (unconditional quadratic growth), the intercept parameter estimate (γ<sub>00</sub>) represents the average positive or negative emotions score at posttest across the sample. In Model 2 (prosocial and self-focused behavior vs.&nbsp;control), the intercept parameter estimate (γ<sub>00</sub>) represents the average positive or negative emotions score in the control condition at posttest, γ<sub>02</sub> represents the difference at posttest between the prosocial behavior conditions and the control condition, and γ<sub>03</sub> represents the difference at posttest between the self-focused behavior condition and the control condition. γ<sub>10</sub> represents the average linear rate of change in the control condition, γ11 represents additional effects of prosocial behavior on linear rate of change, and γ<sub>12</sub> represents additional effects of self-focused behavior on linear rate of change. Finally, γ<sub>20</sub> represents the average quadratic rate of change in the control condition, γ<sub>21</sub> represents additional effects of prosocial behavior on quadratic rate of change, and γ<sub>22</sub> represents additional effects of self-focused behavior on quadratic rate of change. In all models, the intercept, linear slope (time), and quadratic slope (time2) were free to vary.
</div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<sup>*&nbsp;</sup><em>p</em> &lt; .05. <sup>**&nbsp;</sup><em>p</em> &lt; .01. <sup>***&nbsp;</sup><em>p</em> &lt; .001.
</div>
</div>
</div>



</section>
</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.20 in {R} with Apa7},
  date = {2025-09-30},
  url = {https://wjschne.github.io/posts/apatables/apa720.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 30). Recreating APA Manual Table 7.20
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa720.html">https://wjschne.github.io/posts/apatables/apa720.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa720.html</guid>
  <pubDate>Tue, 30 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.19 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa719.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-19-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 19 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Presenting a sequence of regression models</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-7">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-719" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-719-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.19</p>
</div>
</figcaption>
<div aria-describedby="fig-719-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table719.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>In the recreated table, the hanging indent for <em>Modified latent change</em> was omitted because the text is shorter than <em>Simplex contemporaneous</em>, which does not have a hanging indent.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="AIC and BIC differences are relative to the simplex lagged model. RMSEA&nbsp;=&nbsp;root-mean-square error of approximation; CI&nbsp;=&nbsp;confidence interval; AIC&nbsp;=&nbsp;Akaike information criterion; BIC&nbsp;=&nbsp;Bayesian information criterion." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-719</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Comparison of Fit Indices in Models Fitted to Simulated Data Across Longitudinal Mediation Model Types"</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: "AIC and BIC differences are relative to the simplex </span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   lagged model. RMSEA&amp;nbsp;=&amp;nbsp;root-mean-square error of </span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   approximation; CI&amp;nbsp;=&amp;nbsp;confidence interval; </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   AIC&amp;nbsp;=&amp;nbsp;Akaike information criterion; </span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   BIC&amp;nbsp;=&amp;nbsp;Bayesian information criterion."</span></span>
<span id="cb2-9"></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-11">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-12">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Simplex lagged"</span>,</span>
<span id="cb2-13">                       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Simplex contemporaneous"</span>,</span>
<span id="cb2-14">                       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Latent growth"</span>,</span>
<span id="cb2-15">                       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Modified latent change"</span>),</span>
<span id="cb2-16">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;chi;^2^_Value</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">63.3</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">58</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">65</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">26.2</span>),</span>
<span id="cb2-17">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;chi;^2^_df</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">28</span>L, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">29</span>L, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">33</span>L, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">33</span>L),</span>
<span id="cb2-18">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;chi;^2^_p</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1e-04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1e-04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.79</span>),</span>
<span id="cb2-19">       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">RMSEA_Value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.044</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.039</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>),</span>
<span id="cb2-20">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">RMSEA_95% CI</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"[.030, .059]"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"[.024, .054]"</span>,</span>
<span id="cb2-21">                       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"[.025, .053]"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"[.000, .020]"</span>),</span>
<span id="cb2-22">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">RMSEA_p =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.72</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.87</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.9</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.999</span>),</span>
<span id="cb2-23">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">AIC =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13479</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13472</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13471</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13432</span>),</span>
<span id="cb2-24">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">BIC =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13658</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13646</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13627</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13588</span>),</span>
<span id="cb2-25">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">deltaAIC</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">7</span>L, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">8</span>L, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">47</span>L),</span>
<span id="cb2-26">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">deltaBIC</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">12</span>L, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">31</span>L, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">70</span>L)</span>
<span id="cb2-27">) </span>
<span id="cb2-28"></span>
<span id="cb2-29"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-30">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-31">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">RMSEA_Value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(</span>
<span id="cb2-32">    RMSEA_Value, </span>
<span id="cb2-33">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>, </span>
<span id="cb2-34">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">trim_leading_zeros =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>))</span>
<span id="cb2-35"></span>
<span id="cb2-36"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-37">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-38">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font_size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">11</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-39">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.80</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">45</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">35</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">45</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">05</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">40</span>, </span>
<span id="cb2-40">                   .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">85</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">35</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">40</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">40</span>)) </span>
<span id="cb2-41"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-719" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-apa-note="AIC and BIC differences are relative to the simplex lagged model. RMSEA&nbsp;=&nbsp;root-mean-square error of approximation; CI&nbsp;=&nbsp;confidence interval; AIC&nbsp;=&nbsp;Akaike information criterion; BIC&nbsp;=&nbsp;Bayesian information criterion." data-tblnum="1" prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-719-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-0ce30776{}.cl-0cc6a75c{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-0cc6a770{font-family:'Times New Roman';font-size:6.6pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.3pt;}.cl-0cc6a77a{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-0cdbef68{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:7.3pt;padding-top:7.3pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-0cdbef7c{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:7.3pt;padding-top:7.3pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-0cdc4d14{width:1.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d28{width:0.45in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d29{width:0.35in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d32{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d33{width:0.4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d3c{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d3d{width:0.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d46{width:1.8in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d47{width:0.45in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d50{width:0.35in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d51{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d5a{width:0.4in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d5b{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d64{width:0.5in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d65{width:1.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d6e{width:0.45in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d6f{width:0.35in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d70{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d78{width:0.4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d79{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-0cdc4d7a{width:0.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-0ce30776"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-0cdc4d14"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">Model</span></p></th><th colspan="3" class="cl-0cdc4d28"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">χ</span><span class="cl-0cc6a770">2</span></p></th><th rowspan="2" class="cl-0cdc4d32"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"></span></p></th><th colspan="3" class="cl-0cdc4d33"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">RMSEA</span></p></th><th rowspan="2" class="cl-0cdc4d3d"><p class="cl-0cdbef68"><span class="cl-0cc6a77a">AIC</span></p></th><th rowspan="2" class="cl-0cdc4d3d"><p class="cl-0cdbef68"><span class="cl-0cc6a77a">BIC</span></p></th><th rowspan="2" class="cl-0cdc4d33"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">Δ</span><span class="cl-0cc6a77a">AIC</span></p></th><th rowspan="2" class="cl-0cdc4d33"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">Δ</span><span class="cl-0cc6a77a">BIC</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-0cdc4d28"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">Value</span></p></th><th class="cl-0cdc4d29"><p class="cl-0cdbef68"><span class="cl-0cc6a77a">df</span></p></th><th class="cl-0cdc4d28"><p class="cl-0cdbef68"><span class="cl-0cc6a77a">p</span></p></th><th class="cl-0cdc4d33"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">Value</span></p></th><th class="cl-0cdc4d3c"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">95%</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">CI</span></p></th><th class="cl-0cdc4d29"><p class="cl-0cdbef68"><span class="cl-0cc6a77a">p</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-0cdc4d46"><p class="cl-0cdbef7c"><span class="cl-0cc6a75c">Simplex</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">lagged</span></p></td><td class="cl-0cdc4d47"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">63.30</span></p></td><td class="cl-0cdc4d50"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">28</span></p></td><td class="cl-0cdc4d47"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">&lt;.001</span></p></td><td class="cl-0cdc4d51"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"></span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">.044</span></p></td><td class="cl-0cdc4d5b"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">[.030,</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">.059]</span></p></td><td class="cl-0cdc4d50"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"> .72</span></p></td><td class="cl-0cdc4d64"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,479</span></p></td><td class="cl-0cdc4d64"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,658</span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"></span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-0cdc4d46"><p class="cl-0cdbef7c"><span class="cl-0cc6a75c">Simplex</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">contemporaneous</span></p></td><td class="cl-0cdc4d47"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">58.00</span></p></td><td class="cl-0cdc4d50"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">29</span></p></td><td class="cl-0cdc4d47"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"> .001</span></p></td><td class="cl-0cdc4d51"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"></span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">.040</span></p></td><td class="cl-0cdc4d5b"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">[.024,</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">.054]</span></p></td><td class="cl-0cdc4d50"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"> .87</span></p></td><td class="cl-0cdc4d64"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,472</span></p></td><td class="cl-0cdc4d64"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,646</span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"> −7</span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">−12</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-0cdc4d46"><p class="cl-0cdbef7c"><span class="cl-0cc6a75c">Latent</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">growth</span></p></td><td class="cl-0cdc4d47"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">65.00</span></p></td><td class="cl-0cdc4d50"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">33</span></p></td><td class="cl-0cdc4d47"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">&lt;.001</span></p></td><td class="cl-0cdc4d51"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"></span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">.039</span></p></td><td class="cl-0cdc4d5b"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">[.025,</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">.053]</span></p></td><td class="cl-0cdc4d50"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"> .90</span></p></td><td class="cl-0cdc4d64"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,471</span></p></td><td class="cl-0cdc4d64"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,627</span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"> −8</span></p></td><td class="cl-0cdc4d5a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">−31</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-0cdc4d65"><p class="cl-0cdbef7c"><span class="cl-0cc6a75c">Modified</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">latent</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">change</span></p></td><td class="cl-0cdc4d6e"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">26.20</span></p></td><td class="cl-0cdc4d6f"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">33</span></p></td><td class="cl-0cdc4d6e"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"> .79 </span></p></td><td class="cl-0cdc4d70"><p class="cl-0cdbef68"><span class="cl-0cc6a75c"></span></p></td><td class="cl-0cdc4d78"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">.000</span></p></td><td class="cl-0cdc4d79"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">[.000,</span><span class="cl-0cc6a75c"> </span><span class="cl-0cc6a75c">.020]</span></p></td><td class="cl-0cdc4d6f"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">&gt;.99</span></p></td><td class="cl-0cdc4d7a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,432</span></p></td><td class="cl-0cdc4d7a"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">13,588</span></p></td><td class="cl-0cdc4d78"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">−47</span></p></td><td class="cl-0cdc4d78"><p class="cl-0cdbef68"><span class="cl-0cc6a75c">−70</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-719-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Comparison of Fit Indices in Models Fitted to Simulated Data Across Longitudinal Mediation Model Types</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. AIC and BIC differences are relative to the simplex lagged model. RMSEA&nbsp;=&nbsp;root-mean-square error of approximation; CI&nbsp;=&nbsp;confidence interval; AIC&nbsp;=&nbsp;Akaike information criterion; BIC&nbsp;=&nbsp;Bayesian information criterion.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.19 in {R} with Apa7},
  date = {2025-09-29},
  url = {https://wjschne.github.io/posts/apatables/apa719.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 29). Recreating APA Manual Table 7.19
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa719.html">https://wjschne.github.io/posts/apatables/apa719.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa719.html</guid>
  <pubDate>Mon, 29 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.18 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa718.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-18-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 18 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Presenting a sequence of regression models</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(lavaan)</span>
<span id="cb1-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-8">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-718" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-718-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.18</p>
</div>
</figcaption>
<div aria-describedby="fig-718-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table718.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>To make the conversion of analysis to table more realistic, I simulated data to resemble the Step 3 model.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="[&quot;CI = confidence interval; *LL*&nbsp;=&nbsp;lower limit; *UL*&nbsp;=&nbsp;upper limit; familismo = the collective importance of family unity that emphasizes interdependence and solidarity; Mex Am margin&nbsp;=&nbsp;Mexican American marginalization.&quot;,&quot;^\*^*p* < .05. ^\*\*^*p* < .01. ^\*\*\*^*p* < .001.&quot;]" prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-718</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Hierarchical Regression: Results for Well-Being"</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: </span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   - "CI = confidence interval; *LL*&amp;nbsp;=&amp;nbsp;lower limit; </span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   *UL*&amp;nbsp;=&amp;nbsp;upper limit; familismo = the collective </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   importance of family unity that emphasizes interdependence</span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   and solidarity; Mex Am margin&amp;nbsp;=&amp;nbsp;Mexican </span></span>
<span id="cb2-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   American marginalization."</span></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   - "^\\*^*p* &lt; .05. ^\\*\\*^*p* &lt; .01. ^\\*\\*\\*^*p* &lt; .001."</span></span>
<span id="cb2-11"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">123</span>)</span>
<span id="cb2-12"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make coefficients</span></span>
<span id="cb2-13">d_coefficients <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> tibble<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tribble</span>(</span>
<span id="cb2-14">  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Step,                <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Variable, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>beta,    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>b,</span>
<span id="cb2-15">     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>L, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Perceived social class"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.31</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.45</span>,</span>
<span id="cb2-16">     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>L,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Generation level"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>,</span>
<span id="cb2-17">     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>L,              <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Familismo"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.23</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.37</span>,</span>
<span id="cb2-18">     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>L,          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Acculturation"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.05</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.11</span>,</span>
<span id="cb2-19">     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>L,          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Enculturation"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.24</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.35</span>,</span>
<span id="cb2-20">     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>L,        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Mex {Am} margin"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.17</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.23</span>,</span>
<span id="cb2-21">     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>L,   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Masculinity ideology"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.18</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.05</span></span>
<span id="cb2-22">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-23">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">vname =</span> snakecase<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">to_any_case</span>(</span>
<span id="cb2-24">    Variable, </span>
<span id="cb2-25">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">case =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"parsed"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(),</span>
<span id="cb2-26">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Variable =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(Variable))</span>
<span id="cb2-27"></span>
<span id="cb2-28"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-29">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_coefficients <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-30">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(vname, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(beta, vname), </span>
<span id="cb2-31">        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" * "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-32">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pull</span>(vname) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-33">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">collapse =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" + "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-34">  {</span>
<span id="cb2-35">    \(x) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"y ~ "</span>, x)</span>
<span id="cb2-36">    }() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-37">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">simulateData</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">standardized =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sample.nobs =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">125</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-38">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">y =</span> y <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-39">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>()</span>
<span id="cb2-40"></span>
<span id="cb2-41"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Rescale data</span></span>
<span id="cb2-42"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> (i <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">seq_len</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(d_coefficients))) {</span>
<span id="cb2-43">  d[,d_coefficients[i,]<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>vname] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d[,d_coefficients[i,]<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>vname] <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> </span>
<span id="cb2-44">    d_coefficients[i,]<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>beta <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">/</span> </span>
<span id="cb2-45">    d_coefficients[i,]<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>beta</span>
<span id="cb2-46">}</span>
<span id="cb2-47"></span>
<span id="cb2-48"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Analyze data</span></span>
<span id="cb2-49">d_analysis <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_coefficients <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-50">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(Step, vname) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-51">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">crossing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-52">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">arrange</span>(Model, Step) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-53">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(Step <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;=</span> Model) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-54">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Step) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-55">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summarise</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">f =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(vname, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">collapse =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" + "</span>), </span>
<span id="cb2-56">            <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Model) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-57">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-58">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">eq =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"y ~ "</span>, f) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(formula),</span>
<span id="cb2-59">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(eq, lm, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d),</span>
<span id="cb2-60">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model"</span>, Model)</span>
<span id="cb2-61">  )</span>
<span id="cb2-62"></span>
<span id="cb2-63"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-64">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_analysis <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-65">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-66">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">parameters =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(fit, model_parameters),</span>
<span id="cb2-67">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">std_parameters =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(fit, </span>
<span id="cb2-68">                         model_parameters, </span>
<span id="cb2-69">                         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">standardize  =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"basic"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-70">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(\(d) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(d, Std_Coefficient))</span>
<span id="cb2-71">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-72">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(Model, parameters, std_parameters) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-73">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(parameters, std_parameters)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-74">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>CI, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>t, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>df_error) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-75">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">pp =</span> p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-76">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">relocate</span>(SE, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.before =</span> Std_Coefficient) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-77">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_format_columns</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-78">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">95% CI for *B*_*LL*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> LL,</span>
<span id="cb2-79">         <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">95% CI for *B*_*UL*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> UL) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-80">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_grouped_data</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-81">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">left_join</span>(</span>
<span id="cb2-82">    d_analysis <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-83">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pull</span>(fit) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-84">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_performance_comparison</span>(</span>
<span id="cb2-85">        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">starred =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"deltaR2"</span>, </span>
<span id="cb2-86">        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">metrics =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"R2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"deltaR2"</span>)),</span>
<span id="cb2-87">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">join_by</span>(Model)</span>
<span id="cb2-88">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-89">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">replace_na</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Variable =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-90">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(Variable, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Variable, Model), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-91">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;beta;</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(Variable <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Constant"</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;beta;</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-92">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_star_column</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">*B*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;beta;</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> pp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-93">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>pp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-94">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Variable =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_replace</span>(Variable, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"^Model"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Step"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-95">           snakecase<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">to_sentence_case</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-96">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_replace</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" am "</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" Am "</span>))</span>
<span id="cb2-97"></span>
<span id="cb2-98"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-99">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-100">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>, </span>
<span id="cb2-101">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">layout =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fixed"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-102">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">padding</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~!</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">is.na</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">*B*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>), </span>
<span id="cb2-103">          <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb2-104">          <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">padding.left =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">15</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-105">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">surround</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">is.na</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">*B*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>), </span>
<span id="cb2-106">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">border.top =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fp_border_default</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">color =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"gray30"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-107">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.5</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb2-108">                           .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">/</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">10</span>)</span>
<span id="cb2-109"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-718" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-apa-note="[&quot;CI = confidence interval; *LL*&nbsp;=&nbsp;lower limit; *UL*&nbsp;=&nbsp;upper limit; familismo = the collective importance of family unity that emphasizes interdependence and solidarity; Mex Am margin&nbsp;=&nbsp;Mexican American marginalization.&quot;,&quot;^\*^*p* < .05. ^\*\*^*p* < .01. ^\*\*\*^*p* < .001.&quot;]" prefix="" data-tblnum="1">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-718-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-7ec307d4{}.cl-7ea5a874{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-7ea5a888{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-7ea5a892{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-7ebb4fc6{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-7ebb4fd0{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:0;line-height: 1;background-color:transparent;}.cl-7ebb4fd1{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-7ebb4fd2{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:0;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-7ebb4fda{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:15pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-7ebb9738{width:1.95in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9742{width:0.39in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb974c{width:0.26in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb974d{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9756{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9757{width:1.95in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9758{width:0.39in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9760{width:0.26in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9761{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9762{width:1.95in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb976a{width:0.39in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb976b{width:0.26in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb976c{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0.75pt solid rgba(77, 77, 77, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9774{width:1.95in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0.75pt solid rgba(77, 77, 77, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9775{width:0.39in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0.75pt solid rgba(77, 77, 77, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9776{width:0.26in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0.75pt solid rgba(77, 77, 77, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9777{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0.75pt solid rgba(77, 77, 77, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb977e{width:1.95in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb977f{width:0.39in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9780{width:0.26in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-7ebb9781{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-7ec307d4"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-7ebb9738"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">Variable</span></p></th><th rowspan="2" class="cl-7ebb9742"><p class="cl-7ebb4fd0"><span class="cl-7ea5a888">B</span></p></th><th rowspan="2" class="cl-7ebb974c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></th><th colspan="2" class="cl-7ebb974d"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">95%</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">CI</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">for</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a888">B</span></p></th><th rowspan="2" class="cl-7ebb9756"><p class="cl-7ebb4fc6"><span class="cl-7ea5a888">SE</span></p></th><th rowspan="2" class="cl-7ebb9742"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">β</span></p></th><th rowspan="2" class="cl-7ebb974c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></th><th rowspan="2" class="cl-7ebb9756"><p class="cl-7ebb4fc6"><span class="cl-7ea5a888">R</span><span class="cl-7ea5a892">2</span></p></th><th rowspan="2" class="cl-7ebb9756"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">Δ</span><span class="cl-7ea5a888">R</span><span class="cl-7ea5a892">2</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-7ebb9756"><p class="cl-7ebb4fc6"><span class="cl-7ea5a888">LL</span></p></th><th class="cl-7ebb9756"><p class="cl-7ebb4fc6"><span class="cl-7ea5a888">UL</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fd1"><span class="cl-7ea5a874">Step</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">1</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">.03</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Constant</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 4.00</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">***</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 3.85</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 4.16</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.08</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Perceived</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Social</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Class</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.15</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.01</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.30</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.08</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .16</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9762"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Generation</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Level</span></p></td><td class="cl-7ebb976a"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−0.04</span></p></td><td class="cl-7ebb976b"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.19</span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.11</span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.08</span></p></td><td class="cl-7ebb976a"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−.04</span></p></td><td class="cl-7ebb976b"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9774"><p class="cl-7ebb4fd1"><span class="cl-7ea5a874">Step</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">2</span></p></td><td class="cl-7ebb9775"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9776"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9775"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9776"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">.16</span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">.13</span><span class="cl-7ea5a892">***</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Constant</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 4.03</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">***</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 3.89</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 4.18</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Perceived</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Social</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Class</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.19</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.04</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.34</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.08</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .21</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Generation</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Level</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−0.04</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.18</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.10</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−.05</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Familismo</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.18</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.03</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.32</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .21</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Acculturation</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.06</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.09</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.22</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.08</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .07</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Enculturation</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.09</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.06</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.24</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.08</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .10</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9762"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Mex</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Am</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Margin</span></p></td><td class="cl-7ebb976a"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−0.23</span></p></td><td class="cl-7ebb976b"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">**</span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.38</span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.08</span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.08</span></p></td><td class="cl-7ebb976a"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−.26</span></p></td><td class="cl-7ebb976b"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">**</span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb976c"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9774"><p class="cl-7ebb4fd1"><span class="cl-7ea5a874">Step</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">3</span></p></td><td class="cl-7ebb9775"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9776"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9775"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9776"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">.23</span></p></td><td class="cl-7ebb9777"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">.06</span><span class="cl-7ea5a892">**</span><span class="cl-7ea5a874"> </span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Constant</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 4.03</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">***</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 3.89</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 4.17</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Perceived</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Social</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Class</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.18</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.03</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.32</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .20</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Generation</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Level</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−0.08</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.22</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.06</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−.09</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Familismo</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.18</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.04</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.32</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .21</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">*</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Acculturation</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.06</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.09</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.21</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .07</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Enculturation</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> 0.09</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.06</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"> 0.24</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874"> .10</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb9757"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Mex</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Am</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Margin</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−0.22</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">**</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.37</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.08</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb9758"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−.26</span></p></td><td class="cl-7ebb9760"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">**</span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9761"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-7ebb977e"><p class="cl-7ebb4fda"><span class="cl-7ea5a874">Masculinity</span><span class="cl-7ea5a874"> </span><span class="cl-7ea5a874">Ideology</span></p></td><td class="cl-7ebb977f"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−0.22</span></p></td><td class="cl-7ebb9780"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">**</span></p></td><td class="cl-7ebb9781"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.37</span></p></td><td class="cl-7ebb9781"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">−0.08</span></p></td><td class="cl-7ebb9781"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874">0.07</span></p></td><td class="cl-7ebb977f"><p class="cl-7ebb4fd0"><span class="cl-7ea5a874">−.26</span></p></td><td class="cl-7ebb9780"><p class="cl-7ebb4fd2"><span class="cl-7ea5a892">**</span></p></td><td class="cl-7ebb9781"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td><td class="cl-7ebb9781"><p class="cl-7ebb4fc6"><span class="cl-7ea5a874"></span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-718-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Hierarchical Regression: Results for Well-Being</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. CI = confidence interval; <em>LL</em>&nbsp;=&nbsp;lower limit; <em>UL</em>&nbsp;=&nbsp;upper limit; familismo = the collective importance of family unity that emphasizes interdependence and solidarity; Mex Am margin&nbsp;=&nbsp;Mexican American marginalization.
</div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<sup>*</sup><em>p</em> &lt; .05. <sup>**</sup><em>p</em> &lt; .01. <sup>***</sup><em>p</em> &lt; .001.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.18 in {R} with Apa7},
  date = {2025-09-28},
  url = {https://wjschne.github.io/posts/apatables/apa718.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 28). Recreating APA Manual Table 7.18
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa718.html">https://wjschne.github.io/posts/apatables/apa718.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa718.html</guid>
  <pubDate>Sun, 28 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.17 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa717.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-17-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 17 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Confidence intervals in two columns</li>
<li><a href="https://wjschne.github.io/apa7/reference/align_chr.html"><code>align_chr</code></a> with <code>drop0trailing = TRUE</code> for intentionally inconsistent rounding</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-717" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-717-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.17</p>
</div>
</figcaption>
<div aria-describedby="fig-717-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table717.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>Note that the <code>Estimate</code> column needed inconsistent rounding. Using <a href="https://wjschne.github.io/apa7/reference/align_chr.html"><code>align_chr</code></a> with <code>drop0trailing = TRUE</code> and <code>accuracy = .0001</code>, only cells with values in the fourth decimal point will be rounded to .0001.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="[&quot;Number of studies&nbsp;=&nbsp;120, number of effects&nbsp;=&nbsp;782, total *N*&nbsp;=&nbsp;52,578. CI&nbsp;=&nbsp;confidence interval; *LL*&nbsp;=&nbsp;lower limit; *UL*&nbsp;=&nbsp;upper limit.&quot;,&quot;^a&nbsp;^0&nbsp;=&nbsp;self-report, 1&nbsp;=&nbsp;test. ^b&nbsp;^ 0&nbsp;= test, 1&nbsp;=&nbsp;grade point average. ^c&nbsp;^Study year was grand centered. ^d&nbsp;^0&nbsp;=&nbsp;other, 1&nbsp;=&nbsp;yes. ^e&nbsp;^0&nbsp;= no, 1&nbsp;=&nbsp;yes.&quot;]" prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-717</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Moderator Analysis: Types of Measurement and Study Year"</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: </span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   - "Number of studies&amp;nbsp;=&amp;nbsp;120, number of</span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     effects&amp;nbsp;=&amp;nbsp;782, total </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     *N*&amp;nbsp;=&amp;nbsp;52,578. CI&amp;nbsp;=&amp;nbsp;confidence </span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     interval; *LL*&amp;nbsp;=&amp;nbsp;lower limit; </span></span>
<span id="cb2-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     *UL*&amp;nbsp;=&amp;nbsp;upper limit."</span></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   - "^a&amp;nbsp;^0&amp;nbsp;=&amp;nbsp;self-report, </span></span>
<span id="cb2-11"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     1&amp;nbsp;=&amp;nbsp;test. ^b&amp;nbsp;^ 0&amp;nbsp;= test, </span></span>
<span id="cb2-12"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     1&amp;nbsp;=&amp;nbsp;grade point average. ^c&amp;nbsp;^Study </span></span>
<span id="cb2-13"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     year was grand centered. ^d&amp;nbsp;^0&amp;nbsp;=&amp;nbsp;other, </span></span>
<span id="cb2-14"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     1&amp;nbsp;=&amp;nbsp;yes. ^e&amp;nbsp;^0&amp;nbsp;= no, </span></span>
<span id="cb2-15"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|     1&amp;nbsp;=&amp;nbsp;yes."</span></span>
<span id="cb2-16"></span>
<span id="cb2-17"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-18">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-19">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">effect_type =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-20">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed effects"</span>,</span>
<span id="cb2-21">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed effects"</span>,</span>
<span id="cb2-22">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed effects"</span>,</span>
<span id="cb2-23">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed effects"</span>,</span>
<span id="cb2-24">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed effects"</span>,</span>
<span id="cb2-25">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Fixed effects"</span>,</span>
<span id="cb2-26">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Random effects"</span>,</span>
<span id="cb2-27">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Random effects"</span></span>
<span id="cb2-28">  ),</span>
<span id="cb2-29">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Effect =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-30">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Intercept"</span>,</span>
<span id="cb2-31">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Creativity measurement^&amp;thinsp;a^"</span>,</span>
<span id="cb2-32">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Academic achievement measurement^&amp;thinsp;b^"</span>,</span>
<span id="cb2-33">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Study year^&amp;thinsp;c^"</span>,</span>
<span id="cb2-34">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Goal^&amp;thinsp;d^"</span>,</span>
<span id="cb2-35">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Published^&amp;thinsp;e^"</span>,</span>
<span id="cb2-36">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Within-study variance"</span>,</span>
<span id="cb2-37">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Between-study variance"</span></span>
<span id="cb2-38">  ),</span>
<span id="cb2-39">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Estimate =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.119</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.097</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.039</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2e-04</span>, </span>
<span id="cb2-40">               <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.003</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.054</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.009</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.018</span>),</span>
<span id="cb2-41">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">SE =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.028</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.018</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>, </span>
<span id="cb2-42">         <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.029</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.003</span>),</span>
<span id="cb2-43">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">95% CI_*LL*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.041</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.042</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.074</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>, </span>
<span id="cb2-44">                    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.06</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.005</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.008</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.012</span>),</span>
<span id="cb2-45">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">95% CI_*UL*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.198</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.153</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.004</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.002</span>, </span>
<span id="cb2-46">                    <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.054</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.114</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.011</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.023</span>),</span>
<span id="cb2-47">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.003</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.76</span>, </span>
<span id="cb2-48">        <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.91</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.07</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">9e-04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">9e-04</span>)</span>
<span id="cb2-49">) </span>
<span id="cb2-50"></span>
<span id="cb2-51"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-52">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-53">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Estimate =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(</span>
<span id="cb2-54">    Estimate, </span>
<span id="cb2-55">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0001</span>, </span>
<span id="cb2-56">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">drop0trailing =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, </span>
<span id="cb2-57">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">trim_leading_zeros =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-58">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Estimate<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">95% CI_*UL*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>), \(x) {</span>
<span id="cb2-59">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(x, </span>
<span id="cb2-60">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>, </span>
<span id="cb2-61">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">trim_leading_zeros =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-62">  })) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-63">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Effect =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(Effect, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">35</span>)) </span>
<span id="cb2-64"></span>
<span id="cb2-65"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-66">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-67">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_column =</span> effect_type) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-68">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-69">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">padding</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb2-70">          <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">padding.left =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, </span>
<span id="cb2-71">                           <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">15</span>, </span>
<span id="cb2-72">                           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">30</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>), </span>
<span id="cb2-73">                           <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, </span>
<span id="cb2-74">                           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">15</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-75">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.5</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(.<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">8</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>)))</span>
<span id="cb2-76"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-717" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" prefix="" data-apa-note="[&quot;Number of studies&nbsp;=&nbsp;120, number of effects&nbsp;=&nbsp;782, total *N*&nbsp;=&nbsp;52,578. CI&nbsp;=&nbsp;confidence interval; *LL*&nbsp;=&nbsp;lower limit; *UL*&nbsp;=&nbsp;upper limit.&quot;,&quot;^a&nbsp;^0&nbsp;=&nbsp;self-report, 1&nbsp;=&nbsp;test. ^b&nbsp;^ 0&nbsp;= test, 1&nbsp;=&nbsp;grade point average. ^c&nbsp;^Study year was grand centered. ^d&nbsp;^0&nbsp;=&nbsp;other, 1&nbsp;=&nbsp;yes. ^e&nbsp;^0&nbsp;= no, 1&nbsp;=&nbsp;yes.&quot;]">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-717-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-ea0dd6a0{}.cl-e9e8e7fa{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-e9e8e82c{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-e9e8e836{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-ea053a2c{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-ea053a40{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:0;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-ea053a41{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-ea053a42{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:15pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-ea053a4a{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:30pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-ea058ad6{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058ae0{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058ae1{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058ae2{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058aea{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058aeb{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058aec{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058aed{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058af4{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058af5{width:2.5in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-ea058af6{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-ea0dd6a0"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-ea058ad6"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">Effect</span></p></th><th rowspan="2" class="cl-ea058ae0"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">Estimate</span></p></th><th rowspan="2" class="cl-ea058ae0"><p class="cl-ea053a2c"><span class="cl-e9e8e82c">SE</span></p></th><th colspan="2" class="cl-ea058ae0"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">95%</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">CI</span></p></th><th rowspan="2" class="cl-ea058ae0"><p class="cl-ea053a2c"><span class="cl-e9e8e82c">p</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-ea058ae0"><p class="cl-ea053a2c"><span class="cl-e9e8e82c">LL</span></p></th><th class="cl-ea058ae0"><p class="cl-ea053a2c"><span class="cl-e9e8e82c">UL</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td colspan="6" class="cl-ea058ae1"><p class="cl-ea053a40"><span class="cl-e9e8e7fa">Fixed</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">effects</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058ae1"><p class="cl-ea053a42"><span class="cl-e9e8e7fa">Intercept</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .119 </span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.040</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .041</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .198</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .003</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058ae1"><p class="cl-ea053a4a"><span class="cl-e9e8e7fa">Creativity</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">measurement</span><span class="cl-e9e8e836"> a</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .097 </span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.028</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .042</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .153</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .001</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058ae1"><p class="cl-ea053a4a"><span class="cl-e9e8e7fa">Academic</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">achievement</span><br><span class="cl-e9e8e7fa">&nbsp;&nbsp;&nbsp;&nbsp;measurement</span><span class="cl-e9e8e836"> b</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">−.039 </span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.018</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">−.074</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">−.004</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .03 </span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058ae1"><p class="cl-ea053a4a"><span class="cl-e9e8e7fa">Study</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">year</span><span class="cl-e9e8e836"> c</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .0002</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.001</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">−.001</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .002</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .76 </span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058ae1"><p class="cl-ea053a4a"><span class="cl-e9e8e7fa">Goal</span><span class="cl-e9e8e836"> d</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">−.003 </span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.029</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">−.060</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .054</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .91 </span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058aeb"><p class="cl-ea053a4a"><span class="cl-e9e8e7fa">Published</span><span class="cl-e9e8e836"> e</span></p></td><td class="cl-ea058aec"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .054 </span></p></td><td class="cl-ea058aec"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.030</span></p></td><td class="cl-ea058aec"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">−.005</span></p></td><td class="cl-ea058aec"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .114</span></p></td><td class="cl-ea058aec"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .07 </span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="6" class="cl-ea058aed"><p class="cl-ea053a40"><span class="cl-e9e8e7fa">Random</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">effects</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058ae1"><p class="cl-ea053a42"><span class="cl-e9e8e7fa">Within-study</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">variance</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .009 </span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.001</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .008</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .011</span></p></td><td class="cl-ea058aea"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">&lt;.001</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-ea058af5"><p class="cl-ea053a42"><span class="cl-e9e8e7fa">Between-study</span><span class="cl-e9e8e7fa"> </span><span class="cl-e9e8e7fa">variance</span></p></td><td class="cl-ea058af6"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .018 </span></p></td><td class="cl-ea058af6"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">.003</span></p></td><td class="cl-ea058af6"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .012</span></p></td><td class="cl-ea058af6"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa"> .023</span></p></td><td class="cl-ea058af6"><p class="cl-ea053a2c"><span class="cl-e9e8e7fa">&lt;.001</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-717-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Moderator Analysis: Types of Measurement and Study Year</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. Number of studies&nbsp;=&nbsp;120, number of effects&nbsp;=&nbsp;782, total <em>N</em>&nbsp;=&nbsp;52,578. CI&nbsp;=&nbsp;confidence interval; <em>LL</em>&nbsp;=&nbsp;lower limit; <em>UL</em>&nbsp;=&nbsp;upper limit.
</div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<sup>a&nbsp;</sup>0&nbsp;=&nbsp;self-report, 1&nbsp;=&nbsp;test. <sup>b&nbsp;</sup> 0&nbsp;= test, 1&nbsp;=&nbsp;grade point average. <sup>c&nbsp;</sup>Study year was grand centered. <sup>d&nbsp;</sup>0&nbsp;=&nbsp;other, 1&nbsp;=&nbsp;yes. <sup>e&nbsp;</sup>0&nbsp;= no, 1&nbsp;=&nbsp;yes.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.17 in {R} with Apa7},
  date = {2025-09-27},
  url = {https://wjschne.github.io/posts/apatables/apa717.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 27). Recreating APA Manual Table 7.17
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa717.html">https://wjschne.github.io/posts/apatables/apa717.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa717.html</guid>
  <pubDate>Sat, 27 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.16 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa716.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-16-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 16 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Two levels of grouping with <code>flextable::as_grouped_data</code></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-716" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-716-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.16</p>
</div>
</figcaption>
<div aria-describedby="fig-716-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table716.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>Here I simulate and analyze path models of the actor-partner interdependence model. Getting the row titles to be centered under the <code>t</code> column took some trial-and-error.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="CI&nbsp;=&nbsp;confidence interval; H → H&nbsp;=&nbsp;husband-as-actor effect on the husband’s own marital satisfaction; W → W&nbsp;=&nbsp;wife-as-actor effect on the wife's own marital satisfaction; W → H&nbsp;=&nbsp;wife-as-partner effect on the husband’s satisfaction; H → W&nbsp;=&nbsp;husband-as-partner effect on the wife's satisfaction." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-716</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Regressions of Associations Between Marital </span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Satisfaction and Average Levels of Marital Behavior"</span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: "CI&amp;nbsp;=&amp;nbsp;confidence interval; H → H&amp;nbsp;=&amp;nbsp;husband-as-actor </span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           effect on the husband’s own marital satisfaction; </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           W → W&amp;nbsp;=&amp;nbsp;wife-as-actor effect on the wife's own marital </span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           satisfaction; W → H&amp;nbsp;=&amp;nbsp;wife-as-partner effect on the </span></span>
<span id="cb2-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           husband’s satisfaction; H → W&amp;nbsp;=&amp;nbsp;husband-as-partner </span></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           effect on the wife's satisfaction."</span></span>
<span id="cb2-11"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">123</span>)</span>
<span id="cb2-12"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make Coefficients</span></span>
<span id="cb2-13">d_coefficients <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> tibble<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tribble</span>(</span>
<span id="cb2-14">        <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Dependent,    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Group, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Predictor,     <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>b,</span>
<span id="cb2-15">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Angry Behavior"</span>,   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Actor"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"H_H"</span>,  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">98.9</span>,</span>
<span id="cb2-16">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Angry Behavior"</span>,   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Actor"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"W_W"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">87.11</span>,</span>
<span id="cb2-17">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Angry Behavior"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Partner"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"W_H"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">76.18</span>,</span>
<span id="cb2-18">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Angry Behavior"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Partner"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"H_W"</span>,  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">91.8</span>,</span>
<span id="cb2-19">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Disregard"</span>,   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Actor"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"H_H"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">38.62</span>,</span>
<span id="cb2-20">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Disregard"</span>,   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Actor"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"W_W"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">47.54</span>,</span>
<span id="cb2-21">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Disregard"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Partner"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"W_H"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">82.81</span>,</span>
<span id="cb2-22">       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Disregard"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Partner"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"H_W"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">79.36</span>,</span>
<span id="cb2-23">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Distancing"</span>,   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Actor"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"H_H"</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">47.42</span>,</span>
<span id="cb2-24">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Distancing"</span>,   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Actor"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"W_W"</span>,   <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">3.04</span>,</span>
<span id="cb2-25">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Distancing"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Partner"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"W_H"</span>,  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.05</span>,</span>
<span id="cb2-26">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Distancing"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Partner"</span>,       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"H_W"</span>,  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">53.5</span></span>
<span id="cb2-27">  ) </span>
<span id="cb2-28"></span>
<span id="cb2-29"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make Model</span></span>
<span id="cb2-30">model <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_coefficients <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-31">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">b =</span> b <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">/</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">100</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-32">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(Predictor, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Group, Predictor)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-33">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Dependent, Predictor), snakecase<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span>to_snake_case)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-34">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(b, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(b, Predictor), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" * "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-35">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summarise</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">b =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(b, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">collapse =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" + "</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Dependent) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-36">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(Model, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Dependent, b), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" ~ "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-37">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pull</span>(Model) </span>
<span id="cb2-38"></span>
<span id="cb2-39"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-40">d_simulated <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> lavaan<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">simulateData</span>(model, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sample.nobs =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-41">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-42">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">id =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">row_number</span>(), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.before =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-43">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(angry_behavior<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>distancing, </span>
<span id="cb2-44">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"y"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Dependent"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-45">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">y =</span> y  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">100</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-46">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Dependent)</span>
<span id="cb2-47"></span>
<span id="cb2-48"></span>
<span id="cb2-49"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Analyze data</span></span>
<span id="cb2-50">d_analysis <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_simulated <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-51">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-52">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, \(d) {</span>
<span id="cb2-53">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lm</span>(y <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> ., <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>id))</span>
<span id="cb2-54">      }),</span>
<span id="cb2-55">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">tbl =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(fit, parameters<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span>parameters))</span>
<span id="cb2-56">  </span>
<span id="cb2-57"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-58">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_analysis <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-59">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(Dependent, tbl) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-60">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(tbl) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-61">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_format_columns</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-62">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(Variable <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">!=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Constant"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-63">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">separate</span>(Variable, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Type"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"i"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"d"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-64">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(i,d), toupper)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-65">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(Variable, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(i, d), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" \u2192 "</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-66">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">relocate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">95% CI</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.after =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">last_col</span>()) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-67">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_grouped_data</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">groups =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Dependent"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Type"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-68">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Type, Variable), \(x) tidyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">replace_na</span>(x, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-69">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Variable =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(Type, Variable, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">recycle0 =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb2-70">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Dependent =</span> snakecase<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">to_sentence_case</span>(Dependent)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-71">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fill</span>(Dependent) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-72">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(Variable <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">!=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-73">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Type)</span>
<span id="cb2-74"></span>
<span id="cb2-75"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make Table</span></span>
<span id="cb2-76">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-77">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_column =</span> Dependent, </span>
<span id="cb2-78">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_align =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"center"</span>,</span>
<span id="cb2-79">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>, </span>
<span id="cb2-80">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">no_format_columns =</span> Variable) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-81">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">padding</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb2-82">          <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">*B*</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">!=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>, </span>
<span id="cb2-83">          <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">padding.left =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-84">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.1</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(.<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">85</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>), <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)) </span>
<span id="cb2-85"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-716" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" data-apa-note="CI&nbsp;=&nbsp;confidence interval; H → H&nbsp;=&nbsp;husband-as-actor effect on the husband’s own marital satisfaction; W → W&nbsp;=&nbsp;wife-as-actor effect on the wife's own marital satisfaction; W → H&nbsp;=&nbsp;wife-as-partner effect on the husband’s satisfaction; H → W&nbsp;=&nbsp;husband-as-partner effect on the wife's satisfaction." prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-716-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-5e335916{}.cl-5e166d56{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-5e166d74{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-5e2b5f22{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-5e2b5f2c{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-5e2b5f2d{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:20pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-5e2ba40a{width:1.1in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba414{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba415{width:2in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba41e{width:1.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba41f{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba420{width:2in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba428{width:1.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba429{width:1.1in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba42a{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba432{width:2in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba433{width:1.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba43c{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba43d{width:2in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba43e{width:1.1in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba43f{width:0.85in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-5e2ba446{width:2in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-5e335916"><thead><tr style="overflow-wrap:break-word;"><th class="cl-5e2ba40a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">Variable</span></p></th><th class="cl-5e2ba414"><p class="cl-5e2b5f22"><span class="cl-5e166d74">B</span></p></th><th class="cl-5e2ba414"><p class="cl-5e2b5f22"><span class="cl-5e166d74">SE</span></p></th><th class="cl-5e2ba414"><p class="cl-5e2b5f22"><span class="cl-5e166d74">t</span></p></th><th class="cl-5e2ba414"><p class="cl-5e2b5f22"><span class="cl-5e166d74">p</span></p></th><th class="cl-5e2ba415"><p class="cl-5e2b5f22"><span class="cl-5e166d56">95%</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">CI</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td colspan="6" class="cl-5e2ba41e"><p class="cl-5e2b5f22"><span class="cl-5e166d56">Angry</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">behavior</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2c"><span class="cl-5e166d56">Actor</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">H</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">H</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−88.77</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">14.91</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−5.96</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[−118.79,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−58.75]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">W</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">W</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−83.72</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">13.84</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−6.05</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[−111.60,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−55.84]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2c"><span class="cl-5e166d56">Partner</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">W</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">H</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−70.92</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">17.41</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−4.07</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[−105.98,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−35.86]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba429"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">H</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">W</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−74.38</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">16.11</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−4.62</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba432"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[−106.83,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−41.93]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="6" class="cl-5e2ba433"><p class="cl-5e2b5f22"><span class="cl-5e166d56">Disregard</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2c"><span class="cl-5e166d56">Actor</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">H</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">H</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−33.51</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">14.08</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−2.38</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"> .02 </span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[ −61.87,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56"> −5.15]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">W</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">W</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−65.67</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">13.07</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−5.02</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[ −92.00,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−39.34]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2c"><span class="cl-5e166d56">Partner</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">W</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">H</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−78.89</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">16.44</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−4.80</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[−112.01,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−45.77]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba429"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">H</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">W</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−83.30</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">15.22</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−5.47</span></p></td><td class="cl-5e2ba42a"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba432"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[−113.95,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−52.65]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="6" class="cl-5e2ba433"><p class="cl-5e2b5f22"><span class="cl-5e166d56">Distancing</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2c"><span class="cl-5e166d56">Actor</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">H</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">H</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−31.47</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">14.10</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−2.23</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"> .03 </span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[ −59.86,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56"> −3.08]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">W</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">W</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">  9.47</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">13.09</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"> 0.72</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"> .47 </span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[ −16.90,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56"> 35.83]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2c"><span class="cl-5e166d56">Partner</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba428"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">W</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">H</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−14.79</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">16.47</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−0.90</span></p></td><td class="cl-5e2ba41f"><p class="cl-5e2b5f22"><span class="cl-5e166d56"> .37 </span></p></td><td class="cl-5e2ba420"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[ −47.95,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56"> 18.37]</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-5e2ba43e"><p class="cl-5e2b5f2d"><span class="cl-5e166d56">H</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">→</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">W</span></p></td><td class="cl-5e2ba43f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−73.34</span></p></td><td class="cl-5e2ba43f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">15.24</span></p></td><td class="cl-5e2ba43f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">−4.81</span></p></td><td class="cl-5e2ba43f"><p class="cl-5e2b5f22"><span class="cl-5e166d56">&lt;.001</span></p></td><td class="cl-5e2ba446"><p class="cl-5e2b5f22"><span class="cl-5e166d56">[−104.03,</span><span class="cl-5e166d56"> </span><span class="cl-5e166d56">−42.65]</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-716-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Regressions of Associations Between Marital Satisfaction and Average Levels of Marital Behavior</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. CI&nbsp;=&nbsp;confidence interval; H → H&nbsp;=&nbsp;husband-as-actor effect on the husband’s own marital satisfaction; W → W&nbsp;=&nbsp;wife-as-actor effect on the wife’s own marital satisfaction; W → H&nbsp;=&nbsp;wife-as-partner effect on the husband’s satisfaction; H → W&nbsp;=&nbsp;husband-as-partner effect on the wife’s satisfaction.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.16 in {R} with Apa7},
  date = {2025-09-26},
  url = {https://wjschne.github.io/posts/apatables/apa716.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 26). Recreating APA Manual Table 7.16
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa716.html">https://wjschne.github.io/posts/apatables/apa716.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa716.html</guid>
  <pubDate>Fri, 26 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.15 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa715.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-15-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 15 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Automatic formatting of <code>lm</code> (linear model) analyses with <a href="https://wjschne.github.io/apa7/reference/apa_performance.html"><code>apa_performance</code></a> and <a href="https://wjschne.github.io/apa7/reference/apa_performance_comparison.html"><code>apa_compare_performance</code></a>.</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(easystats)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-7">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-715" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-715-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.15</p>
</div>
</figcaption>
<div aria-describedby="fig-715-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table715.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>I love the <a href="https://easystats.github.io/easystats/">easystats</a> ecosystem. It provides a coherent framework for data-analysts to process and display statistical analyses. It makes so many previously tedious things simple. However, it was not specifically designed for the final display of APA tables. The apa7 package has a few functions and features that help process the output of easystats functions to make them table-ready.</p>
<p>First, lets simulate some data that resembles the data underlying the models in Figure&nbsp;1, and create regression models for Models 1 and 2.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># sample size</span></span>
<span id="cb2-3">n <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">88</span></span>
<span id="cb2-4"></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># simulated data</span></span>
<span id="cb2-6">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-7">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">leader_gender =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, n, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">replace =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb2-8">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">leader_sleep_condition =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">88</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">replace =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb2-9">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">charisma =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.76</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">09</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> leader_gender <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> </span>
<span id="cb2-10">    .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">36</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> leader_sleep_condition <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> </span>
<span id="cb2-11">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rnorm</span>(n, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sd =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.5</span>))</span>
<span id="cb2-12"></span>
<span id="cb2-13"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Models 1 and 2</span></span>
<span id="cb2-14">m1 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lm</span>(charisma <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> leader_gender, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)</span>
<span id="cb2-15">m2 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lm</span>(charisma <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> leader_gender <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> leader_sleep_condition, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)</span></code></pre></div></div>
</div>
<p>The <a href="https://easystats.github.io/parameters/reference/model_parameters.html"><code>parameters::parameters</code></a> function from the easystats ecosystem displays information about regression predictors.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">parameters</span>(m2) </span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>Parameter              | Coefficient |   SE |         95% CI | t(85) |      p
-----------------------------------------------------------------------------
(Intercept)            |        2.79 | 0.08 | [ 2.62,  2.95] | 33.17 | &lt; .001
leader gender          |       -0.20 | 0.10 | [-0.40,  0.00] | -1.96 | 0.054 
leader sleep condition |       -0.34 | 0.10 | [-0.55, -0.14] | -3.37 | 0.001 </code></pre>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>
Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed
  using a Wald t-distribution approximation.</code></pre>
</div>
</div>
<p>That is a really nice display. However, if we convert it directly with <a href="https://davidgohel.github.io/flextable/reference/flextable.html"><code>flextable</code></a>, we get something far less polished.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb6-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">parameters</span>(m2) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb6-2">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">flextable</span>()</span></code></pre></div></div>
<div class="cell-output-display">
<div class="tabwid"><style>.cl-d4230c9e{}.cl-d404e8e0{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d41b21f0{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 2;background-color:transparent;}.cl-d41b6624{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(0, 0, 0, 1.00);border-top: 0.75pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d41b6638{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d41b6639{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-d4230c9e"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">Parameter</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">Coefficient</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">SE</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">CI</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">CI_low</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">CI_high</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">t</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">df_error</span></p></th><th class="cl-d41b6624"><p class="cl-d41b21f0"><span class="cl-d404e8e0">p</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">(Intercept)</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">2.79</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.08</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.95</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">2.62</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">2.95</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">33.17</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">85</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.00</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">leader_gender</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">-0.20</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.10</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.95</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">-0.40</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.00</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">-1.96</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">85</span></p></td><td class="cl-d41b6638"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.05</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">leader_sleep_condition</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">-0.34</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.10</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.95</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">-0.55</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">-0.14</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">-3.37</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">85</span></p></td><td class="cl-d41b6639"><p class="cl-d41b21f0"><span class="cl-d404e8e0">0.00</span></p></td></tr></tbody></table></div>
</div>
</div>
<p>As it turns out, the output of the <a href="https://easystats.github.io/parameters/reference/model_parameters.html"><code>parameters</code></a> function undergoes a fair bit of processing before it prints. The output is a <code>data.frame</code> with a <code>parameters_model</code> class and many attributes that can be used by the easystats formatting functions. If we want to see the underlying data, we can convert the output to a <code>data.frame</code> or <code>tibble</code>.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb7-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">parameters</span>(m2) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb7-2">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>()</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 3 × 9
  Parameter     Coefficient     SE    CI CI_low  CI_high     t df_error        p
  &lt;chr&gt;               &lt;dbl&gt;  &lt;dbl&gt; &lt;dbl&gt;  &lt;dbl&gt;    &lt;dbl&gt; &lt;dbl&gt;    &lt;int&gt;    &lt;dbl&gt;
1 (Intercept)         2.79  0.0840  0.95  2.62   2.95    33.2        85 2.05e-50
2 leader_gender      -0.200 0.102   0.95 -0.402  0.00312 -1.96       85 5.36e- 2
3 leader_sleep…      -0.344 0.102   0.95 -0.547 -0.141   -3.37       85 1.13e- 3</code></pre>
</div>
</div>
<p>If we really want just the output of <a href="https://easystats.github.io/parameters/reference/model_parameters.html"><code>parameters</code></a> as it displays, we use the <a href="https://easystats.github.io/insight/reference/format_table.html"><code>insight::format_table</code></a> function.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb9" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb9-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">parameters</span>(m2, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ci =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">95</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb9-2">  insight<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">format_table</span>() </span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>               Parameter Coefficient   SE         95% CI t(85)      p
1            (Intercept)        2.79 0.08 [ 2.62,  2.95] 33.17 &lt; .001
2          leader gender       -0.20 0.10 [-0.40,  0.00] -1.96 0.054 
3 leader sleep condition       -0.34 0.10 [-0.55, -0.14] -3.37 0.001 </code></pre>
</div>
</div>
<p>This gets us closer to APA style, but not quite all way there. We would like things to be nearly automatic and yet be able to fine-tune the output. Behold!</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb11" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb11-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_parameters</span>(m2) </span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 3 × 6
  Variable               `*B*` `*SE*` `&amp;beta;` `*t*(85)` `*p*`
  &lt;chr&gt;                  &lt;chr&gt; &lt;chr&gt;  &lt;chr&gt;    &lt;chr&gt;     &lt;chr&gt;
1 Constant                2.79 0.08    .00     33.17     &lt;.001
2 Leader Gender          −0.20 0.10   −.20     −1.96      .05 
3 Leader Sleep Condition −0.34 0.10   −.34     −3.37      .001</code></pre>
</div>
</div>
<p>The <a href="https://wjschne.github.io/apa7/reference/apa_parameters.html"><code>apa_parameters</code></a> function is a wrapper around the <a href="https://easystats.github.io/parameters/reference/model_parameters.html"><code>parameters</code></a> function with defaults that produce APA style output via markdown syntax. The columns are decimal aligned, statistics are italicized, the intercept is called a “Constant”, and the variable names are printed in title case.</p>
<p>Applying <a href="https://wjschne.github.io/apa7/reference/apa_flextable.html"><code>apa_flextable</code></a> to the output gives us perfect APA style:</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb13" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb13-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_parameters</span>(m2) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb13-2">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>() </span></code></pre></div></div>
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-d6038dfe{}.cl-d5f88a6c{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d5f88a76{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d5fcbdee{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-d5fcbdf8{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-d5fcfa20{width:2.752in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa2a{width:0.807in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa34{width:0.654in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa35{width:0.672in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa3e{width:2.752in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa3f{width:0.807in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa40{width:0.654in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa48{width:0.672in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa49{width:2.752in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa4a{width:0.807in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa52{width:0.654in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d5fcfa53{width:0.672in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-d6038dfe"><thead><tr style="overflow-wrap:break-word;"><th class="cl-d5fcfa20"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">Variable</span></p></th><th class="cl-d5fcfa2a"><p class="cl-d5fcbdee"><span class="cl-d5f88a76">B</span></p></th><th class="cl-d5fcfa34"><p class="cl-d5fcbdee"><span class="cl-d5f88a76">SE</span></p></th><th class="cl-d5fcfa35"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">β</span></p></th><th class="cl-d5fcfa2a"><p class="cl-d5fcbdee"><span class="cl-d5f88a76">t</span><span class="cl-d5f88a6c">(85)</span></p></th><th class="cl-d5fcfa2a"><p class="cl-d5fcbdee"><span class="cl-d5f88a76">p</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d5fcfa3e"><p class="cl-d5fcbdf8"><span class="cl-d5f88a6c">Constant</span></p></td><td class="cl-d5fcfa3f"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c"> 2.79</span></p></td><td class="cl-d5fcfa40"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">0.08</span></p></td><td class="cl-d5fcfa48"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c"> .00</span></p></td><td class="cl-d5fcfa3f"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">33.17</span></p></td><td class="cl-d5fcfa3f"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">&lt;.001</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5fcfa3e"><p class="cl-d5fcbdf8"><span class="cl-d5f88a6c">Leader</span><span class="cl-d5f88a6c"> </span><span class="cl-d5f88a6c">Gender</span></p></td><td class="cl-d5fcfa3f"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">−0.20</span></p></td><td class="cl-d5fcfa40"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">0.10</span></p></td><td class="cl-d5fcfa48"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">−.20</span></p></td><td class="cl-d5fcfa3f"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">−1.96</span></p></td><td class="cl-d5fcfa3f"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c"> .05 </span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d5fcfa49"><p class="cl-d5fcbdf8"><span class="cl-d5f88a6c">Leader</span><span class="cl-d5f88a6c"> </span><span class="cl-d5f88a6c">Sleep</span><span class="cl-d5f88a6c"> </span><span class="cl-d5f88a6c">Condition</span></p></td><td class="cl-d5fcfa4a"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">−0.34</span></p></td><td class="cl-d5fcfa52"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">0.10</span></p></td><td class="cl-d5fcfa53"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">−.34</span></p></td><td class="cl-d5fcfa4a"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c">−3.37</span></p></td><td class="cl-d5fcfa4a"><p class="cl-d5fcbdee"><span class="cl-d5f88a6c"> .001</span></p></td></tr></tbody></table></div>
</div>
</div>
<p>The <code>apa_format_columns</code> function and a few others like <code>apa_parameters</code>, <code>apa_performance</code>, and <code>apa_compare_performance</code> can process the output of the <code>lm</code> function.</p>
<p>Getting the output of <code>apa_parameters</code> and <code>apa_compare_performance</code> into the same table requires a rather complex process. Eventually I’d like to automate some of these steps.</p>
<div class="cell FigureWithoutNote page-columns page-full" prefix="" data-tblnum="1" data-custom-style="FigureWithoutNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb14" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb14-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># pf &lt;- column_formats()</span></span>
<span id="cb14-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># pf$SE@header &lt;- "*SE*"</span></span>
<span id="cb14-3"></span>
<span id="cb14-4">m <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model 1</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> m1, </span>
<span id="cb14-5">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model 2</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> m2) </span>
<span id="cb14-6"></span>
<span id="cb14-7">d_parameters <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_parameters</span>(</span>
<span id="cb14-8">  m, </span>
<span id="cb14-9">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">predictor_parameters =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb14-10">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Coefficient"</span>, </span>
<span id="cb14-11">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Std_Coefficient"</span>, </span>
<span id="cb14-12">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SE"</span>))</span>
<span id="cb14-13"></span>
<span id="cb14-14">d_performance <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_performance_comparison</span>(</span>
<span id="cb14-15">  m,</span>
<span id="cb14-16">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">metrics =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"R2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"deltaR2"</span>),</span>
<span id="cb14-17">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">starred =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"deltaR2"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-18">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Model, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Variable"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Model =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(Model, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"_&amp;beta;"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-20">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> Model)</span>
<span id="cb14-21"></span>
<span id="cb14-22">d_parameters <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-23">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider_name_first</span>(</span>
<span id="cb14-24">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">id_cols =</span> Variable, </span>
<span id="cb14-25">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> Model, </span>
<span id="cb14-26">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-27">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Variable =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_to_sentence</span>(Variable)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb14-28">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_row</span>(d_performance) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb14-29">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Variable, \(x) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(</span>
<span id="cb14-30">    x,</span>
<span id="cb14-31">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">center =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">."</span>, </span>
<span id="cb14-32">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">side =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"left"</span>,</span>
<span id="cb14-33">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">NA_value =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-34">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">star_balance</span>())) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-35">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">no_format_columns =</span> Variable) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-36">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">align =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"left"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-37">  flextable<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_footer_lines</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph_md</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"*Note*. *N*&amp;nbsp;=&amp;nbsp;88. We examined the impact of leader sleep condition (control vs. sleep deprived) on ratings of charismatic leadership. In Models 1 and 2, we entered the control variable of leader gender to predict leader charisma."</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-38">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">footnote</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>, </span>
<span id="cb14-39">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb14-40">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Male = 1, female = 2. "</span>), </span>
<span id="cb14-41">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ref_symbols =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"a "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb14-42">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">footnote</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, </span>
<span id="cb14-43">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb14-44">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph</span>(</span>
<span id="cb14-45">               <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Control condition = 0, sleep-deprived condition = 1"</span>), </span>
<span id="cb14-46">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ref_symbols =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b "</span>, </span>
<span id="cb14-47">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">inline =</span> T, </span>
<span id="cb14-48">             <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"."</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-49">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_footer_lines</span>(</span>
<span id="cb14-50">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph_md</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">* *p* &lt; .05. </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">*</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">* *p* &lt; .01."</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb14-51">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">align =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"left"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">part =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"footer"</span>)</span></code></pre></div></div>
<div id="tbl-715" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-715-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-d8ab3af2{}.cl-d89f8856{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d89f886a{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d89f886b{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d89f8874{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-d89f8875{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d89f8876{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-d89f887e{font-family:'Times New Roman';font-size:6.6pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.3pt;}.cl-d8a442b0{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-d8a442ba{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-d8a442c4{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-d8a49706{width:2.382in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4971a{width:0.726in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4971b{width:0.605in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49724{width:0.589in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49725{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49726{width:0.833in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4972e{width:2.382in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4972f{width:0.726in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49730{width:0.605in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49738{width:0.589in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49739{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4973a{width:0.833in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4973b{width:2.382in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49742{width:0.726in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49743{width:0.605in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49744{width:0.589in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4974c{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4974d{width:0.833in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4974e{width:2.382in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a4974f{width:0.726in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49756{width:0.605in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49757{width:0.589in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49758{width:0.05in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-d8a49760{width:0.833in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-d8ab3af2"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-d8a49706"><p class="cl-d8a442b0"><span class="cl-d89f8856">Variable</span></p></th><th colspan="3" class="cl-d8a4971a"><p class="cl-d8a442b0"><span class="cl-d89f8856">Model</span><span class="cl-d89f8856"> </span><span class="cl-d89f8856">1</span></p></th><th rowspan="2" class="cl-d8a49725"><p class="cl-d8a442b0"><span class="cl-d89f886a"></span></p></th><th colspan="3" class="cl-d8a4971a"><p class="cl-d8a442b0"><span class="cl-d89f8856">Model</span><span class="cl-d89f8856"> </span><span class="cl-d89f8856">2</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-d8a4971a"><p class="cl-d8a442b0"><span class="cl-d89f886b">B</span></p></th><th class="cl-d8a4971b"><p class="cl-d8a442b0"><span class="cl-d89f8856">β</span></p></th><th class="cl-d8a49724"><p class="cl-d8a442b0"><span class="cl-d89f886b">SE</span></p></th><th class="cl-d8a4971a"><p class="cl-d8a442b0"><span class="cl-d89f886b">B</span></p></th><th class="cl-d8a49726"><p class="cl-d8a442b0"><span class="cl-d89f8856">β</span></p></th><th class="cl-d8a49724"><p class="cl-d8a442b0"><span class="cl-d89f886b">SE</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-d8a4972e"><p class="cl-d8a442ba"><span class="cl-d89f8856">Constant</span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856"> 2.65</span></p></td><td class="cl-d8a49730"><p class="cl-d8a442b0"><span class="cl-d89f8856"> .00</span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856">0.08</span></p></td><td class="cl-d8a49739"><p class="cl-d8a442b0"><span class="cl-d89f886a"></span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856"> 2.79</span></p></td><td class="cl-d8a4973a"><p class="cl-d8a442b0"><span class="cl-d89f8856"> .00</span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856">0.08</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d8a4972e"><p class="cl-d8a442ba"><span class="cl-d89f8856">Leader</span><span class="cl-d89f8856"> </span><span class="cl-d89f8856">gender</span><span class="cl-d89f8874">a </span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856">−0.24</span></p></td><td class="cl-d8a49730"><p class="cl-d8a442b0"><span class="cl-d89f8856">−.23</span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856">0.11</span></p></td><td class="cl-d8a49739"><p class="cl-d8a442b0"><span class="cl-d89f886a"></span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856">−0.20</span></p></td><td class="cl-d8a4973a"><p class="cl-d8a442b0"><span class="cl-d89f8856">−.20</span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856">0.10</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d8a4972e"><p class="cl-d8a442ba"><span class="cl-d89f8856">Leader</span><span class="cl-d89f8856"> </span><span class="cl-d89f8856">sleep</span><span class="cl-d89f8856"> </span><span class="cl-d89f8856">condition</span><span class="cl-d89f8874">b </span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a49730"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a49739"><p class="cl-d8a442b0"><span class="cl-d89f886a"></span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856">−0.34</span></p></td><td class="cl-d8a4973a"><p class="cl-d8a442b0"><span class="cl-d89f8856">−.34</span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856">0.10</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d8a4972e"><p class="cl-d8a442ba"><span class="cl-d89f886b">R</span><span class="cl-d89f8874">2</span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a49730"><p class="cl-d8a442b0"><span class="cl-d89f8856"> .06</span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a49739"><p class="cl-d8a442b0"><span class="cl-d89f886a"></span></p></td><td class="cl-d8a4972f"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a4973a"><p class="cl-d8a442b0"><span class="cl-d89f8856"> .17</span></p></td><td class="cl-d8a49738"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-d8a4973b"><p class="cl-d8a442ba"><span class="cl-d89f8856">Δ</span><span class="cl-d89f886b">R</span><span class="cl-d89f8874">2</span></p></td><td class="cl-d8a49742"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a49743"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a49744"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a4974c"><p class="cl-d8a442b0"><span class="cl-d89f886a"></span></p></td><td class="cl-d8a49742"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td><td class="cl-d8a4974d"><p class="cl-d8a442b0"><span class="cl-d89f8874">  </span><span class="cl-d89f8856"> .11</span><span class="cl-d89f8874">**</span></p></td><td class="cl-d8a49744"><p class="cl-d8a442b0"><span class="cl-d89f8856"></span></p></td></tr></tbody><tfoot><tr style="overflow-wrap:break-word;"><td colspan="8" class="cl-d8a4974e"><p class="cl-d8a442c4"><span class="cl-d89f8875">Note</span><span class="cl-d89f8876">.</span><span class="cl-d89f8876"> </span><span class="cl-d89f8875">N</span><span class="cl-d89f8876">&nbsp;=&nbsp;88.</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">We</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">examined</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">the</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">impact</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">of</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">leader</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">sleep</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">condition</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">(control</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">vs.&nbsp;sleep</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">deprived)</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">on</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">ratings</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">of</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">charismatic</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">leadership.</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">In</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">Models</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">1</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">and</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">2,</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">we</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">entered</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">the</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">control</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">variable</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">of</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">leader</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">gender</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">to</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">predict</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">leader</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">charisma.</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="8" class="cl-d8a4974e"><p class="cl-d8a442c4"><span class="cl-d89f887e">a </span><span class="cl-d89f8876">Male = 1, female = 2. </span><span class="cl-d89f887e">b </span><span class="cl-d89f8876">Control condition = 0, sleep-deprived condition = 1</span><span class="cl-d89f8876">.</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="8" class="cl-d8a4974e"><p class="cl-d8a442c4"><span class="cl-d89f8876">*</span><span class="cl-d89f8876"> </span><span class="cl-d89f8875">p</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">&lt;</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">.05.</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">**</span><span class="cl-d89f8876"> </span><span class="cl-d89f8875">p</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">&lt;</span><span class="cl-d89f8876"> </span><span class="cl-d89f8876">.01.</span></p></td></tr></tfoot></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-715-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Regression Coefficients of Leader Sleep on Charismatic Leadership</p>
</div>
</figcaption>
</figure>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.15 in {R} with Apa7},
  date = {2025-09-25},
  url = {https://wjschne.github.io/posts/apatables/apa715.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 25). Recreating APA Manual Table 7.15
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa715.html">https://wjschne.github.io/posts/apatables/apa715.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa715.html</guid>
  <pubDate>Thu, 25 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.14 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa714.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-14-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 14 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Aligning to only the left side of a decimal using the <code>side</code> parameter of the <a href="https://wjschne.github.io/apa7/reference/align_chr.html"><code>align_chr</code></a> function</li>
<li>Bold markdown with <a href="https://wjschne.github.io/apa7/reference/bold_md.html"><code>bold_md</code></a></li>
<li>Use of non-breaking space (<code>&amp;nbsp;</code>) to prevent markdown from treating numbered text as ordered lists</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-714" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-714-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.14</p>
</div>
</figcaption>
<div aria-describedby="fig-714-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table714.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>The PCAT items have row titles, have hanging indents, and are decimal aligned. This kind of formatting is not too hard in MS Word, but requires some pre-processing for flextable. We can use <a href="https://wjschne.github.io/apa7/reference/align_chr.html"><code>align_chr</code></a> to align by the first decimal. However, we need to prevent additional spaces to be added to the right side of the first decimals. Doing so will prevent strange formatting side effects after applying <a href="https://wjschne.github.io/apa7/reference/hanging_indent.html"><code>hanging_indent</code></a>. So we specify <code>side = left</code> in <code>align_chr</code> to add additional figures spaces on the left side only.</p>
<p>The <a href="https://ftextra.atusy.net/reference/colformat_md"><code>colformat_md</code></a> function automatically formats text to markdown. Unfortunately, the PCAT items look like ordered lists to the markdown parser. To prevent this conversion, we insert a non-breaking space (<code>&amp;nbsp;</code>) after the first decimal.</p>
<p>The factor loadings need to be bolded selectively (if &gt; .3). The <a href="https://davidgohel.github.io/flextable/reference/bold.html"><code>flextable::bold</code></a> function is great for selective bolding. However, the loadings are not really numbers by the time they get to flextable (i.e., they have text minus signs, figure spaces, and leading zeroes removed), which makes conditional processing tricky. It was easier to preprocess the loadings, selectively surrounding them with markdown bold tags with <a href="https://wjschne.github.io/apa7/reference/bold_md.html"><code>bold_md</code></a>.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="*N*&nbsp;=&nbsp;307. The extraction method was principal axis factoring with an oblique (promax with Kaiser Normalization) rotation. Factor loadings above .30 are in bold. Reverse-scored items are denoted with (R). Adapted from “Individual Differences in Activation of the Parental Care Motivational System: Assessment, Prediction, and Implications,” by E. E. Buckels, A. T. Beall, M. K. Hofer, E. Y. Lin, Z. Zhou, and M. Schaller, 2015, *Journal of Personality and Social Psychology, 108*(3), p. 501 ([https://doi.org/10.1037/pspp0000023](https://doi.org/10.1037/pspp0000023)). Copyright 2015 by the American Psychological Association." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-2">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb2-3">       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Factor =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 1: Tenderness--Positive"</span>,</span>
<span id="cb2-4">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 1: Tenderness--Positive"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 1: Tenderness--Positive"</span>,</span>
<span id="cb2-5">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 1: Tenderness--Positive"</span>,</span>
<span id="cb2-6">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 1: Tenderness--Positive"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 2: Liking"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 2: Liking"</span>,</span>
<span id="cb2-7">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 2: Liking"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 2: Liking"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 2: Liking"</span>,</span>
<span id="cb2-8">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 3: Protection"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 3: Protection"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 3: Protection"</span>,</span>
<span id="cb2-9">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 3: Protection"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor 3: Protection"</span>),</span>
<span id="cb2-10">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">PCAT Item</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"20. You make a baby lagh over and over again by making silly faces."</span>,</span>
<span id="cb2-11">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"22. A child blows you kisses to say goodbye."</span>,</span>
<span id="cb2-12">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"16. A newborn baby curls its hand around your finger."</span>,</span>
<span id="cb2-13">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"19. You watch as a toddler takes their first step and tumboles gently back down."</span>,</span>
<span id="cb2-14">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"25. You see a father tossing his giggling baby up into the air as a game."</span>,</span>
<span id="cb2-15">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"5. I think that kids are annoying. (R)"</span>,</span>
<span id="cb2-16">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"8. I can't stand how children whine all the time. (R)"</span>,</span>
<span id="cb2-17">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"2. When I hear a child crying, my first thought is </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">shut up!</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\"</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;"> (R)"</span>,</span>
<span id="cb2-18">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"11. I don't like to be around babies. (R)"</span>,</span>
<span id="cb2-19">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"14. If I could, I would hire a nanny to take care of my children. (R)"</span>,</span>
<span id="cb2-20">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"7. I would hurt anyone who was a threat to a child."</span>,</span>
<span id="cb2-21">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"12. I would show no mercy to someone who was a danger to a child."</span>,</span>
<span id="cb2-22">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"15. I would use any means necessary to protect a child, even if I had to hurt others."</span>,</span>
<span id="cb2-23">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"4. I would feel compelled to punish anyone who tried to hurt a child."</span>,</span>
<span id="cb2-24">                  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"9. I would sooner go to bed hungry than let a child go without food."</span>),</span>
<span id="cb2-25">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Factor loading_1</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-26">      <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.86</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.85</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.84</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.77</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.7</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.12</span>,</span>
<span id="cb2-27">      <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.04</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.11</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.08</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.13</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.0</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.06</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.07</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.46</span>),</span>
<span id="cb2-28">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Factor loading_2</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-29">      <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.04</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.02</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.06</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.05</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.1</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.95</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.83</span>,</span>
<span id="cb2-30">      <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.72</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.7</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.58</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.02</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.05</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.08</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>),</span>
<span id="cb2-31">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Factor loading_3</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb2-32">      <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.07</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.06</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.03</span>,</span>
<span id="cb2-33">      <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.02</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.95</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.74</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.72</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.68</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.36</span>)</span>
<span id="cb2-34">) </span>
<span id="cb2-35"></span>
<span id="cb2-36"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-37">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-38">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">PCAT Item</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">PCAT Item</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">side =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"left"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-39">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">75</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">indent =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-40">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_replace</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">. "</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">".&amp;nbsp;"</span>))  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span>  </span>
<span id="cb2-41">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-42">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(</span>
<span id="cb2-43">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">starts_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Factor loading"</span>), </span>
<span id="cb2-44">      \(x) {</span>
<span id="cb2-45">        y <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(x, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">trim_leading_zeros =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-46">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">abs</span>(x) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">bold_md</span>(y), y)</span>
<span id="cb2-47">        }</span>
<span id="cb2-48">      )</span>
<span id="cb2-49">    )</span>
<span id="cb2-50"></span>
<span id="cb2-51"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-52">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-53">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_column =</span> Factor, </span>
<span id="cb2-54">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-55">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">align =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"left"</span>) </span></code></pre></div></div>
<div id="tbl-714" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" data-apa-note="*N*&nbsp;=&nbsp;307. The extraction method was principal axis factoring with an oblique (promax with Kaiser Normalization) rotation. Factor loadings above .30 are in bold. Reverse-scored items are denoted with (R). Adapted from “Individual Differences in Activation of the Parental Care Motivational System: Assessment, Prediction, and Implications,” by E. E. Buckels, A. T. Beall, M. K. Hofer, E. Y. Lin, Z. Zhou, and M. Schaller, 2015, *Journal of Personality and Social Psychology, 108*(3), p. 501 ([https://doi.org/10.1037/pspp0000023](https://doi.org/10.1037/pspp0000023)). Copyright 2015 by the American Psychological Association." prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-714-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-4ca5f268{}.cl-4c891a94{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-4c891ab2{font-family:'Times New Roman';font-size:12pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-4c9f0d4a{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-4c9f0d54{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-4c9f0d5e{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:20pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-4c9f5c00{width:5.27in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c0a{width:0.41in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c0b{width:5.27in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c0c{width:0.41in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c14{width:0.41in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c15{width:5.27in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c1e{width:0.41in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c1f{width:5.27in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c20{width:0.41in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c28{width:5.27in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-4c9f5c29{width:0.41in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-4ca5f268"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-4c9f5c00"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">PCAT</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">Item</span></p></th><th colspan="3" class="cl-4c9f5c0a"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">Factor</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">loading</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-4c9f5c0a"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">1</span></p></th><th class="cl-4c9f5c0a"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">2</span></p></th><th class="cl-4c9f5c0a"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">3</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-4c9f5c0b"><p class="cl-4c9f0d54"><span class="cl-4c891a94">Factor</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">1:</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">Tenderness–Positive</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">20.&nbsp;You</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">make</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">baby</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">lagh</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">over</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">and</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">over</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">again</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">by</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">making</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">silly</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">faces.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .86</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .04</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .01</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">22.&nbsp;A</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">child</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">blows</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">you</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">kisses</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">say</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">goodbye.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .85</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.02</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.01</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">16.&nbsp;A</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">newborn</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">baby</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">curls</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">its</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">hand</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">around</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">your</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">finger.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .84</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.06</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .00</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">19.&nbsp;You</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">watch</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">as</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">toddler</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">takes</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">their</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">first</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">step</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">and</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">tumboles</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">gently</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">back</span><br><span class="cl-4c891a94">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;down.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .77</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .05</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.07</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c15"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">25.&nbsp;You</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">see</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">father</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">tossing</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">his</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">giggling</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">baby</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">up</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">into</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">the</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">air</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">as</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">game.</span></p></td><td class="cl-4c9f5c1e"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .70</span></p></td><td class="cl-4c9f5c1e"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .10</span></p></td><td class="cl-4c9f5c1e"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.03</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-4c9f5c1f"><p class="cl-4c9f0d54"><span class="cl-4c891a94">Factor</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">2:</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">Liking</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94"> 5.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">think</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">that</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">kids</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">are</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">annoying.</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">(R)</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.01</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .95</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .06</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94"> 8.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">can’t</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">stand</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">how</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">children</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">whine</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">all</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">the</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">time.</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">(R)</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.12</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .83</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.03</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94"> 2.&nbsp;When</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">hear</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">child</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">crying,</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">my</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">first</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">thought</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">is</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">“</span><span class="cl-4c891a94">shut</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">up!</span><span class="cl-4c891a94">”</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">(R)</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .04</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .72</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .01</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">11.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">don’t</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">like</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">be</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">around</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">babies.</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">(R)</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .11</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .70</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.01</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c15"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">14.&nbsp;If</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">could,</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">would</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">hire</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">nanny</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">take</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">care</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">of</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">my</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">children.</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">(R)</span></p></td><td class="cl-4c9f5c1e"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .08</span></p></td><td class="cl-4c9f5c1e"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .58</span></p></td><td class="cl-4c9f5c1e"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.02</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="4" class="cl-4c9f5c1f"><p class="cl-4c9f0d54"><span class="cl-4c891a94">Factor</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">3:</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">Protection</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94"> 7.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">would</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">hurt</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">anyone</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">who</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">was</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">threat</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">child.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.13</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.02</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .95</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">12.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">would</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">show</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">no</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">mercy</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">someone</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">who</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">was</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">danger</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">child.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .00</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.05</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .74</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94">15.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">would</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">use</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">any</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">means</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">necessary</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">protect</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">child,</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">even</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">if</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">had</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><br><span class="cl-4c891a94">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hurt</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">others.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .06</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .08</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .72</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c0b"><p class="cl-4c9f0d5e"><span class="cl-4c891a94"> 4.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">would</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">feel</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">compelled</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">punish</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">anyone</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">who</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">tried</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">hurt</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">child.</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .07</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891a94"> .03</span></p></td><td class="cl-4c9f5c14"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .68</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-4c9f5c28"><p class="cl-4c9f0d5e"><span class="cl-4c891a94"> 9.&nbsp;I</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">would</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">sooner</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">go</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">to</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">bed</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">hungry</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">than</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">let</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">a</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">child</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">go</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">without</span><span class="cl-4c891a94"> </span><span class="cl-4c891a94">food.</span></p></td><td class="cl-4c9f5c29"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .46</span></p></td><td class="cl-4c9f5c29"><p class="cl-4c9f0d4a"><span class="cl-4c891a94">−.03</span></p></td><td class="cl-4c9f5c29"><p class="cl-4c9f0d4a"><span class="cl-4c891ab2"> .36</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-714-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Results From a Factor Analysis of the Parental Care and Tenderness (PCAT) Questionnaire</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. <em>N</em>&nbsp;=&nbsp;307. The extraction method was principal axis factoring with an oblique (promax with Kaiser Normalization) rotation. Factor loadings above .30 are in bold. Reverse-scored items are denoted with (R). Adapted from “Individual Differences in Activation of the Parental Care Motivational System: Assessment, Prediction, and Implications,” by E. E. Buckels, A. T. Beall, M. K. Hofer, E. Y. Lin, Z. Zhou, and M. Schaller, 2015, <em>Journal of Personality and Social Psychology, 108</em>(3), p.&nbsp;501 (<a href="https://doi.org/10.1037/pspp0000023">https://doi.org/10.1037/pspp0000023</a>). Copyright 2015 by the American Psychological Association.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.14 in {R} with Apa7},
  date = {2025-09-24},
  url = {https://wjschne.github.io/posts/apatables/apa714.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 24). Recreating APA Manual Table 7.14
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa714.html">https://wjschne.github.io/posts/apatables/apa714.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa714.html</guid>
  <pubDate>Wed, 24 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.13 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa713.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-13-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 13 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Create column spanners with <a href="https://wjschne.github.io/apa7/reference/column_spanner_label.html"><code>column_spanner_label</code></a></li>
<li>Using <a href="https://wjschne.github.io/apa7/reference/add_star_column.html"><code>add_star_column</code></a> with <code>merge = TRUE</code> to create a starred column.</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-713" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-713-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.13</p>
</div>
</figcaption>
<div aria-describedby="fig-713-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table713.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>Copying and pasting data into a table is not what happens in data analyses. To make things more realistic, I simulated data based on the means and standard deviations, and ran ANOVAs on the simulated data. I extracted the descriptives and the test statistics and formatted the resulting table.</p>
<p>I used the <a href="https://wjschne.github.io/apa7/reference/add_star_column.html"><code>add_star_column</code></a> function to apply stars to the <code>F ratio</code> column from the <code>p</code> column. By default, <a href="https://wjschne.github.io/apa7/reference/add_star_column.html"><code>add_star_column</code></a> adds a special column to the right of the selected column. The selected column is then right-aligned, and the star column is left-aligned so that the column appears to be merged. Sometimes this looks great, sometimes it does not. In this case, I opted to set <code>merge = TRUE</code> in the <a href="https://wjschne.github.io/apa7/reference/add_star_column.html"><code>add_star_column</code></a>, which actually merges the selected column and its star column, then applies the <a href="https://wjschne.github.io/apa7/reference/star_balance.html"><code>star_balance</code></a> function, which pads the column with blanks spaces on the left so that the columns center properly.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="[&quot;*N*&nbsp;=&nbsp;153. ANOVA&nbsp;=&nbsp;analysis of variance; SMT&nbsp;=&nbsp;stress management training group; Control&nbsp;=&nbsp;wait-list control group; G&nbsp;=&nbsp;group; T&nbsp;=&nbsp;time.&quot;,&quot;^\*&nbsp;^*p* < .05. ^\*\*&nbsp;^*p* < .01. &quot;]" prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>)</span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-4">d_simulated <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb2-5"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">variable                Time    Group   M       SD  </span></span>
<span id="cb2-6"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Psychological strain    1.00    SMT     0.24    0.30</span></span>
<span id="cb2-7"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Psychological strain    2.00    SMT     0.16    0.27</span></span>
<span id="cb2-8"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Psychological strain    3.00    SMT     0.16    0.26</span></span>
<span id="cb2-9"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Psychological strain    1.00    Control 0.22    0.29</span></span>
<span id="cb2-10"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Psychological strain    2.00    Control 0.27    0.32</span></span>
<span id="cb2-11"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Psychological strain    3.00    Control 0.26    0.31</span></span>
<span id="cb2-12"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Emotional exhaustion    1.00    SMT     2.82    1.47</span></span>
<span id="cb2-13"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Emotional exhaustion    2.00    SMT     2.55    1.31</span></span>
<span id="cb2-14"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Emotional exhaustion    3.00    SMT     2.36    1.39</span></span>
<span id="cb2-15"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Emotional exhaustion    1.00    Control 2.50    1.25</span></span>
<span id="cb2-16"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Emotional exhaustion    2.00    Control 2.47    1.28</span></span>
<span id="cb2-17"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Emotional exhaustion    3.00    Control 2.43    1.16</span></span>
<span id="cb2-18"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Depersonalization       1.00    SMT     1.20    1.09</span></span>
<span id="cb2-19"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Depersonalization       2.00    SMT     1.13    1.07</span></span>
<span id="cb2-20"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Depersonalization       3.00    SMT     1.00    0.93</span></span>
<span id="cb2-21"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Depersonalization       1.00    Control 1.12    1.05</span></span>
<span id="cb2-22"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Depersonalization       2.00    Control 1.25    1.16</span></span>
<span id="cb2-23"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Depersonalization       3.00    Control 1.24    0.93"</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%&gt;%</span></span>
<span id="cb2-24">    readr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read_tsv</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-25">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-26">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(Group <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SMT"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">75</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">78</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-27">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">x =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pmap</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mean =</span> M, </span>
<span id="cb2-28">                          <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sd =</span> SD,</span>
<span id="cb2-29">                          <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n =</span> n),</span>
<span id="cb2-30">                     rnorm)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-31">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(M, SD, n)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-32">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(x) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-33">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">id =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">row_number</span>()), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(variable, Time)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-34">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>variable) </span>
<span id="cb2-35"></span>
<span id="cb2-36"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Analyze data</span></span>
<span id="cb2-37">d_analysis <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_simulated <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-38">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">descriptives =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, \(d) {</span>
<span id="cb2-39">    d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-40">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summarise</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">M =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mean</span>(x),</span>
<span id="cb2-41">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">SD =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sd</span>(x), </span>
<span id="cb2-42">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Group, Time)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-43">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider_name_first</span>(</span>
<span id="cb2-44">        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> Group,</span>
<span id="cb2-45">        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(M, SD)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-46">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Time =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Time"</span>, Time))</span>
<span id="cb2-47">  }),</span>
<span id="cb2-48">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, </span>
<span id="cb2-49">                   \(d) {</span>
<span id="cb2-50">                     <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">aov</span>(x <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Group <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> Time <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">Error</span>(id), </span>
<span id="cb2-51">                         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)</span>
<span id="cb2-52">                     }),</span>
<span id="cb2-53">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">eta =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(fit, effectsize<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span>eta_squared) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-54">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(\(d) dplyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(</span>
<span id="cb2-55">             d, Parameter, Eta2_partial) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-56">                 <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>()),</span>
<span id="cb2-57">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mp =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(fit, parameters<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span>model_parameters) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-58">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(\(d) dplyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(</span>
<span id="cb2-59">             d, Group, Parameter, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, df, p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-60">                 <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-61">                 <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">df2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sum</span>(</span>
<span id="cb2-62">                   <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(Parameter <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Residuals"</span>, df, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>)), </span>
<span id="cb2-63">                        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Group) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-64">                 dplyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter</span>(Parameter <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">!=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Residuals"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-65">                 <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(df, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(df, df2), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">", "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-66">           dplyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Group)),</span>
<span id="cb2-67">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Ftest =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2</span>(mp, eta, \(m, e) {</span>
<span id="cb2-68">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">left_join</span>(m, e, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">join_by</span>(Parameter)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-69">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Parameter =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(</span>
<span id="cb2-70">               Parameter,</span>
<span id="cb2-71">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">levels =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Group"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Time"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Group:Time"</span>),</span>
<span id="cb2-72">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">labels =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"G"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"G \u00D7 T"</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-73">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Effect =</span> Parameter)</span>
<span id="cb2-74">         })</span>
<span id="cb2-75">) </span>
<span id="cb2-76"></span>
<span id="cb2-77"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-78">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_analysis <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-79">  dplyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(variable, descriptives, Ftest) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-80">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(descriptives, Ftest)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-81">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Variable =</span> Time) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-82">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-83">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_star_column</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">merge =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-84">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">*F* ratio</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-85">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-86">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">column_spanner_label</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">label =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ANOVA"</span>, Effect<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>Eta2_partial)</span>
<span id="cb2-87"></span>
<span id="cb2-88"></span>
<span id="cb2-89"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-90">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-91">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_title_column =</span> variable, </span>
<span id="cb2-92">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>) </span></code></pre></div></div>
<div id="tbl-713" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" prefix="" data-tblnum="1" data-apa-note="[&quot;*N*&nbsp;=&nbsp;153. ANOVA&nbsp;=&nbsp;analysis of variance; SMT&nbsp;=&nbsp;stress management training group; Control&nbsp;=&nbsp;wait-list control group; G&nbsp;=&nbsp;group; T&nbsp;=&nbsp;time.&quot;,&quot;^\*&nbsp;^*p* < .05. ^\*\*&nbsp;^*p* < .01. &quot;]">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-713-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-c4cdf408{}.cl-c4b0e39a{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-c4b0e3b8{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-c4b0e3c2{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-c4b0e3cc{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-c4c6c912{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-c4c6c91c{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-c4c6c926{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:20pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-c4c6f6bc{width:1.299in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6c6{width:0.579in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6d0{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6d1{width:0.745in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6d2{width:0.819in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6da{width:0.759in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6db{width:0.46in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6e4{width:1.299in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6e5{width:0.579in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6ee{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6ef{width:0.745in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6f0{width:0.819in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6f8{width:0.759in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6f9{width:0.46in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f6fa{width:0.579in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f702{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f703{width:0.745in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f704{width:0.819in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f705{width:0.759in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f70c{width:0.46in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f716{width:1.299in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f717{width:0.579in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f720{width:0.745in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f721{width:0.819in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f722{width:0.759in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f72a{width:0.46in;background-color:transparent;vertical-align: top;border-bottom: 1pt solid rgba(51, 51, 51, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f72b{width:1.299in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f72c{width:0.579in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f734{width:0.745in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f735{width:0.819in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f736{width:0.759in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f73e{width:0.46in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 1pt solid rgba(51, 51, 51, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f73f{width:1.299in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f740{width:0.579in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f748{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f749{width:0.745in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f74a{width:0.819in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f752{width:0.759in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-c4c6f753{width:0.46in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-c4cdf408"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-c4c6f6bc"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">Variable</span></p></th><th colspan="2" class="cl-c4c6f6c6"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">SMT</span></p></th><th rowspan="2" class="cl-c4c6f6d0"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></th><th colspan="2" class="cl-c4c6f6c6"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">Control</span></p></th><th rowspan="2" class="cl-c4c6f6d0"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></th><th colspan="4" class="cl-c4c6f6d1"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">ANOVA</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-c4c6f6c6"><p class="cl-c4c6c912"><span class="cl-c4b0e3c2">M</span></p></th><th class="cl-c4c6f6c6"><p class="cl-c4c6c912"><span class="cl-c4b0e3c2">SD</span></p></th><th class="cl-c4c6f6c6"><p class="cl-c4c6c912"><span class="cl-c4b0e3c2">M</span></p></th><th class="cl-c4c6f6c6"><p class="cl-c4c6c912"><span class="cl-c4b0e3c2">SD</span></p></th><th class="cl-c4c6f6d1"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">Effect</span></p></th><th class="cl-c4c6f6d2"><p class="cl-c4c6c912"><span class="cl-c4b0e3c2">F</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">ratio</span></p></th><th class="cl-c4c6f6da"><p class="cl-c4c6c912"><span class="cl-c4b0e3c2">df</span></p></th><th class="cl-c4c6f6db"><p class="cl-c4c6c912"><span class="cl-c4b0e3c2">η</span><span class="cl-c4b0e3cc">2</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td colspan="11" class="cl-c4c6f6e4"><p class="cl-c4c6c91c"><span class="cl-c4b0e39a">Psychological</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">strain</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f6e4"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">1</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.23</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.29</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.20</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.29</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f703"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">G</span></p></td><td class="cl-c4c6f704"><p class="cl-c4c6c912"><span class="cl-c4b0e3cc">  </span><span class="cl-c4b0e39a">8.26</span><span class="cl-c4b0e3cc">**</span></p></td><td class="cl-c4c6f705"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">151</span></p></td><td class="cl-c4c6f70c"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.05</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f6e4"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">2</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.15</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.27</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.27</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.31</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f703"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">T</span></p></td><td class="cl-c4c6f704"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.26</span></p></td><td class="cl-c4c6f705"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">304</span></p></td><td class="cl-c4c6f70c"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.00</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f716"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">3</span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.14</span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.25</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.25</span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.32</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f720"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">G</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">×</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">T</span></p></td><td class="cl-c4c6f721"><p class="cl-c4c6c912"><span class="cl-c4b0e3cc"> </span><span class="cl-c4b0e39a">4.63</span><span class="cl-c4b0e3cc">*</span></p></td><td class="cl-c4c6f722"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">304</span></p></td><td class="cl-c4c6f72a"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.02</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="11" class="cl-c4c6f72b"><p class="cl-c4c6c91c"><span class="cl-c4b0e39a">Emotional</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">exhaustion</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f6e4"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">1</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">2.68</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.32</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">2.62</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.18</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f703"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">G</span></p></td><td class="cl-c4c6f704"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.00</span></p></td><td class="cl-c4c6f705"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">151</span></p></td><td class="cl-c4c6f70c"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.00</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f6e4"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">2</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">2.59</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.27</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">2.40</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.36</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f703"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">T</span></p></td><td class="cl-c4c6f704"><p class="cl-c4c6c912"><span class="cl-c4b0e3cc"> </span><span class="cl-c4b0e39a">5.49</span><span class="cl-c4b0e3cc">*</span></p></td><td class="cl-c4c6f705"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">304</span></p></td><td class="cl-c4c6f70c"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.02</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f716"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">3</span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">2.16</span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.60</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">2.39</span></p></td><td class="cl-c4c6f717"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.19</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f720"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">G</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">×</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">T</span></p></td><td class="cl-c4c6f721"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.86</span></p></td><td class="cl-c4c6f722"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">304</span></p></td><td class="cl-c4c6f72a"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.00</span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="11" class="cl-c4c6f72b"><p class="cl-c4c6c91c"><span class="cl-c4b0e39a">Depersonalization</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f6e4"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">1</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.40</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.19</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.02</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.94</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f703"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">G</span></p></td><td class="cl-c4c6f704"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.03</span></p></td><td class="cl-c4c6f705"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">151</span></p></td><td class="cl-c4c6f70c"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.00</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f6e4"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">2</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.93</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.00</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.19</span></p></td><td class="cl-c4c6f6fa"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.21</span></p></td><td class="cl-c4c6f702"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f703"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">T</span></p></td><td class="cl-c4c6f704"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.14</span></p></td><td class="cl-c4c6f705"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">304</span></p></td><td class="cl-c4c6f70c"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.00</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-c4c6f73f"><p class="cl-c4c6c926"><span class="cl-c4b0e39a">Time</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">3</span></p></td><td class="cl-c4c6f740"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.17</span></p></td><td class="cl-c4c6f740"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">0.90</span></p></td><td class="cl-c4c6f748"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f740"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.33</span></p></td><td class="cl-c4c6f740"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1.00</span></p></td><td class="cl-c4c6f748"><p class="cl-c4c6c912"><span class="cl-c4b0e3b8"></span></p></td><td class="cl-c4c6f749"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">G</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">×</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">T</span></p></td><td class="cl-c4c6f74a"><p class="cl-c4c6c912"><span class="cl-c4b0e3cc"> </span><span class="cl-c4b0e39a">5.13</span><span class="cl-c4b0e3cc">*</span></p></td><td class="cl-c4c6f752"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">1,</span><span class="cl-c4b0e39a"> </span><span class="cl-c4b0e39a">304</span></p></td><td class="cl-c4c6f753"><p class="cl-c4c6c912"><span class="cl-c4b0e39a">.02</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-713-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Means, Standard Deviations, and Two-Way ANOVA for Study Variables</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. <em>N</em>&nbsp;=&nbsp;153. ANOVA&nbsp;=&nbsp;analysis of variance; SMT&nbsp;=&nbsp;stress management training group; Control&nbsp;=&nbsp;wait-list control group; G&nbsp;=&nbsp;group; T&nbsp;=&nbsp;time.
</div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<sup>*&nbsp;</sup><em>p</em> &lt; .05. <sup>**&nbsp;</sup><em>p</em> &lt; .01.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.13 in {R} with Apa7},
  date = {2025-09-23},
  url = {https://wjschne.github.io/posts/apatables/apa713.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 23). Recreating APA Manual Table 7.13
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa713.html">https://wjschne.github.io/posts/apatables/apa713.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa713.html</guid>
  <pubDate>Tue, 23 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.12 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa712.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-12-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 12 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Selective indentation with <code>flextable::padding</code></li>
<li>Aligned significance stars with <code>add_star_column</code></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-712" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-712-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.12</p>
</div>
</figcaption>
<div aria-describedby="fig-712-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table712.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>To make the process more realistic, I simulated data using the means and standard deviations from Figure&nbsp;1, calculated descriptive statistics, conducted one-way ANOVAs, and extracted significance tests and effect sizes.</p>
<p>Note that the <code>F</code> column’s stars were added using the <code>add_star_column</code> function, which looks for a column called <code>p</code>, and converts p-values to stars.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="NoNote \* *p* < .05; \*\* *p* < .01 \*\*\* *p* < .001" prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">123</span>)</span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-4">d_descriptives <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb2-5"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Measure                 Urban_M Urban_SD        Rural_M     Rural_SD</span></span>
<span id="cb2-6"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Self-esteem             2.91        0.49        3.35        0.35</span></span>
<span id="cb2-7"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Social support          4.22        1.50        5.56        1.20</span></span>
<span id="cb2-8"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Threat                  2.78        0.87        1.99        0.88</span></span>
<span id="cb2-9"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Challenge               2.48        0.88        2.83        1.20</span></span>
<span id="cb2-10"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Self-efficacy           2.65        0.79        3.53        0.92"</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-11">  readr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read_tsv</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-12">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-13">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Measure) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-14">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">separate</span>(name, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"type"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"name"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-16">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2</span>(M, SD, \(m,sd) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rnorm</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">148</span>, m, sd))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-17">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(Measure, type, data) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-18">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(data) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">y =</span> data) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-20">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Measure)</span>
<span id="cb2-21"></span>
<span id="cb2-22"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Analysis</span></span>
<span id="cb2-23">d_analysis <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_descriptives <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-24">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-25">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">msd =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, \(d) {</span>
<span id="cb2-26">      d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-27">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summarise</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">M =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mean</span>(y),</span>
<span id="cb2-28">                  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">SD =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sd</span>(y), </span>
<span id="cb2-29">                  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> type) </span>
<span id="cb2-30">    }),</span>
<span id="cb2-31">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, \(d) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">aov</span>(y <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> type, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)),</span>
<span id="cb2-32">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mp =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(fit, \(fit) {</span>
<span id="cb2-33">      parameters<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">model_parameters</span>(fit) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-34">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-35">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">slice</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb2-36">      }</span>
<span id="cb2-37">      ),</span>
<span id="cb2-38">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(mp, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"F"</span>),</span>
<span id="cb2-39">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(mp, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p"</span>),</span>
<span id="cb2-40">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">eta2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(fit, \(fit) {</span>
<span id="cb2-41">      eta2 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>(</span>
<span id="cb2-42">        effectsize<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">effectsize</span>(fit, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">type =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"eta2"</span> ))</span>
<span id="cb2-43">      </span>
<span id="cb2-44">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>(eta2)<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Eta2</span>
<span id="cb2-45">        </span>
<span id="cb2-46">        }))</span>
<span id="cb2-47"></span>
<span id="cb2-48"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Get residual degrees of freedom</span></span>
<span id="cb2-49">df_residual <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_analysis<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>fit[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>]]<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>df.residual</span>
<span id="cb2-50"></span>
<span id="cb2-51"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-52">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_analysis <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-53">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(msd) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-54">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider_name_first</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> type, </span>
<span id="cb2-55">                         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(M, SD)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-56">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(Measure, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">contains</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"_"</span>), <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, p, eta2)  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-57">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-58">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_star_column</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">merge =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-59">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-60">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename_with</span>(\(x) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(x <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"F"</span>, </span>
<span id="cb2-61">                          <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"*F*(1,"</span>, df_residual, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">")"</span>), </span>
<span id="cb2-62">                          x)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-63">  dplyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_row</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Measure =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Cognitive appraisals"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.after =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) </span>
<span id="cb2-64"></span>
<span id="cb2-65"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-66">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-67">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-68">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">padding</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">padding.left =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-69">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.65</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">8</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">8</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">05</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">8</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">8</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">7</span>))</span></code></pre></div></div>
<div id="tbl-712" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" prefix="" data-apa-note="NoNote \* *p* < .05; \*\* *p* < .01 \*\*\* *p* < .001" data-tblnum="1">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-712-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-3dd41860{}.cl-3daabc0e{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-3daabc40{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-3daabc4a{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-3daabc4b{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-3dcd3504{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-3dcd350e{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-3dcd3518{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:20pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-3dcd7a00{width:1.65in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a14{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a1e{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a1f{width:0.9in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a20{width:0.7in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a28{width:1.65in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a29{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a32{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a33{width:0.9in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a34{width:0.7in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a35{width:1.65in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a3c{width:0.8in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a3d{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a46{width:0.9in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3dcd7a47{width:0.7in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-3dd41860"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-3dcd7a00"><p class="cl-3dcd3504"><span class="cl-3daabc0e">Measure</span></p></th><th colspan="2" class="cl-3dcd7a14"><p class="cl-3dcd3504"><span class="cl-3daabc0e">Urban</span></p></th><th rowspan="2" class="cl-3dcd7a1e"><p class="cl-3dcd3504"><span class="cl-3daabc40"></span></p></th><th colspan="2" class="cl-3dcd7a14"><p class="cl-3dcd3504"><span class="cl-3daabc0e">Rural</span></p></th><th rowspan="2" class="cl-3dcd7a1f"><p class="cl-3dcd3504"><span class="cl-3daabc4a">F</span><span class="cl-3daabc0e">(1,294)</span></p></th><th rowspan="2" class="cl-3dcd7a20"><p class="cl-3dcd3504"><span class="cl-3daabc4a">η</span><span class="cl-3daabc4b">2</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-3dcd7a14"><p class="cl-3dcd3504"><span class="cl-3daabc4a">M</span></p></th><th class="cl-3dcd7a14"><p class="cl-3dcd3504"><span class="cl-3daabc4a">SD</span></p></th><th class="cl-3dcd7a14"><p class="cl-3dcd3504"><span class="cl-3daabc4a">M</span></p></th><th class="cl-3dcd7a14"><p class="cl-3dcd3504"><span class="cl-3daabc4a">SD</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-3dcd7a28"><p class="cl-3dcd350e"><span class="cl-3daabc0e">Self-esteem</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">2.90</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">0.46</span></p></td><td class="cl-3dcd7a32"><p class="cl-3dcd3504"><span class="cl-3daabc40"></span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">3.38</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">0.33</span></p></td><td class="cl-3dcd7a33"><p class="cl-3dcd3504"><span class="cl-3daabc4b">   </span><span class="cl-3daabc0e">109.38</span><span class="cl-3daabc4b">***</span></p></td><td class="cl-3dcd7a34"><p class="cl-3dcd3504"><span class="cl-3daabc0e">.27</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3dcd7a28"><p class="cl-3dcd350e"><span class="cl-3daabc0e">Social</span><span class="cl-3daabc0e"> </span><span class="cl-3daabc0e">support</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">4.20</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">1.55</span></p></td><td class="cl-3dcd7a32"><p class="cl-3dcd3504"><span class="cl-3daabc40"></span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">5.61</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">1.13</span></p></td><td class="cl-3dcd7a33"><p class="cl-3dcd3504"><span class="cl-3daabc4b">   </span><span class="cl-3daabc0e"> 79.88</span><span class="cl-3daabc4b">***</span></p></td><td class="cl-3dcd7a34"><p class="cl-3dcd3504"><span class="cl-3daabc0e">.21</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3dcd7a28"><p class="cl-3dcd350e"><span class="cl-3daabc0e">Cognitive</span><span class="cl-3daabc0e"> </span><span class="cl-3daabc0e">appraisals</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e"></span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e"></span></p></td><td class="cl-3dcd7a32"><p class="cl-3dcd3504"><span class="cl-3daabc40"></span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e"></span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e"></span></p></td><td class="cl-3dcd7a33"><p class="cl-3dcd3504"><span class="cl-3daabc0e"></span></p></td><td class="cl-3dcd7a34"><p class="cl-3dcd3504"><span class="cl-3daabc0e"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3dcd7a28"><p class="cl-3dcd3518"><span class="cl-3daabc0e">Threat</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">2.71</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">0.88</span></p></td><td class="cl-3dcd7a32"><p class="cl-3dcd3504"><span class="cl-3daabc40"></span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">2.09</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">0.95</span></p></td><td class="cl-3dcd7a33"><p class="cl-3dcd3504"><span class="cl-3daabc4b">   </span><span class="cl-3daabc0e"> 34.57</span><span class="cl-3daabc4b">***</span></p></td><td class="cl-3dcd7a34"><p class="cl-3dcd3504"><span class="cl-3daabc0e">.11</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3dcd7a28"><p class="cl-3dcd3518"><span class="cl-3daabc0e">Challenge</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">2.51</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">0.93</span></p></td><td class="cl-3dcd7a32"><p class="cl-3dcd3504"><span class="cl-3daabc40"></span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">2.82</span></p></td><td class="cl-3dcd7a29"><p class="cl-3dcd3504"><span class="cl-3daabc0e">1.13</span></p></td><td class="cl-3dcd7a33"><p class="cl-3dcd3504"><span class="cl-3daabc4b"> </span><span class="cl-3daabc0e">  6.61</span><span class="cl-3daabc4b">*</span></p></td><td class="cl-3dcd7a34"><p class="cl-3dcd3504"><span class="cl-3daabc0e">.02</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3dcd7a35"><p class="cl-3dcd3518"><span class="cl-3daabc0e">Self-efficacy</span></p></td><td class="cl-3dcd7a3c"><p class="cl-3dcd3504"><span class="cl-3daabc0e">2.66</span></p></td><td class="cl-3dcd7a3c"><p class="cl-3dcd3504"><span class="cl-3daabc0e">0.79</span></p></td><td class="cl-3dcd7a3d"><p class="cl-3dcd3504"><span class="cl-3daabc40"></span></p></td><td class="cl-3dcd7a3c"><p class="cl-3dcd3504"><span class="cl-3daabc0e">3.50</span></p></td><td class="cl-3dcd7a3c"><p class="cl-3dcd3504"><span class="cl-3daabc0e">0.89</span></p></td><td class="cl-3dcd7a46"><p class="cl-3dcd3504"><span class="cl-3daabc4b">   </span><span class="cl-3daabc0e"> 72.78</span><span class="cl-3daabc4b">***</span></p></td><td class="cl-3dcd7a47"><p class="cl-3dcd3504"><span class="cl-3daabc0e">.20</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-712-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Means, Standard Deviations, and One-Way Analyses of Variance in Psychological and Social Resources and Cognitive Appraisals</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
* <em>p</em> &lt; .05; ** <em>p</em> &lt; .01 *** <em>p</em> &lt; .001
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.12 in {R} with Apa7},
  date = {2025-09-22},
  url = {https://wjschne.github.io/posts/apatables/apa712.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 22). Recreating APA Manual Table 7.12
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa712.html">https://wjschne.github.io/posts/apatables/apa712.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa712.html</guid>
  <pubDate>Mon, 22 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.11 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa711.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-11-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 11 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>The <a href="https://wjschne.github.io/apa7/reference/separate_star_column.html"><code>separate_star_column</code></a> function to align numbers with significance stars</li>
<li>The <a href="https://wjschne.github.io/apa7/reference/add_list_column.html">add_list_column</a> function to make an ordered list.</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-711" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-711-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.11</p>
</div>
</figcaption>
<div aria-describedby="fig-711-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table711.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>This correlation matrix is different above and below the diagonal. A correctable imperfection of the Figure&nbsp;1 is that the correlations do not align on their decimals due to the minus signs and stars. This can be corrected by separating the correlations from the significance stars with the <code>separate_star_column</code> function. This function removes any stars from each selected column and places them in an adjacent column. The <code>apa_flextable</code> function (via <code>apa_style</code>) then automatically right aligns the selected columns and left aligns the star columns, and removes any padding between them, giving the illusion that they are in the same column with decimal alignment.</p>
<p>The <code>add_list_column</code> function can make ordered lists (numeric, alphabetical, or Roman numeral). By default, the list column is a separate column that is specially formatted by <code>apa_flextable</code> or <code>apa_style</code>. Setting <code>merge = TRUE</code> joins the list and text columns into a single column.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="The results for the female sample (*n*&nbsp;=&nbsp;199) are shown above the diagonal. The results for the male sample (*n*&nbsp;=&nbsp;120) are shown below the diagonal." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-2">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb2-3"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Variable                1       2       3       4</span></span>
<span id="cb2-4"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Grade point average     —       .49**   .35**   −.05</span></span>
<span id="cb2-5"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Academic self-concept   .35**   —       .36**   .02</span></span>
<span id="cb2-6"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Teacher trust           .49**   .35**   —       .20**</span></span>
<span id="cb2-7"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Age                     .10     .21*    −.15    —"</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-8">  readr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read_tsv</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-9">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>()</span>
<span id="cb2-10"></span>
<span id="cb2-11"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-12">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-13">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">separate_star_column</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Variable) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-14">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_list_column</span>(Variable, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">merge =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-15"></span>
<span id="cb2-16"></span>
<span id="cb2-17"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make Table</span></span>
<span id="cb2-18">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">no_format_columns =</span> Variable) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-20">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.1</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">7</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>), <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>)))</span></code></pre></div></div>
<div id="tbl-711" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" data-apa-note="The results for the female sample (*n*&nbsp;=&nbsp;199) are shown above the diagonal. The results for the male sample (*n*&nbsp;=&nbsp;120) are shown below the diagonal." prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-711-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-b88c1b1c{}.cl-b86d213a{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-b86d214e{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-b884e5c2{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-b884e5cc{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:0;line-height: 1;background-color:transparent;}.cl-b884e5cd{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-b884e5d6{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:0;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-b88532c0{width:2.1in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532ca{width:0.7in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532cb{width:0.4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532d4{width:2.1in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532d5{width:0.7in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532de{width:0.4in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532df{width:2.1in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532e0{width:0.7in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-b88532e8{width:0.4in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-b88c1b1c"><thead><tr style="overflow-wrap:break-word;"><th class="cl-b88532c0"><p class="cl-b884e5c2"><span class="cl-b86d213a">Variable</span></p></th><th class="cl-b88532ca"><p class="cl-b884e5cc"><span class="cl-b86d213a">1</span></p></th><th class="cl-b88532cb"><p class="cl-b884e5c2"><span class="cl-b86d213a"></span></p></th><th class="cl-b88532ca"><p class="cl-b884e5cc"><span class="cl-b86d213a">2</span></p></th><th class="cl-b88532cb"><p class="cl-b884e5c2"><span class="cl-b86d213a"></span></p></th><th class="cl-b88532ca"><p class="cl-b884e5cc"><span class="cl-b86d213a">3</span></p></th><th class="cl-b88532cb"><p class="cl-b884e5c2"><span class="cl-b86d213a"></span></p></th><th class="cl-b88532ca"><p class="cl-b884e5cc"><span class="cl-b86d213a">4</span></p></th><th class="cl-b88532cb"><p class="cl-b884e5c2"><span class="cl-b86d213a"></span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-b88532d4"><p class="cl-b884e5cd"><span class="cl-b86d213a">1.&nbsp;Grade</span><span class="cl-b86d213a"> </span><span class="cl-b86d213a">point</span><span class="cl-b86d213a"> </span><span class="cl-b86d213a">average</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">—</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.49</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d214e">**</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.35</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d214e">**</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">−.05</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-b88532d4"><p class="cl-b884e5cd"><span class="cl-b86d213a">2.&nbsp;Academic</span><span class="cl-b86d213a"> </span><span class="cl-b86d213a">self-concept</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.35</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d214e">**</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">—</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.36</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d214e">**</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.02</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-b88532d4"><p class="cl-b884e5cd"><span class="cl-b86d213a">3.&nbsp;Teacher</span><span class="cl-b86d213a"> </span><span class="cl-b86d213a">trust</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.49</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d214e">**</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.35</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d214e">**</span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">—</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td><td class="cl-b88532d5"><p class="cl-b884e5cc"><span class="cl-b86d213a">.20</span></p></td><td class="cl-b88532de"><p class="cl-b884e5d6"><span class="cl-b86d214e">**</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-b88532df"><p class="cl-b884e5cd"><span class="cl-b86d213a">4.&nbsp;Age</span></p></td><td class="cl-b88532e0"><p class="cl-b884e5cc"><span class="cl-b86d213a">.10</span></p></td><td class="cl-b88532e8"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td><td class="cl-b88532e0"><p class="cl-b884e5cc"><span class="cl-b86d213a">.21</span></p></td><td class="cl-b88532e8"><p class="cl-b884e5d6"><span class="cl-b86d214e">*</span></p></td><td class="cl-b88532e0"><p class="cl-b884e5cc"><span class="cl-b86d213a">−.15</span></p></td><td class="cl-b88532e8"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td><td class="cl-b88532e0"><p class="cl-b884e5cc"><span class="cl-b86d213a">—</span></p></td><td class="cl-b88532e8"><p class="cl-b884e5d6"><span class="cl-b86d213a"></span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-711-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Intercorrelations for Study Variables Disaggregated by Gender</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. The results for the female sample (<em>n</em>&nbsp;=&nbsp;199) are shown above the diagonal. The results for the male sample (<em>n</em>&nbsp;=&nbsp;120) are shown below the diagonal.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.11 in {R} with Apa7},
  date = {2025-09-21},
  url = {https://wjschne.github.io/posts/apatables/apa711.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 21). Recreating APA Manual Table 7.11
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa711.html">https://wjschne.github.io/posts/apatables/apa711.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa711.html</guid>
  <pubDate>Sun, 21 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.10 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa710.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-10-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 10 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Correlation matrices and descriptive statistics with <code>apa_cor</code></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-710" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-710-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.10</p>
</div>
</figcaption>
<div aria-describedby="fig-710-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table710.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>The <a href="https://wjschne.github.io/apa7/reference/apa_cor.html"><code>apa_cor</code></a> function does a lot under the hood. By default, it gives the mean and standard deviation of each variable. By supplying a list of summary functions <code>summary_functions = c("n", "M", "SD")</code>, we can get the <code>n</code> for each variable, too.</p>
<div class="cell FigureWithoutNote page-columns page-full" prefix="" data-tblnum="1" data-custom-style="FigureWithoutNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1234</span>)</span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Descriptives</span></span>
<span id="cb2-4">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> tibble<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tribble</span>(</span>
<span id="cb2-5">                     <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Variable,    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>n,    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>M,  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>SD,</span>
<span id="cb2-6">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Internal--external status"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3697</span>L,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.43</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.49</span>,</span>
<span id="cb2-7">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Manager job performance"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2134</span>L,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">3.14</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.62</span>,</span>
<span id="cb2-8">             <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Starting salary"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3697</span>L,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.01</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.27</span>,</span>
<span id="cb2-9">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Subsequent promotion"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3697</span>L,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.33</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.47</span>,</span>
<span id="cb2-10">         <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Organization tenure"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3697</span>L,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.45</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.62</span>,</span>
<span id="cb2-11">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Unit service performance"</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3505</span>L,    <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">85</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.98</span>,</span>
<span id="cb2-12">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Unit financial performance"</span>,  <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">694</span>L, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">42.61</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">5.86</span></span>
<span id="cb2-13">  )</span>
<span id="cb2-14"></span>
<span id="cb2-15"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Correlations</span></span>
<span id="cb2-16">R <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb2-17"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">r       1       2       3       4       5       6       7   </span></span>
<span id="cb2-18"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">1   0.00    0.00    0.00    0.00    0.00    0.00    0.00</span></span>
<span id="cb2-19"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">2   -0.08   0.00    0.00    0.00    0.00    0.00    0.00</span></span>
<span id="cb2-20"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">3   0.45    -0.01   0.00    0.00    0.00    0.00    0.00</span></span>
<span id="cb2-21"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">4   0.08    -0.07   0.04    0.00    0.00    0.00    0.00</span></span>
<span id="cb2-22"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">5   -0.29   0.09    0.01    0.09    0.00    0.00    0.00</span></span>
<span id="cb2-23"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">6   0.25    -0.39   0.24    0.08    0.01    0.00    0.00</span></span>
<span id="cb2-24"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">7   0.00    0.03    0.12    -0.07   -0.02   0.16    0.00"</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-25">    readr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read_tsv</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-26">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-27">    tibble<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">column_to_rownames</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"r"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-28">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.matrix</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-29">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">dimnames&lt;-</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(d<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Variable, d<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Variable)) </span>
<span id="cb2-30"></span>
<span id="cb2-31"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make R symmetric and fill diagonal with 1s</span></span>
<span id="cb2-32">R <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> (R <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">t</span>(R)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">diag&lt;-</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb2-33"></span>
<span id="cb2-34"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-35">d_simulated <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> mvtnorm<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rmvnorm</span>(</span>
<span id="cb2-36">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">max</span>(d<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>n), </span>
<span id="cb2-37">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mean =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">deframe</span>(d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(Variable, M)),</span>
<span id="cb2-38">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sigma =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">diag</span>(d<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>SD) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%*%</span> R <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%*%</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">diag</span>(d<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>SD)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-39">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_tibble</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-40">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2_df</span>(d<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>n, \(x, n) {</span>
<span id="cb2-41">    k <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">length</span>(x)</span>
<span id="cb2-42">    x[<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>k, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">size =</span> k <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> n)] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span></span>
<span id="cb2-43">    x</span>
<span id="cb2-44">  }) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-45">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename_with</span>(hanging_indent, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">15</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">indent =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>)</span>
<span id="cb2-46"></span>
<span id="cb2-47"></span>
<span id="cb2-48"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-49">d_simulated <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-50">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_cor</span>(</span>
<span id="cb2-51">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">summary_functions =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"n"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"M"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SD"</span>), </span>
<span id="cb2-52">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">significance_note =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>, </span>
<span id="cb2-53">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p_value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">05</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">01</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span>   </span>
<span id="cb2-54">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">footnote</span>(</span>
<span id="cb2-55">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb2-56">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Variable"</span>, </span>
<span id="cb2-57">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph</span>(</span>
<span id="cb2-58">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"0 = internal hires and 1 = external hires."</span>), </span>
<span id="cb2-59">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ref_symbols =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"a "</span>,</span>
<span id="cb2-60">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">inline =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, </span>
<span id="cb2-61">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-62">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">footnote</span>(</span>
<span id="cb2-63">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, </span>
<span id="cb2-64">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Variable"</span>, </span>
<span id="cb2-65">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph</span>(</span>
<span id="cb2-66">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A linear transformation was performed on"</span>,</span>
<span id="cb2-67">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"the starting salary values to maintain pay practice"</span>,</span>
<span id="cb2-68">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"confidentiality. The standard deviation (0.27) can"</span>,</span>
<span id="cb2-69">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"be interpreted as 27% of the average starting salary"</span>,</span>
<span id="cb2-70">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"for all managers. Thus, ±1 SD includes a range of"</span>,</span>
<span id="cb2-71">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"starting salaries from 73% (i.e., 1.00 – 0.27) to"</span>,</span>
<span id="cb2-72">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"127% (i.e., 1.00 + 0.27) of the average starting"</span>,</span>
<span id="cb2-73">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"salaries for all managers."</span>)), </span>
<span id="cb2-74">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ref_symbols =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"b "</span>, </span>
<span id="cb2-75">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">inline =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, </span>
<span id="cb2-76">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-77">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">footnote</span>(</span>
<span id="cb2-78">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">i =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">7</span>), </span>
<span id="cb2-79">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">j =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Variable"</span>, </span>
<span id="cb2-80">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph</span>(</span>
<span id="cb2-81">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Values reflect the average across 3 years of data."</span>), </span>
<span id="cb2-82">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ref_symbols =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"c "</span>, </span>
<span id="cb2-83">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">inline =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, </span>
<span id="cb2-84">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" "</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-85">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_footer_lines</span>(</span>
<span id="cb2-86">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph_md</span>(</span>
<span id="cb2-87">      <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"^</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">*&amp;numsp;^*p* &lt; .05. ^</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">*</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">*&amp;numsp;^*p* &lt; .01."</span>))</span></code></pre></div></div>
<div id="tbl-710" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-710-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-357c476a{}.cl-355fc892{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-355fc89c{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-355fc8a6{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-355fc8a7{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-355fc8b0{font-family:'Times New Roman';font-size:6.6pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.3pt;}.cl-355fc8b1{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-35749d30{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:0;line-height: 1;background-color:transparent;}.cl-35749d3a{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:0;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-35749d44{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-35749d45{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:0;line-height: 1;background-color:transparent;}.cl-35749d46{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:0;padding-right:0;line-height: 1;background-color:transparent;}.cl-35749e02{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-3574e786{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e790{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e791{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e792{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e79a{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e79b{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e79c{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e79d{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7a4{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7a5{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7a6{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7ae{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7af{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7b0{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7b1{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7b8{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7b9{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7c2{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7c3{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7c4{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7c5{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7cc{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7cd{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7d6{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7d7{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7d8{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7e0{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7e1{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7e2{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7e3{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7e4{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7ea{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7eb{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7ec{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7ed{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7f4{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7f5{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7f6{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7fe{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e7ff{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e800{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e801{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e808{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e809{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e80a{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e80b{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e812{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e813{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e814{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e815{width:0.278in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e81c{width:1.244in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e81d{width:0.565in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e826{width:0.52in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e827{width:0.431in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e828{width:0.383in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e829{width:0.149in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e82a{width:0.278in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e82b{width:1.244in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e830{width:0.565in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e831{width:0.52in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e832{width:0.431in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e83a{width:0.383in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-3574e83b{width:0.149in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-357c476a"><thead><tr style="overflow-wrap:break-word;"><th colspan="2" class="cl-3574e786"><p class="cl-35749d30"><span class="cl-355fc892">Variable</span></p></th><th class="cl-3574e791"><p class="cl-35749d44"><span class="cl-355fc89c">n</span></p></th><th class="cl-3574e792"><p class="cl-35749d44"><span class="cl-355fc89c">M</span></p></th><th class="cl-3574e79a"><p class="cl-35749d44"><span class="cl-355fc89c">SD</span></p></th><th class="cl-3574e79b"><p class="cl-35749d45"><span class="cl-355fc892">1</span></p></th><th class="cl-3574e79c"><p class="cl-35749d44"><span class="cl-355fc892"></span></p></th><th class="cl-3574e79b"><p class="cl-35749d45"><span class="cl-355fc892">2</span></p></th><th class="cl-3574e79c"><p class="cl-35749d44"><span class="cl-355fc892"></span></p></th><th class="cl-3574e79b"><p class="cl-35749d45"><span class="cl-355fc892">3</span></p></th><th class="cl-3574e79c"><p class="cl-35749d44"><span class="cl-355fc892"></span></p></th><th class="cl-3574e79b"><p class="cl-35749d45"><span class="cl-355fc892">4</span></p></th><th class="cl-3574e79c"><p class="cl-35749d44"><span class="cl-355fc892"></span></p></th><th class="cl-3574e79b"><p class="cl-35749d45"><span class="cl-355fc892">5</span></p></th><th class="cl-3574e79c"><p class="cl-35749d44"><span class="cl-355fc892"></span></p></th><th class="cl-3574e79b"><p class="cl-35749d45"><span class="cl-355fc892">6</span></p></th><th class="cl-3574e79c"><p class="cl-35749d44"><span class="cl-355fc892"></span></p></th><th class="cl-3574e79b"><p class="cl-35749d45"><span class="cl-355fc892">7</span></p></th><th class="cl-3574e79c"><p class="cl-35749d44"><span class="cl-355fc892"></span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-3574e79d"><p class="cl-35749d46"><span class="cl-355fc892">1. </span></p></td><td class="cl-3574e7a4"><p class="cl-35749d3a"><span class="cl-355fc892">Internal–</span><br><span class="cl-355fc892">external</span><span class="cl-355fc892"> </span><span class="cl-355fc892">status</span><span class="cl-355fc8a6">a </span></p></td><td class="cl-3574e7a5"><p class="cl-35749d44"><span class="cl-355fc892">3,697</span></p></td><td class="cl-3574e7a6"><p class="cl-35749d44"><span class="cl-355fc892"> 0.43</span></p></td><td class="cl-3574e7ae"><p class="cl-35749d44"><span class="cl-355fc892">0.48</span></p></td><td class="cl-3574e7af"><p class="cl-35749d45"><span class="cl-355fc892">—</span></p></td><td class="cl-3574e7b0"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7af"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7b0"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7af"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7b0"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7af"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7b0"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7af"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7b0"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7af"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7b0"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7af"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7b0"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3574e7b1"><p class="cl-35749d46"><span class="cl-355fc892">2. </span></p></td><td class="cl-3574e7b8"><p class="cl-35749d3a"><span class="cl-355fc892">Manager</span><span class="cl-355fc892"> </span><span class="cl-355fc892">job</span><br><span class="cl-355fc892">performance</span></p></td><td class="cl-3574e7b9"><p class="cl-35749d44"><span class="cl-355fc892">2,134</span></p></td><td class="cl-3574e7c2"><p class="cl-35749d44"><span class="cl-355fc892"> 3.12</span></p></td><td class="cl-3574e7c3"><p class="cl-35749d44"><span class="cl-355fc892">0.61</span></p></td><td class="cl-3574e7c4"><p class="cl-35749d45"><span class="cl-355fc892">−.08</span></p></td><td class="cl-3574e7c5"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e7c4"><p class="cl-35749d45"><span class="cl-355fc892">—</span></p></td><td class="cl-3574e7c5"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c4"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c5"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c4"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c5"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c4"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c5"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c4"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c5"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c4"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7c5"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3574e7cc"><p class="cl-35749d46"><span class="cl-355fc892">3. </span></p></td><td class="cl-3574e7cd"><p class="cl-35749d3a"><span class="cl-355fc892">Starting</span><span class="cl-355fc892"> </span><span class="cl-355fc892">salary</span><span class="cl-355fc8a6">b </span></p></td><td class="cl-3574e7d6"><p class="cl-35749d44"><span class="cl-355fc892">3,697</span></p></td><td class="cl-3574e7d7"><p class="cl-35749d44"><span class="cl-355fc892"> 1.01</span></p></td><td class="cl-3574e7d8"><p class="cl-35749d44"><span class="cl-355fc892">0.27</span></p></td><td class="cl-3574e7e0"><p class="cl-35749d45"><span class="cl-355fc892">.47</span></p></td><td class="cl-3574e7e1"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e7e0"><p class="cl-35749d45"><span class="cl-355fc892">−.02</span></p></td><td class="cl-3574e7e1"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e0"><p class="cl-35749d45"><span class="cl-355fc892">—</span></p></td><td class="cl-3574e7e1"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e0"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e1"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e0"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e1"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e0"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e1"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e0"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7e1"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3574e7e2"><p class="cl-35749d46"><span class="cl-355fc892">4. </span></p></td><td class="cl-3574e7e3"><p class="cl-35749d3a"><span class="cl-355fc892">Subsequent</span><br><span class="cl-355fc892">promotion</span></p></td><td class="cl-3574e7e4"><p class="cl-35749d44"><span class="cl-355fc892">3,697</span></p></td><td class="cl-3574e7ea"><p class="cl-35749d44"><span class="cl-355fc892"> 0.33</span></p></td><td class="cl-3574e7eb"><p class="cl-35749d44"><span class="cl-355fc892">0.47</span></p></td><td class="cl-3574e7ec"><p class="cl-35749d45"><span class="cl-355fc892">.08</span></p></td><td class="cl-3574e7ed"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e7ec"><p class="cl-35749d45"><span class="cl-355fc892">−.07</span></p></td><td class="cl-3574e7ed"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e7ec"><p class="cl-35749d45"><span class="cl-355fc892">.05</span></p></td><td class="cl-3574e7ed"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e7ec"><p class="cl-35749d45"><span class="cl-355fc892">—</span></p></td><td class="cl-3574e7ed"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7ec"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7ed"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7ec"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7ed"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7ec"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e7ed"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3574e7f4"><p class="cl-35749d46"><span class="cl-355fc892">5. </span></p></td><td class="cl-3574e7f5"><p class="cl-35749d3a"><span class="cl-355fc892">Organization</span><br><span class="cl-355fc892">tenure</span></p></td><td class="cl-3574e7f6"><p class="cl-35749d44"><span class="cl-355fc892">3,697</span></p></td><td class="cl-3574e7fe"><p class="cl-35749d44"><span class="cl-355fc892"> 6.51</span></p></td><td class="cl-3574e7ff"><p class="cl-35749d44"><span class="cl-355fc892">6.65</span></p></td><td class="cl-3574e800"><p class="cl-35749d45"><span class="cl-355fc892">−.27</span></p></td><td class="cl-3574e801"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e800"><p class="cl-35749d45"><span class="cl-355fc892">.08</span></p></td><td class="cl-3574e801"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e800"><p class="cl-35749d45"><span class="cl-355fc892">.03</span></p></td><td class="cl-3574e801"><p class="cl-35749d3a"><span class="cl-355fc8a6">*</span></p></td><td class="cl-3574e800"><p class="cl-35749d45"><span class="cl-355fc892">.12</span></p></td><td class="cl-3574e801"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e800"><p class="cl-35749d45"><span class="cl-355fc892">—</span></p></td><td class="cl-3574e801"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e800"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e801"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e800"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e801"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3574e808"><p class="cl-35749d46"><span class="cl-355fc892">6. </span></p></td><td class="cl-3574e809"><p class="cl-35749d3a"><span class="cl-355fc892">Unit</span><span class="cl-355fc892"> </span><span class="cl-355fc892">service</span><br><span class="cl-355fc892">performance</span><span class="cl-355fc8a6">c </span></p></td><td class="cl-3574e80a"><p class="cl-35749d44"><span class="cl-355fc892">3,505</span></p></td><td class="cl-3574e80b"><p class="cl-35749d44"><span class="cl-355fc892">84.92</span></p></td><td class="cl-3574e812"><p class="cl-35749d44"><span class="cl-355fc892">6.92</span></p></td><td class="cl-3574e813"><p class="cl-35749d45"><span class="cl-355fc892">.25</span></p></td><td class="cl-3574e814"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e813"><p class="cl-35749d45"><span class="cl-355fc892">−.35</span></p></td><td class="cl-3574e814"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e813"><p class="cl-35749d45"><span class="cl-355fc892">.25</span></p></td><td class="cl-3574e814"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e813"><p class="cl-35749d45"><span class="cl-355fc892">.08</span></p></td><td class="cl-3574e814"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e813"><p class="cl-35749d45"><span class="cl-355fc892">.02</span></p></td><td class="cl-3574e814"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e813"><p class="cl-35749d45"><span class="cl-355fc892">—</span></p></td><td class="cl-3574e814"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e813"><p class="cl-35749d45"><span class="cl-355fc892"></span></p></td><td class="cl-3574e814"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-3574e815"><p class="cl-35749d46"><span class="cl-355fc892">7. </span></p></td><td class="cl-3574e81c"><p class="cl-35749d3a"><span class="cl-355fc892">Unit</span><span class="cl-355fc892"> </span><span class="cl-355fc892">financial</span><br><span class="cl-355fc892">performance</span><span class="cl-355fc8a6">c </span></p></td><td class="cl-3574e81d"><p class="cl-35749d44"><span class="cl-355fc892">  694</span></p></td><td class="cl-3574e826"><p class="cl-35749d44"><span class="cl-355fc892">42.29</span></p></td><td class="cl-3574e827"><p class="cl-35749d44"><span class="cl-355fc892">5.84</span></p></td><td class="cl-3574e828"><p class="cl-35749d45"><span class="cl-355fc892">−.02</span></p></td><td class="cl-3574e829"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e828"><p class="cl-35749d45"><span class="cl-355fc892">.07</span></p></td><td class="cl-3574e829"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e828"><p class="cl-35749d45"><span class="cl-355fc892">.05</span></p></td><td class="cl-3574e829"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e828"><p class="cl-35749d45"><span class="cl-355fc892">−.09</span></p></td><td class="cl-3574e829"><p class="cl-35749d3a"><span class="cl-355fc8a6">*</span></p></td><td class="cl-3574e828"><p class="cl-35749d45"><span class="cl-355fc892">−.01</span></p></td><td class="cl-3574e829"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td><td class="cl-3574e828"><p class="cl-35749d45"><span class="cl-355fc892">.11</span></p></td><td class="cl-3574e829"><p class="cl-35749d3a"><span class="cl-355fc8a6">**</span></p></td><td class="cl-3574e828"><p class="cl-35749d45"><span class="cl-355fc892">—</span></p></td><td class="cl-3574e829"><p class="cl-35749d3a"><span class="cl-355fc892"></span></p></td></tr></tbody><tfoot><tr style="overflow-wrap:break-word;"><td colspan="19" class="cl-3574e82a"><p class="cl-35749e02"><span class="cl-355fc8a7"></span><span class="cl-355fc8b0">a </span><span class="cl-355fc8a7">0 = internal hires and 1 = external hires.</span><span class="cl-355fc8a7"> </span><span class="cl-355fc8b0">b </span><span class="cl-355fc8a7">A linear transformation was performed on the starting salary values to maintain pay practice confidentiality. The standard deviation (0.27) can be interpreted as 27% of the average starting salary for all managers. Thus, ±1 SD includes a range of starting salaries from 73% (i.e., 1.00 – 0.27) to 127% (i.e., 1.00 + 0.27) of the average starting salaries for all managers.</span><span class="cl-355fc8a7"> </span><span class="cl-355fc8b0">c </span><span class="cl-355fc8a7">Values reflect the average across 3 years of data.</span><span class="cl-355fc8a7"> </span></p></td></tr><tr style="overflow-wrap:break-word;"><td colspan="19" class="cl-3574e82a"><p class="cl-35749e02"><span class="cl-355fc8b0">* </span><span class="cl-355fc8b1">p</span><span class="cl-355fc8a7"> </span><span class="cl-355fc8a7">&lt;</span><span class="cl-355fc8a7"> </span><span class="cl-355fc8a7">.05.</span><span class="cl-355fc8a7"> </span><span class="cl-355fc8b0">** </span><span class="cl-355fc8b1">p</span><span class="cl-355fc8a7"> </span><span class="cl-355fc8a7">&lt;</span><span class="cl-355fc8a7"> </span><span class="cl-355fc8a7">.01.</span></p></td></tr></tfoot></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-710-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Descriptive Statistics and Correlations for Study Variables</p>
</div>
</figcaption>
</figure>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.10 in {R} with Apa7},
  date = {2025-09-20},
  url = {https://wjschne.github.io/posts/apatables/apa710.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 20). Recreating APA Manual Table 7.10
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa710.html">https://wjschne.github.io/posts/apatables/apa710.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa710.html</guid>
  <pubDate>Sat, 20 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.9 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa709.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-9-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 9 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Use custom <code>column_formats</code></li>
<li>Use <code>footnote</code></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-79" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-79-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.9</p>
</div>
</figcaption>
<div aria-describedby="fig-79-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table79.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>Setting up the data was harder than creating the table. Once the data were ready, I needed to set the rounding of the variables and alter the column header of the <code>F</code> column.</p>
<p>The <a href="https://wjschne.github.io/apa7/reference/column_formats.html"><code>column_formats</code></a> function creates a modifiable copy of the default column formatters. After creating a <code>column_formats</code> object, I set the rounding accuracy of column <code>p</code> to .001 using [<code>purrr::partial</code>], which creates a copy of a function with new defaults.</p>
<p>I also set the header of the <code>F</code> column to <code>*F* ratio</code>.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="Means with different subscripts differ at the *p*&nbsp;=&nbsp;.05 level by Duncan’s new multiple range test." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-79</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Analyses for the Interaction of Professor </span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Type and Timing of Response on Perceptions </span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           of Professor Traits"</span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: "Means with different subscripts differ at </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|            the *p*&amp;nbsp;=&amp;nbsp;.05 level by Duncan’s </span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|            new multiple range test."</span></span>
<span id="cb2-9"></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Descriptives</span></span>
<span id="cb2-11">d_mean <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb2-12"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Professor trait     Semester    Type        Mean    Subscript</span></span>
<span id="cb2-13"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Dedicated           End         Typical     4.706   b        </span></span>
<span id="cb2-14"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Easy to understand  End         Typical     3.059   c        </span></span>
<span id="cb2-15"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Fair                End         Typical     4.000   b        </span></span>
<span id="cb2-16"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Manipulative        End         Typical     1.471   a        </span></span>
<span id="cb2-17"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Insensitive         End         Typical     2.059   b        </span></span>
<span id="cb2-18"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Dedicated           End         Effective   4.789   b        </span></span>
<span id="cb2-19"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Easy to understand  End         Effective   4.895   a        </span></span>
<span id="cb2-20"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Fair                End         Effective   4.263   b        </span></span>
<span id="cb2-21"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Manipulative        End         Effective   1.632   a        </span></span>
<span id="cb2-22"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Insensitive         End         Effective   1.526   c        </span></span>
<span id="cb2-23"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Dedicated           Start       Typical     4.154   c        </span></span>
<span id="cb2-24"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Easy to understand  Start       Typical     3.231   c        </span></span>
<span id="cb2-25"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Fair                Start       Typical     3.731   c        </span></span>
<span id="cb2-26"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Manipulative        Start       Typical     1.731   a        </span></span>
<span id="cb2-27"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Insensitive         Start       Typical     2.538   a        </span></span>
<span id="cb2-28"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Dedicated           Start       Effective   5.000   a        </span></span>
<span id="cb2-29"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Easy to understand  Start       Effective   4.429   b        </span></span>
<span id="cb2-30"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Fair                Start       Effective   4.667   a        </span></span>
<span id="cb2-31"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Manipulative        Start       Effective   1.238   a        </span></span>
<span id="cb2-32"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Insensitive         Start       Effective   1.143   c"</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-33">    readr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read_tsv</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-34">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>()</span>
<span id="cb2-35"></span>
<span id="cb2-36"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Statistics</span></span>
<span id="cb2-37">d_test <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb2-38"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Professor trait     F       p       eta2</span></span>
<span id="cb2-39"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Dedicated           19.26   0.001   0.15</span></span>
<span id="cb2-40"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Easy to understand  5.01    0.028   0.03</span></span>
<span id="cb2-41"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Fair                5.75    0.019   0.06</span></span>
<span id="cb2-42"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Manipulative        3.92    0.051   0.05</span></span>
<span id="cb2-43"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Insensitive         8.12    0.006   0.06"</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-44">  readr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read_tsv</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-45">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">suppressMessages</span>() </span>
<span id="cb2-46"></span>
<span id="cb2-47"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-48">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_mean <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-49">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Semester =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(</span>
<span id="cb2-50">    Semester, </span>
<span id="cb2-51">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" of semester</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\\n</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">professor type"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-52">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Mean =</span> scales<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">number</span>(Mean, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>),</span>
<span id="cb2-53">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Subscript =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"~"</span>, Subscript, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"~"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-54">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(Mean, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Mean, Subscript), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-55">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unite</span>(Semester, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Semester, Type)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-56">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> Semester, </span>
<span id="cb2-57">              <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> Mean) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-58">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">left_join</span>(d_test, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">join_by</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Professor trait</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>)) </span>
<span id="cb2-59"></span>
<span id="cb2-60"></span>
<span id="cb2-61"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># custom formatter</span></span>
<span id="cb2-62">my_formatter <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span>  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">column_formats</span>()</span>
<span id="cb2-63"></span>
<span id="cb2-64"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">## change p column's accuracy to 0.001</span></span>
<span id="cb2-65">my_formatter<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>p<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">@</span>formatter <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> my_formatter<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>p<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">@</span>formatter <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-66">  purrr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">partial</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>)</span>
<span id="cb2-67"></span>
<span id="cb2-68"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">## set F column header to "*F* ratio"</span></span>
<span id="cb2-69">my_formatter<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">F</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">@</span>header <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"*F* ratio"</span></span>
<span id="cb2-70"></span>
<span id="cb2-71"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-72"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(d_formatted, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">column_formats =</span> my_formatter) </span>
<span id="cb2-73"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-79" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-apa-note="Means with different subscripts differ at the *p*&nbsp;=&nbsp;.05 level by Duncan’s new multiple range test." data-tblnum="1" prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-79-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-aee8d8f8{}.cl-aecbbf16{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aecbbf34{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aecbbf35{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aecbbf36{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-aecbbf3e{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;top:3.6pt;}.cl-aee13c56{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-aee13c60{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-aee1860c{width:1.664in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18616{width:0.748in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18620{width:0.871in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18621{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18622{width:0.676in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee1862a{width:0.486in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee1862b{width:0.385in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18634{width:1.664in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18635{width:0.748in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18636{width:0.871in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee1863e{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee1863f{width:0.676in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18640{width:0.486in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18641{width:0.385in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18648{width:1.664in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18649{width:0.748in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee1864a{width:0.871in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18652{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18653{width:0.676in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18654{width:0.486in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aee18655{width:0.385in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-aee8d8f8"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-aee1860c"><p class="cl-aee13c56"><span class="cl-aecbbf16">Professor</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">trait</span></p></th><th colspan="2" class="cl-aee18616"><p class="cl-aee13c56"><span class="cl-aecbbf16">End</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">of</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">semester</span><br><span class="cl-aecbbf16">professor</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">type</span></p></th><th rowspan="2" class="cl-aee18621"><p class="cl-aee13c56"><span class="cl-aecbbf34"></span></p></th><th colspan="2" class="cl-aee18616"><p class="cl-aee13c56"><span class="cl-aecbbf16">Start</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">of</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">semester</span><br><span class="cl-aecbbf16">professor</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">type</span></p></th><th rowspan="2" class="cl-aee18622"><p class="cl-aee13c56"><span class="cl-aecbbf35">F</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">ratio</span></p></th><th rowspan="2" class="cl-aee1862a"><p class="cl-aee13c56"><span class="cl-aecbbf35">p</span></p></th><th rowspan="2" class="cl-aee1862b"><p class="cl-aee13c56"><span class="cl-aecbbf35">η</span><span class="cl-aecbbf36">2</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-aee18616"><p class="cl-aee13c56"><span class="cl-aecbbf16">Typical</span></p></th><th class="cl-aee18620"><p class="cl-aee13c56"><span class="cl-aecbbf16">Effective</span></p></th><th class="cl-aee18616"><p class="cl-aee13c56"><span class="cl-aecbbf16">Typical</span></p></th><th class="cl-aee18620"><p class="cl-aee13c56"><span class="cl-aecbbf16">Effective</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-aee18634"><p class="cl-aee13c60"><span class="cl-aecbbf16">Dedicated</span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.706</span><span class="cl-aecbbf3e">b</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.789</span><span class="cl-aecbbf3e">b</span></p></td><td class="cl-aee1863e"><p class="cl-aee13c56"><span class="cl-aecbbf34"></span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.154</span><span class="cl-aecbbf3e">c</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">5.000</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee1863f"><p class="cl-aee13c56"><span class="cl-aecbbf16">19.26</span></p></td><td class="cl-aee18640"><p class="cl-aee13c56"><span class="cl-aecbbf16">.001</span></p></td><td class="cl-aee18641"><p class="cl-aee13c56"><span class="cl-aecbbf16">.15</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aee18634"><p class="cl-aee13c60"><span class="cl-aecbbf16">Easy</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">to</span><span class="cl-aecbbf16"> </span><span class="cl-aecbbf16">understand</span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">3.059</span><span class="cl-aecbbf3e">c</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.895</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee1863e"><p class="cl-aee13c56"><span class="cl-aecbbf34"></span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">3.231</span><span class="cl-aecbbf3e">c</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.429</span><span class="cl-aecbbf3e">b</span></p></td><td class="cl-aee1863f"><p class="cl-aee13c56"><span class="cl-aecbbf16"> 5.01</span></p></td><td class="cl-aee18640"><p class="cl-aee13c56"><span class="cl-aecbbf16">.028</span></p></td><td class="cl-aee18641"><p class="cl-aee13c56"><span class="cl-aecbbf16">.03</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aee18634"><p class="cl-aee13c60"><span class="cl-aecbbf16">Fair</span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.000</span><span class="cl-aecbbf3e">b</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.263</span><span class="cl-aecbbf3e">b</span></p></td><td class="cl-aee1863e"><p class="cl-aee13c56"><span class="cl-aecbbf34"></span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">3.731</span><span class="cl-aecbbf3e">c</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">4.667</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee1863f"><p class="cl-aee13c56"><span class="cl-aecbbf16"> 5.75</span></p></td><td class="cl-aee18640"><p class="cl-aee13c56"><span class="cl-aecbbf16">.019</span></p></td><td class="cl-aee18641"><p class="cl-aee13c56"><span class="cl-aecbbf16">.06</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aee18634"><p class="cl-aee13c60"><span class="cl-aecbbf16">Manipulative</span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">1.471</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">1.632</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee1863e"><p class="cl-aee13c56"><span class="cl-aecbbf34"></span></p></td><td class="cl-aee18635"><p class="cl-aee13c56"><span class="cl-aecbbf16">1.731</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee18636"><p class="cl-aee13c56"><span class="cl-aecbbf16">1.238</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee1863f"><p class="cl-aee13c56"><span class="cl-aecbbf16"> 3.92</span></p></td><td class="cl-aee18640"><p class="cl-aee13c56"><span class="cl-aecbbf16">.051</span></p></td><td class="cl-aee18641"><p class="cl-aee13c56"><span class="cl-aecbbf16">.05</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aee18648"><p class="cl-aee13c60"><span class="cl-aecbbf16">Insensitive</span></p></td><td class="cl-aee18649"><p class="cl-aee13c56"><span class="cl-aecbbf16">2.059</span><span class="cl-aecbbf3e">b</span></p></td><td class="cl-aee1864a"><p class="cl-aee13c56"><span class="cl-aecbbf16">1.526</span><span class="cl-aecbbf3e">c</span></p></td><td class="cl-aee18652"><p class="cl-aee13c56"><span class="cl-aecbbf34"></span></p></td><td class="cl-aee18649"><p class="cl-aee13c56"><span class="cl-aecbbf16">2.538</span><span class="cl-aecbbf3e">a</span></p></td><td class="cl-aee1864a"><p class="cl-aee13c56"><span class="cl-aecbbf16">1.143</span><span class="cl-aecbbf3e">c</span></p></td><td class="cl-aee18653"><p class="cl-aee13c56"><span class="cl-aecbbf16"> 8.12</span></p></td><td class="cl-aee18654"><p class="cl-aee13c56"><span class="cl-aecbbf16">.006</span></p></td><td class="cl-aee18655"><p class="cl-aee13c56"><span class="cl-aecbbf16">.06</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-79-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Analyses for the Interaction of Professor Type and Timing of Response on Perceptions of Professor Traits</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. Means with different subscripts differ at the <em>p</em>&nbsp;=&nbsp;.05 level by Duncan’s new multiple range test.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.9 in {R} with Apa7},
  date = {2025-09-19},
  url = {https://wjschne.github.io/posts/apatables/apa709.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 19). Recreating APA Manual Table 7.9
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa709.html">https://wjschne.github.io/posts/apatables/apa709.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa709.html</guid>
  <pubDate>Fri, 19 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.8 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa708.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-8-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 8 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Pre-formatting columns and turning off auto-formatting</li>
<li>Intentional use of inconsistent rounding within columns</li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(signs)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-7">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-78" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-78-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.8</p>
</div>
</figcaption>
<div aria-describedby="fig-78-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table78.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>If it were simply a matter of copying the text into the table, this would be fairly simple. However, in a real analysis, the text does not come pre-formatted. Thus, I simulated the data first, and then proceeded as if I had to conduct the t-tests and report the results from scratch.</p>
<p>For this one, the trick is to get the rounding right for the means and standard deviations. Each row is on a different scale, and needs different rounding rules. The easiest way I could do this was to first apply regular rounding with <code>round</code> and then round to a set number of significant digits with <code>formatC</code>.</p>
<p>Normally, I would respect the direction of the effect, but Figure&nbsp;1 makes <em>t</em> and Cohen’s <em>d</em> positive for all three rows despite the change in direction for the middle row.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="For each participant, the logistic function was fit to target fixations separately. The maximum asymptote is the asymptotic degree of looking at the end of the time course of fixations. The crossover point is the point in time the function crosses the midway point between peak and baseline. The slope represents the rate of change in the function measured at the crossover. Mean parameter values for each of the analyses are shown for the 9-year-olds (*n*&nbsp;=&nbsp;24) and 16-year-olds (*n*&nbsp;=&nbsp;18), as well as the results of t tests (assuming unequal variance) comparing the parameter estimates between the two ages." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-78</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: Results of Curve-Fitting Analysis Examining the </span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|          Time Course of Fixations to the Target</span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: "For each participant, the logistic function was </span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           fit to target fixations separately. The maximum </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           asymptote is the asymptotic degree of looking at </span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           the end of the time course of fixations. The </span></span>
<span id="cb2-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           crossover point is the point in time the function </span></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           crosses the midway point between peak and baseline. </span></span>
<span id="cb2-11"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           The slope represents the rate of change in the </span></span>
<span id="cb2-12"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           function measured at the crossover. Mean parameter </span></span>
<span id="cb2-13"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           values for each of the analyses are shown for the </span></span>
<span id="cb2-14"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           9-year-olds (*n*&amp;nbsp;=&amp;nbsp;24) and 16-year-olds (*n*&amp;nbsp;=&amp;nbsp;18), </span></span>
<span id="cb2-15"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           as well as the results of t tests (assuming unequal </span></span>
<span id="cb2-16"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           variance) comparing the parameter estimates between </span></span>
<span id="cb2-17"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           the two ages."</span></span>
<span id="cb2-18"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">10</span>)</span>
<span id="cb2-19"></span>
<span id="cb2-20"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-21">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> tibble<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tribble</span>(</span>
<span id="cb2-22">                      <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Logistic Parameter</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Age,    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>M,    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>SD,</span>
<span id="cb2-23">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Maximum asymptote, proportion"</span>,   <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>L, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.843</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.135</span>,</span>
<span id="cb2-24">                       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Crossover, in ms"</span>,   <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>L,   <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">759</span>,     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">87</span>,</span>
<span id="cb2-25">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Slope, as change in proportion per ms"</span>,   <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>L, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.001</span>,  .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0002</span>,</span>
<span id="cb2-26">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Maximum asymptote, proportion"</span>,  <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">16</span>L, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.877</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.082</span>,</span>
<span id="cb2-27">                       <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Crossover, in ms"</span>,  <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">16</span>L,   <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">694</span>,     <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">42</span>,</span>
<span id="cb2-28">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Slope, as change in proportion per ms"</span>,  <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">16</span>L, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.002</span>,  .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0002</span></span>
<span id="cb2-29">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-30">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(Age <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>L, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">24</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-31">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">x =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pmap</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(M, SD, n), </span>
<span id="cb2-32">                  \(M, SD, n) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rnorm</span>(n, M, SD))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-33">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(M,SD, n)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-34">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(x) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-35">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Logistic Parameter</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>) </span>
<span id="cb2-36"></span>
<span id="cb2-37"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Analyze data</span></span>
<span id="cb2-38">d_analysis <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-39">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">t_fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, \(d) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">t.test</span>(</span>
<span id="cb2-40">    x <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Age, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)),</span>
<span id="cb2-41">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">cohen =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, \(d) effectsize<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cohens_d</span>(</span>
<span id="cb2-42">           x <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Age, </span>
<span id="cb2-43">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-44">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(cohen)</span>
<span id="cb2-45"></span>
<span id="cb2-46"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-47">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_analysis <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-48">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">starts_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"CI"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-49">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">t(40)</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(t_fit, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"statistic"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-50">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">abs</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-51">           <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>), </span>
<span id="cb2-52">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(t_fit, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p.value"</span>),</span>
<span id="cb2-53">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.before =</span> Cohens_d) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-54">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>t_fit) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-55">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pmap</span>(</span>
<span id="cb2-56">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">d =</span> data, </span>
<span id="cb2-57">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">round_digits =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>),</span>
<span id="cb2-58">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sig_digits =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)), </span>
<span id="cb2-59">    \(d, round_digits, sig_digits) {</span>
<span id="cb2-60">      d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-61">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summarise</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">M =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mean</span>(x), </span>
<span id="cb2-62">                  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">SD =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sd</span>(x),</span>
<span id="cb2-63">                  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Age) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-64">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(M, SD), \(x) {</span>
<span id="cb2-65">          <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">round</span>(x, round_digits) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-66">            <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">formatC</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">digits =</span> sig_digits) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-67">            <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">trimws</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-68">            <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_remove</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"^0"</span>)</span>
<span id="cb2-69">          }))</span>
<span id="cb2-70">  })) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-71">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(data) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-72">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Age =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(Age, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"-year-olds"</span>), </span>
<span id="cb2-73">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Cohens_d =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">signs</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">abs</span>(Cohens_d), </span>
<span id="cb2-74">                                 <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-75">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider_name_first</span>(</span>
<span id="cb2-76">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(M, SD), </span>
<span id="cb2-77">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> Age) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-78">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Logistic Parameter</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, </span>
<span id="cb2-79">         <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">contains</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"olds"</span>), </span>
<span id="cb2-80">         <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>()) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-81">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Logistic Parameter</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Logistic Parameter</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>)) </span>
<span id="cb2-82"></span>
<span id="cb2-83"></span>
<span id="cb2-84"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-85">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-86">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(</span>
<span id="cb2-87">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">no_format_columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">contains</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"olds"</span>),</span>
<span id="cb2-88">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">column_formats =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">column_formats</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>))</span>
<span id="cb2-89"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-78" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" prefix="" data-apa-note="For each participant, the logistic function was fit to target fixations separately. The maximum asymptote is the asymptotic degree of looking at the end of the time course of fixations. The crossover point is the point in time the function crosses the midway point between peak and baseline. The slope represents the rate of change in the function measured at the crossover. Mean parameter values for each of the analyses are shown for the 9-year-olds (*n*&nbsp;=&nbsp;24) and 16-year-olds (*n*&nbsp;=&nbsp;18), as well as the results of t tests (assuming unequal variance) comparing the parameter estimates between the two ages.">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-78-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-2cbda26e{}.cl-2ca1aa8c{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2ca1aaa0{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2ca1aaa1{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2cb6d038{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-2cb6d042{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-2cb7170a{width:2.512in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71714{width:0.436in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71715{width:0.527in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71716{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb7171e{width:0.617in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb7171f{width:0.538in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71720{width:0.857in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71728{width:2.512in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71729{width:0.436in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb7172a{width:0.527in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71732{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb7173c{width:0.617in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb7173d{width:0.538in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb7173e{width:0.857in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb7173f{width:2.512in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71746{width:0.436in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71747{width:0.527in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71748{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71750{width:0.617in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71751{width:0.538in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2cb71752{width:0.857in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-2cbda26e"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-2cb7170a"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">Logistic</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">Parameter</span></p></th><th colspan="2" class="cl-2cb71714"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">9-year-olds</span></p></th><th rowspan="2" class="cl-2cb71716"><p class="cl-2cb6d038"><span class="cl-2ca1aaa0"></span></p></th><th colspan="2" class="cl-2cb71714"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">16-year-olds</span></p></th><th rowspan="2" class="cl-2cb7171e"><p class="cl-2cb6d038"><span class="cl-2ca1aaa1">t</span><span class="cl-2ca1aa8c">(40)</span></p></th><th rowspan="2" class="cl-2cb7171f"><p class="cl-2cb6d038"><span class="cl-2ca1aaa1">p</span></p></th><th rowspan="2" class="cl-2cb71720"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">Cohen’s</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aaa1">d</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-2cb71714"><p class="cl-2cb6d038"><span class="cl-2ca1aaa1">M</span></p></th><th class="cl-2cb71715"><p class="cl-2cb6d038"><span class="cl-2ca1aaa1">SD</span></p></th><th class="cl-2cb71714"><p class="cl-2cb6d038"><span class="cl-2ca1aaa1">M</span></p></th><th class="cl-2cb71715"><p class="cl-2cb6d038"><span class="cl-2ca1aaa1">SD</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-2cb71728"><p class="cl-2cb6d042"><span class="cl-2ca1aa8c">Maximum</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">asymptote,</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">proportion</span></p></td><td class="cl-2cb71729"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.805</span></p></td><td class="cl-2cb7172a"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.127</span></p></td><td class="cl-2cb71732"><p class="cl-2cb6d038"><span class="cl-2ca1aaa0"></span></p></td><td class="cl-2cb71729"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.882</span></p></td><td class="cl-2cb7172a"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.086</span></p></td><td class="cl-2cb7173c"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c"> 2.325</span></p></td><td class="cl-2cb7173d"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c"> .025</span></p></td><td class="cl-2cb7173e"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">0.687</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2cb71728"><p class="cl-2cb6d042"><span class="cl-2ca1aa8c">Crossover,</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">in</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">ms</span></p></td><td class="cl-2cb71729"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">722</span></p></td><td class="cl-2cb7172a"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">70</span></p></td><td class="cl-2cb71732"><p class="cl-2cb6d038"><span class="cl-2ca1aaa0"></span></p></td><td class="cl-2cb71729"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">691</span></p></td><td class="cl-2cb7172a"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">39</span></p></td><td class="cl-2cb7173c"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c"> 1.802</span></p></td><td class="cl-2cb7173d"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c"> .080</span></p></td><td class="cl-2cb7173e"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">0.521</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2cb7173f"><p class="cl-2cb6d042"><span class="cl-2ca1aa8c">Slope,</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">as</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">change</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">in</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">proportion</span><br><span class="cl-2ca1aa8c">&nbsp;&nbsp;&nbsp;&nbsp;per</span><span class="cl-2ca1aa8c"> </span><span class="cl-2ca1aa8c">ms</span></p></td><td class="cl-2cb71746"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.001</span></p></td><td class="cl-2cb71747"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.0002</span></p></td><td class="cl-2cb71748"><p class="cl-2cb6d038"><span class="cl-2ca1aaa0"></span></p></td><td class="cl-2cb71746"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.002</span></p></td><td class="cl-2cb71747"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">.0002</span></p></td><td class="cl-2cb71750"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">18.671</span></p></td><td class="cl-2cb71751"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">&lt;.001</span></p></td><td class="cl-2cb71752"><p class="cl-2cb6d038"><span class="cl-2ca1aa8c">5.748</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-78-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Results of Curve-Fitting Analysis Examining the Time Course of Fixations to the Target</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. For each participant, the logistic function was fit to target fixations separately. The maximum asymptote is the asymptotic degree of looking at the end of the time course of fixations. The crossover point is the point in time the function crosses the midway point between peak and baseline. The slope represents the rate of change in the function measured at the crossover. Mean parameter values for each of the analyses are shown for the 9-year-olds (<em>n</em>&nbsp;=&nbsp;24) and 16-year-olds (<em>n</em>&nbsp;=&nbsp;18), as well as the results of t tests (assuming unequal variance) comparing the parameter estimates between the two ages.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.8 in {R} with Apa7},
  date = {2025-09-18},
  url = {https://wjschne.github.io/posts/apatables/apa708.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 18). Recreating APA Manual Table 7.8
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa708.html">https://wjschne.github.io/posts/apatables/apa708.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa708.html</guid>
  <pubDate>Thu, 18 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.7 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa707.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-7-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 7 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Convert p-values to stars and append them to chi-square statistic with <code>add_star_column</code></li>
<li>Add p-value note with <code>flextable::add_footer_lines</code></li>
<li>Hanging indent with <code>hanging_indent</code></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-77" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" prefix="" data-fignum="1" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-77-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.7</p>
</div>
</figcaption>
<div aria-describedby="fig-77-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table77.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>I could have just copied the table directly, but I decided to illustrate how one might calculate percentages and chi-square tests results from the sample sizes.</p>
<div class="cell FigureWithoutNote page-columns page-full" prefix="" data-tblnum="1" data-custom-style="FigureWithoutNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-77</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: "Frequencies and Chi-Square Results for </span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Belief Perseverance in Attitudes Toward </span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Celebrities (*N*&amp;nbsp;=&amp;nbsp;201)"</span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make data</span></span>
<span id="cb2-7">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb2-8"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Source                          Do not believe  Unsure  Believe   </span></span>
<span id="cb2-9"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Media reports                   17              140     44</span></span>
<span id="cb2-10"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Family reports                  47              106     48</span></span>
<span id="cb2-11"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Friends' reports                42              112     47</span></span>
<span id="cb2-12"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Caught by media                 19              82      100</span></span>
<span id="cb2-13"><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">Celebrity display of behavior   12              61      128"</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-14">  readr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read_tsv</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">show_col_types =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)</span>
<span id="cb2-15"></span>
<span id="cb2-16"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-17">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-18">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_longer</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Source), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_to =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"n"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">name =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fct_inorder</span>(name)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-20">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">%</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> scales<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">number</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">100</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">/</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sum</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">01</span>),</span>
<span id="cb2-21">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Source) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-22">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Source, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Source) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-23">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-24">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(data, \(dd) {</span>
<span id="cb2-25">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">chisq.test</span>(dd<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>n)</span>
<span id="cb2-26">    }),</span>
<span id="cb2-27">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">chisq =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(fit, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"statistic"</span>),</span>
<span id="cb2-28">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(fit, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p.value"</span>)</span>
<span id="cb2-29">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-30">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>fit) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-31">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(data) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-32">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider_name_first</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values_from =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">%</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-33">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">relocate</span>(chisq, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.after =</span> dplyr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">last_col</span>()) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-34">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Source, align_chr)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-35">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Source =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hanging_indent</span>(Source, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-36">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_star_column</span>(chisq, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">alpha =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">merge =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-37">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>p) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-38">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rename</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">&amp;chi;^2^(2)</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">`</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> chisq)</span>
<span id="cb2-39"></span>
<span id="cb2-40"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-41">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-42">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">table_width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">layout =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fixed"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-43">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.6</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">65</span>,.<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">65</span>, .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">05</span>), <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>)[<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>], .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-44">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_footer_lines</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">values =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_paragraph_md</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"^</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\\</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">*^*p* &lt; .001"</span>))</span>
<span id="cb2-45"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-77" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" prefix="" data-tblnum="1">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-77-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-aa65ceae{}.cl-aa47f456{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aa47f474{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aa47f475{font-family:'Times New Roman';font-size:7.2pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.6pt;}.cl-aa47f47e{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aa47f47f{font-family:'Times New Roman';font-size:6.6pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;position: relative;bottom:3.3pt;}.cl-aa47f480{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aa47f488{font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-aa5e7bea{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-aa5e7bf4{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:8pt;padding-top:8pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-aa5e7bf5{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-aa5ec0e6{width:1.6in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec0f0{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec0fa{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec0fb{width:0.9in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec104{width:1.6in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec105{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec106{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec10e{width:0.9in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec10f{width:1.6in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec110{width:0.65in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec111{width:0.05in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec118{width:0.9in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec119{width:1.6in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec11a{width:0.65in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec11b{width:0.05in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-aa5ec122{width:0.9in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-aa65ceae"><thead><tr style="overflow-wrap:break-word;"><th rowspan="2" class="cl-aa5ec0e6"><p class="cl-aa5e7bea"><span class="cl-aa47f456">Source</span></p></th><th colspan="2" class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f456">Do</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">not</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">believe</span></p></th><th rowspan="2" class="cl-aa5ec0fa"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></th><th colspan="2" class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f456">Unsure</span></p></th><th rowspan="2" class="cl-aa5ec0fa"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></th><th colspan="2" class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f456">Believe</span></p></th><th rowspan="2" class="cl-aa5ec0fb"><p class="cl-aa5e7bea"><span class="cl-aa47f456">χ</span><span class="cl-aa47f475">2</span><span class="cl-aa47f456">(2)</span></p></th></tr><tr style="overflow-wrap:break-word;"><th class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f47e">n</span></p></th><th class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f456">%</span></p></th><th class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f47e">n</span></p></th><th class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f456">%</span></p></th><th class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f47e">n</span></p></th><th class="cl-aa5ec0f0"><p class="cl-aa5e7bea"><span class="cl-aa47f456">%</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-aa5ec104"><p class="cl-aa5e7bf4"><span class="cl-aa47f456">Media</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">reports</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">17</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 8.46</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">140</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">69.65</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 44</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">21.89</span></p></td><td class="cl-aa5ec10e"><p class="cl-aa5e7bea"><span class="cl-aa47f475"> </span><span class="cl-aa47f456">124.75</span><span class="cl-aa47f475">*</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aa5ec104"><p class="cl-aa5e7bf4"><span class="cl-aa47f456">Family</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">reports</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">47</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">23.38</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">106</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">52.74</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 48</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">23.88</span></p></td><td class="cl-aa5ec10e"><p class="cl-aa5e7bea"><span class="cl-aa47f475"> </span><span class="cl-aa47f456"> 34.06</span><span class="cl-aa47f475">*</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aa5ec104"><p class="cl-aa5e7bf4"><span class="cl-aa47f456">Friends’</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">reports</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">42</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">20.90</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">112</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">55.72</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 47</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">23.38</span></p></td><td class="cl-aa5ec10e"><p class="cl-aa5e7bea"><span class="cl-aa47f475"> </span><span class="cl-aa47f456"> 45.52</span><span class="cl-aa47f475">*</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aa5ec104"><p class="cl-aa5e7bf4"><span class="cl-aa47f456">Caught</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">by</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">media</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">19</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 9.45</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 82</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">40.80</span></p></td><td class="cl-aa5ec106"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">100</span></p></td><td class="cl-aa5ec105"><p class="cl-aa5e7bea"><span class="cl-aa47f456">49.75</span></p></td><td class="cl-aa5ec10e"><p class="cl-aa5e7bea"><span class="cl-aa47f475"> </span><span class="cl-aa47f456"> 54.00</span><span class="cl-aa47f475">*</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-aa5ec10f"><p class="cl-aa5e7bf4"><span class="cl-aa47f456">Celebrity</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">display</span><br><span class="cl-aa47f456">&nbsp;&nbsp;&nbsp;&nbsp;of</span><span class="cl-aa47f456"> </span><span class="cl-aa47f456">behavior</span></p></td><td class="cl-aa5ec110"><p class="cl-aa5e7bea"><span class="cl-aa47f456">12</span></p></td><td class="cl-aa5ec110"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 5.97</span></p></td><td class="cl-aa5ec111"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec110"><p class="cl-aa5e7bea"><span class="cl-aa47f456"> 61</span></p></td><td class="cl-aa5ec110"><p class="cl-aa5e7bea"><span class="cl-aa47f456">30.35</span></p></td><td class="cl-aa5ec111"><p class="cl-aa5e7bea"><span class="cl-aa47f474"></span></p></td><td class="cl-aa5ec110"><p class="cl-aa5e7bea"><span class="cl-aa47f456">128</span></p></td><td class="cl-aa5ec110"><p class="cl-aa5e7bea"><span class="cl-aa47f456">63.68</span></p></td><td class="cl-aa5ec118"><p class="cl-aa5e7bea"><span class="cl-aa47f475"> </span><span class="cl-aa47f456">101.22</span><span class="cl-aa47f475">*</span></p></td></tr></tbody><tfoot><tr style="overflow-wrap:break-word;"><td colspan="10" class="cl-aa5ec119"><p class="cl-aa5e7bf5"><span class="cl-aa47f47f">*</span><span class="cl-aa47f480">p</span><span class="cl-aa47f488"> </span><span class="cl-aa47f488">&lt;</span><span class="cl-aa47f488"> </span><span class="cl-aa47f488">.001</span></p></td></tr></tfoot></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-77-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Frequencies and Chi-Square Results for Belief Perseverance in Attitudes Toward Celebrities (<em>N</em>&nbsp;=&nbsp;201)</p>
</div>
</figcaption>
</figure>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.7 in {R} with Apa7},
  date = {2025-09-17},
  url = {https://wjschne.github.io/posts/apatables/apa707.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 17). Recreating APA Manual Table 7.7
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa707.html">https://wjschne.github.io/posts/apatables/apa707.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa707.html</guid>
  <pubDate>Wed, 17 Sep 2025 04:00:00 GMT</pubDate>
</item>
<item>
  <title>Recreating APA Manual Table 7.6 in R with apa7</title>
  <dc:creator>W. Joel Schneider</dc:creator>
  <link>https://wjschne.github.io/posts/apatables/apa706.html</link>
  <description><![CDATA[ 





<section id="making-tables-in-apa-style-part-6-of-24" class="level1 page-columns page-full">
<h1>Making tables in APA style (Part 6 of 24)</h1>
<p>In this 24-part series, each of the tables in Chapter 7 of the <em>Publication Manual of the American Psychological Association</em> (7th Edition) is recreated with <a href="https://wjschne.github.io/apa7/">apa7</a>, <a href="https://ardata-fr.github.io/flextable-book/">flextable</a>, <a href="https://easystats.github.io/easystats/">easystats</a>, and <a href="https://www.tidyverse.org/packages/">tidyverse</a> functions.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Highlights
</div>
</div>
<div class="callout-body-container callout-body">
<ul>
<li>Centering text on a space rather than a decimal with <a href="https://wjschne.github.io/apa7/reference/align_chr.html"><code>align_chr</code></a></li>
<li>Automatic column formatting with <a href="https://wjschne.github.io/apa7/reference/apa_format_columns.html"><code>apa-format_columns</code></a></li>
</ul>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(apa7)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(flextable)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ftExtra)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(tidyverse)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set_flextable_defaults</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">theme_fun =</span> theme_apa, </span>
<span id="cb1-6">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font.family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Times New Roman"</span>)</span></code></pre></div></div>
</div>
<div id="fig-76" class="quarto-float quarto-figure quarto-figure-center FigureWithoutNote page-columns page-full" data-fignum="1" prefix="" data-custom-style="FigureWithoutNote">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-fig margin-caption" id="fig-76-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Figure&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Screenshot of the <em>APA Manual</em>’s Table 7.6</p>
</div>
</figcaption>
<div aria-describedby="fig-76-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://wjschne.github.io/posts/apatables/table76.png" class="img-fluid figure-img" style="width:100.0%">
</div>
</figure>
</div>
<p>To simply enter the data from this table would be a straightforward process. To make things interesting, I am going simulate data from the group means and standard deviations, run a series of t-tests, and display the data. This makes the process much more like what would happen in a real write-up. The means, standard deviations, and <em>p</em>-values come from the simulated data, not from Figure&nbsp;1.</p>
<p>Normally non-significant <em>p</em>-values would be rounded to 2 digits, but they were rounded to 3 digits via <a href="https://wjschne.github.io/apa7/reference/apa_format_columns.html"><code>apa_format_columns</code></a>, which also italicized the <code>p</code> column. The <code>apa_format_columns</code> is invoked by <code>apa_flextable</code>, but sometimes we want to take care of some custom formatting ahead of that step.</p>
<p>The two middle columns are aligned on the space between the group means and standard deviations, via <code>align_chr(x, center = " ")</code>.</p>
<div class="cell FigureWithNote page-columns page-full" data-apa-note="Standard deviations are presented in parentheses. BAS&nbsp;=&nbsp;Behavioral Activation System; BAS-T&nbsp;=&nbsp;Behavioral Activation System–Total scores from the Behavioral Inhibition System/Behavioral Activation System Scales; SR&nbsp;=&nbsp;Sensitivity to Reward scores from the Sensitivity to Punishment and Sensitivity to Reward Questionnaire; BDI&nbsp;=&nbsp;Beck Depression Inventory scores; ASRM&nbsp;=&nbsp;Altman Self-Rating Mania Scale scores; M-SRM&nbsp;=&nbsp;Modified Social Rhythm Metric Regularity scores." prefix="" data-tblnum="1" data-custom-style="FigureWithNote">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb2-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{r}</span></span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| label: tbl-76</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| tbl-cap: Means and Standard Deviations of Scores on Baseline Measures</span></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| apa-note: Standard deviations are presented in parentheses. </span></span>
<span id="cb2-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           BAS&amp;nbsp;=&amp;nbsp;Behavioral Activation System; </span></span>
<span id="cb2-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           BAS-T&amp;nbsp;=&amp;nbsp;Behavioral Activation System–Total </span></span>
<span id="cb2-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           scores from the Behavioral Inhibition System/Behavioral </span></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Activation System Scales; SR&amp;nbsp;=&amp;nbsp;Sensitivity </span></span>
<span id="cb2-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           to Reward scores from the Sensitivity </span></span>
<span id="cb2-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           to Punishment and Sensitivity to Reward Questionnaire; </span></span>
<span id="cb2-11"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           BDI&amp;nbsp;=&amp;nbsp;Beck Depression Inventory scores; </span></span>
<span id="cb2-12"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           ASRM&amp;nbsp;=&amp;nbsp;Altman Self-Rating Mania Scale scores; </span></span>
<span id="cb2-13"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           M-SRM&amp;nbsp;=&amp;nbsp;Modified Social Rhythm Metric </span></span>
<span id="cb2-14"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|           Regularity scores.</span></span>
<span id="cb2-15"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">12</span>)</span>
<span id="cb2-16"></span>
<span id="cb2-17"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># make data</span></span>
<span id="cb2-18">d <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> tibble<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tribble</span>(</span>
<span id="cb2-19">   <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Scale,     <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>Group,    <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>M,  <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span>SD,</span>
<span id="cb2-20">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"BAS-T"</span>,     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">46.17</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.87</span>,</span>
<span id="cb2-21">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SR"</span>,     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">17.94</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.88</span>,</span>
<span id="cb2-22">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"BDI"</span>,     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">7.11</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.5</span>,</span>
<span id="cb2-23">   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ASRM"</span>,     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.46</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">4.01</span>,</span>
<span id="cb2-24">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"M-SRM"</span>,     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">11.05</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">3.36</span>,</span>
<span id="cb2-25">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"BAS-T"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Moderate"</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">37.99</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.32</span>,</span>
<span id="cb2-26">     <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SR"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Moderate"</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">11.52</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.84</span>,</span>
<span id="cb2-27">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"BDI"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Moderate"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.18</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.09</span>,</span>
<span id="cb2-28">   <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ASRM"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Moderate"</span>,  <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">5.63</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">3.69</span>,</span>
<span id="cb2-29">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"M-SRM"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Moderate"</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">11.76</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.75</span></span>
<span id="cb2-30">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-31">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">x =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2</span>(M, SD, \(m, s) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rnorm</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">75</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mean =</span> m, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sd =</span> s))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-32">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(x) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-33">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nest</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>Scale)</span>
<span id="cb2-34"></span>
<span id="cb2-35"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Analyze data</span></span>
<span id="cb2-36">d_analysis <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-37">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb2-38">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">descriptives =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(</span>
<span id="cb2-39">      data,</span>
<span id="cb2-40">      \(d) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(d, Group, x) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-41">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summarise</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">m =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mean</span>(x) , <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">s =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sd</span>(x), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.by =</span> Group) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-42">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">value =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(</span>
<span id="cb2-43">          scales<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">number</span>(m, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">01</span>),</span>
<span id="cb2-44">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" ("</span>,</span>
<span id="cb2-45">          scales<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">number</span>(s, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">01</span>),</span>
<span id="cb2-46">          <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">")"</span></span>
<span id="cb2-47">        )) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-48">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(m, s)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-49">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Group =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(Group, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" BAS group"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-50">        <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pivot_wider</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names_from =</span> Group)</span>
<span id="cb2-51">    ),</span>
<span id="cb2-52">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(data, \(d) {</span>
<span id="cb2-53">      <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">t.test</span>(x <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Group, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> d)<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>p.value </span>
<span id="cb2-54">    }),</span>
<span id="cb2-55">  ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-56">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>data) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-57">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">unnest</span>(descriptives)</span>
<span id="cb2-58"></span>
<span id="cb2-59"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Format data</span></span>
<span id="cb2-60">d_formatted <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> d_analysis <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-61">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">across</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(Scale), \(x) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">align_chr</span>(x, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">center =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" "</span>))) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-62">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_format_columns</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">accuracy =</span> .<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">001</span>)</span>
<span id="cb2-63"></span>
<span id="cb2-64"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make table</span></span>
<span id="cb2-65">d_formatted <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb2-66">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apa_flextable</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">table_width =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, </span>
<span id="cb2-67">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">layout =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fixed"</span>, </span>
<span id="cb2-68">                <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">line_spacing =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb2-69">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">width</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">width =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.5</span> <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">/</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>))</span>
<span id="cb2-70"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<div id="tbl-76" class="cell quarto-float quarto-figure quarto-figure-center page-columns page-full" data-tblnum="1" data-apa-note="Standard deviations are presented in parentheses. BAS&nbsp;=&nbsp;Behavioral Activation System; BAS-T&nbsp;=&nbsp;Behavioral Activation System–Total scores from the Behavioral Inhibition System/Behavioral Activation System Scales; SR&nbsp;=&nbsp;Sensitivity to Reward scores from the Sensitivity to Punishment and Sensitivity to Reward Questionnaire; BDI&nbsp;=&nbsp;Beck Depression Inventory scores; ASRM&nbsp;=&nbsp;Altman Self-Rating Mania Scale scores; M-SRM&nbsp;=&nbsp;Modified Social Rhythm Metric Regularity scores." prefix="">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-76-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div class="tabwid tabwid_left"><style>.cl-2a6948d4{}.cl-2a4e043e{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2a4e0452{font-family:'Times New Roman';font-size:12pt;font-weight:normal;font-style:italic;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2a6283fa{margin:0;text-align:center;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-2a628404{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:4pt;padding-top:4pt;padding-left:3pt;padding-right:3pt;line-height: 1;background-color:transparent;}.cl-2a62cf22{width:1.625in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0.5pt solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2a62cf2c{width:1.625in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2a62cf36{width:1.625in;background-color:transparent;vertical-align: top;border-bottom: 0 solid rgba(255, 255, 255, 0.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2a62cf37{width:1.625in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2a62cf38{width:1.625in;background-color:transparent;vertical-align: top;border-bottom: 0.5pt solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(255, 255, 255, 0.00);border-left: 0 solid rgba(255, 255, 255, 0.00);border-right: 0 solid rgba(255, 255, 255, 0.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing="true" class="cl-2a6948d4"><thead><tr style="overflow-wrap:break-word;"><th class="cl-2a62cf22"><p class="cl-2a6283fa"><span class="cl-2a4e043e">Scale</span></p></th><th class="cl-2a62cf22"><p class="cl-2a6283fa"><span class="cl-2a4e043e">High</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">BAS</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">group</span></p></th><th class="cl-2a62cf22"><p class="cl-2a6283fa"><span class="cl-2a4e043e">Moderate</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">BAS</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">group</span></p></th><th class="cl-2a62cf22"><p class="cl-2a6283fa"><span class="cl-2a4e0452">p</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-2a62cf2c"><p class="cl-2a628404"><span class="cl-2a4e043e">BAS-T</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e">46.14</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(2.60)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e">37.95</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(1.22)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e">&lt;.001</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2a62cf2c"><p class="cl-2a628404"><span class="cl-2a4e043e">SR</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e">17.93</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(1.80)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e">11.24</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(1.82)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e">&lt;.001</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2a62cf2c"><p class="cl-2a628404"><span class="cl-2a4e043e">BDI</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e"> 6.89</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(6.48)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e"> 5.67</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(5.46)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e"> .210</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2a62cf2c"><p class="cl-2a628404"><span class="cl-2a4e043e">ASRM</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e"> 6.38</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(3.96)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e"> 5.30</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(3.63)</span></p></td><td class="cl-2a62cf36"><p class="cl-2a6283fa"><span class="cl-2a4e043e"> .080</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2a62cf37"><p class="cl-2a628404"><span class="cl-2a4e043e">M-SRM</span></p></td><td class="cl-2a62cf38"><p class="cl-2a6283fa"><span class="cl-2a4e043e">10.92</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(3.10)</span></p></td><td class="cl-2a62cf38"><p class="cl-2a6283fa"><span class="cl-2a4e043e">11.70</span><span class="cl-2a4e043e"> </span><span class="cl-2a4e043e">(2.76)</span></p></td><td class="cl-2a62cf38"><p class="cl-2a6283fa"><span class="cl-2a4e043e"> .100</span></p></td></tr></tbody></table></div>
</div>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-76-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="FigureTitle" data-custom-style="FigureTitle">
<p>Table&nbsp;1</p>
</div>
<div class="Caption" data-custom-style="Caption">
<p>Means and Standard Deviations of Scores on Baseline Measures</p>
</div>
</figcaption>
</figure>
</div>
<div>
<div class="FigureNote NoIndent" data-custom-style="FigureNote">
<em>Note</em>. Standard deviations are presented in parentheses. BAS&nbsp;=&nbsp;Behavioral Activation System; BAS-T&nbsp;=&nbsp;Behavioral Activation System–Total scores from the Behavioral Inhibition System/Behavioral Activation System Scales; SR&nbsp;=&nbsp;Sensitivity to Reward scores from the Sensitivity to Punishment and Sensitivity to Reward Questionnaire; BDI&nbsp;=&nbsp;Beck Depression Inventory scores; ASRM&nbsp;=&nbsp;Altman Self-Rating Mania Scale scores; M-SRM&nbsp;=&nbsp;Modified Social Rhythm Metric Regularity scores.
</div>
</div>
</div>



</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@misc{schneider2025,
  author = {Schneider, W. Joel},
  title = {Recreating {APA} {Manual} {Table} 7.6 in {R} with Apa7},
  date = {2025-09-16},
  url = {https://wjschne.github.io/posts/apatables/apa706.html},
  langid = {en}
}
</code></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-schneider2025" class="csl-entry quarto-appendix-citeas">
Schneider, W. J. (2025, September 16). Recreating APA Manual Table 7.6
in R with apa7. <em>Schneirographs</em>. <a href="https://wjschne.github.io/posts/apatables/apa706.html">https://wjschne.github.io/posts/apatables/apa706.html</a>
</div></div></section></div> ]]></description>
  <category>R</category>
  <category>APA Style</category>
  <guid>https://wjschne.github.io/posts/apatables/apa706.html</guid>
  <pubDate>Tue, 16 Sep 2025 04:00:00 GMT</pubDate>
</item>
</channel>
</rss>
