<?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>Tzu-Yao Lin</title>
<link>https://tzuyaolin.com/blog.html</link>
<atom:link href="https://tzuyaolin.com/blog.xml" rel="self" type="application/rss+xml"/>
<description>Research, statistics, and R by Tzu-Yao Lin</description>
<generator>quarto-1.10.18</generator>
<lastBuildDate>Mon, 02 Nov 2026 00:00:00 GMT</lastBuildDate>
<item>
  <title>Reliability for Multilevel Data: A Correlation Approach</title>
  <dc:creator>Tzu-Yao Lin</dc:creator>
  <link>https://tzuyaolin.com/posts/20261102_multilevel-reliability/</link>
  <description><![CDATA[ 






<p>Reliability asks how consistent a measurement instrument is when we repeat it, whether by retesting or by using different raters. In classical test theory, a reliability coefficient is defined as the proportion of observed-score variance that reflects true differences between persons, that is, the true-score variance. Alternatively, under parallel-measurement assumptions, it also equals the correlation between two parallel measurements.</p>
<p>Things get complicated once data are nested. Think of students within schools, each rated by one or more raters. The rating design can take different forms. Raters may be crossed with students and schools, so that every rater scores every student in every school. Or raters may be nested within students, so that each student is scored by their own set of raters and every rater scores only one student. Then, we want reliability at <em>each</em> level: how well can we distinguish students (<strong>person-level reliability</strong>), and how well can we distinguish schools (<strong>cluster-level reliability</strong>) against the error/noise?</p>
<p>Two recent papers, <span class="citation" data-cites="hove2022"><span class="nocase">ten Hove et al.</span> (2022)</span> and <span class="citation" data-cites="schoenbrodt2022">Schönbrodt et al. (2022)</span>, answer this using generalizability theory. Their approach is variance partitioning: the observed-score variance is decomposed into components for persons, clusters, raters, and their interactions, and each reliability coefficient is a ratio of selected components. Yet for the <em>same design and model</em>, their cluster-level reliabilities differ. For example, in a Person(Cluster) × Rater design, both keep cluster variance as the target signal. For absolute decisions, Schönbrodt et al.&nbsp;put all the remaining components in the denominator, including person-level variance and measurement error. While ten Hove et al.&nbsp;exclude both. A practitioner cannot tell which to report, or why they disagree.</p>
<section id="the-correlation-approach" class="level1">
<h1>The correlation approach</h1>
<p>In our paper, we go back to the simplest definition: reliability is the <strong>correlation between two replicates</strong>. Three rules then determine every coefficient:</p>
<ol type="1">
<li><strong>Relative vs.&nbsp;absolute.</strong> For relative decisions, condition on the raters, so rater leniency cannot matter. For absolute decisions, do not.</li>
<li><strong>Which level we target.</strong> For person-level reliability, condition on the cluster. For cluster-level reliability, the question is whether person-to-person variation within a cluster counts as noise. If it does, we get <em>manifest</em> cluster-level reliability, whose absolute version matches the coefficient from Schönbrodt et al.’s approach. If we instead fix the same person and let the cluster vary, we get <em>latent</em> cluster-level reliability. The latent version is larger, but not automatically better: it fits when the cluster construct should not depend on which persons happen to be in it.</li>
<li><strong>Single vs.&nbsp;average scores.</strong> The rules above describe the correlation between two single scores. When scores are averaged over raters (or persons), the correlation is taken between two averages, and the corresponding variance components are divided by the number of raters (or persons) averaged.</li>
</ol>
<p>For the Person(Cluster) × Rater design, Table&nbsp;1 writes the six single-score coefficients as correlations. Here <img src="https://latex.codecogs.com/png.latex?Y_%7Bi(k)j%7D"> is the score of person <img src="https://latex.codecogs.com/png.latex?i"> in cluster <img src="https://latex.codecogs.com/png.latex?k"> given by rater <img src="https://latex.codecogs.com/png.latex?j">, and the terms after <img src="https://latex.codecogs.com/png.latex?%5Cmid"> are held fixed.</p>
<div id="tbl-summary" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-summary-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: The correlation representation of person-level and cluster-level reliabilities.
</figcaption>
<div aria-describedby="tbl-summary-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="caption-top table">
<colgroup>
<col style="width: 20%">
<col style="width: 26%">
<col style="width: 26%">
<col style="width: 26%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;"></th>
<th style="text-align: center;">Person-level</th>
<th style="text-align: center;">Manifest cluster-level</th>
<th style="text-align: center;">Latent cluster-level</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Relative reliability</td>
<td style="text-align: center;"><img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BCor%7D(Y_%7Bi(k)j%7D,%20Y_%7Bi(k)j'%7D%20%5Cmid%20k,%20j,%20j')"></td>
<td style="text-align: center;"><img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BCor%7D(Y_%7Bi(k)j%7D,%20Y_%7Bi'(k)j'%7D%20%5Cmid%20j,%20j')"></td>
<td style="text-align: center;"><img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BCor%7D(Y_%7Bi(k)j%7D,%20Y_%7Bi(k)j'%7D%20%5Cmid%20i(k),%20j,%20j')"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Absolute reliability</td>
<td style="text-align: center;"><img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BCor%7D(Y_%7Bi(k)j%7D,%20Y_%7Bi(k)j'%7D%20%5Cmid%20k)"></td>
<td style="text-align: center;"><img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BCor%7D(Y_%7Bi(k)j%7D,%20Y_%7Bi'(k)j'%7D)"></td>
<td style="text-align: center;"><img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BCor%7D(Y_%7Bi(k)j%7D,%20Y_%7Bi(k)j'%7D%20%5Cmid%20i(k))"></td>
</tr>
</tbody>
</table>
</div>
</figure>
</div>
<p>Reading across a row, the only change is what we hold fixed. The person-level and latent cluster-level coefficients correlate two scores of the <em>same</em> person, with the cluster or the person fixed respectively. The manifest cluster-level coefficient correlates scores of two <em>different</em> persons, <img src="https://latex.codecogs.com/png.latex?i"> and <img src="https://latex.codecogs.com/png.latex?i'">, from the same random cluster.</p>
</section>
<section id="why-the-differences-matter" class="level1">
<h1>Why the differences matter</h1>
<p>The gaps are not cosmetic. When raters are nested within persons, applying ten Hove et al.’s exclusion rule leaves <img src="https://latex.codecogs.com/png.latex?%5Csigma%5E2_C%20/%20%5Csigma%5E2_C%20=%201">, so their cluster-level coefficient is uninformative. The correlation approach still gives meaningful values: <img src="https://latex.codecogs.com/png.latex?%5Csigma%5E2_C%20/%20(%5Csigma%5E2_C%20+%20%5Csigma%5E2_%7BS(C)%7D%20+%20%5Csigma%5E2_%5Cepsilon)"> for manifest reliability, and <img src="https://latex.codecogs.com/png.latex?%5Csigma%5E2_C%20/%20(%5Csigma%5E2_C%20+%20%5Csigma%5E2_%5Cepsilon)"> for latent reliability.</p>
<p>Because every coefficient is a correlation, the same recipe can be easily extended to complicated designs. Venn diagrams show which variance components sit in the numerator and which only in the denominator, so the differences between definitions can be read off at a glance. For the full derivations, the Venn diagram of every coefficient, and the average-score formulas, please see our paper, <span class="citation" data-cites="lin2025">Lin et al. (2025)</span>.</p>
</section>
<section id="references" class="level1">




</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent" data-entry-spacing="0" data-line-spacing="2">
<div id="ref-lin2025" class="csl-entry">
Lin, T.-Y., Tuerlinckx, F., &amp; Vanbelle, S. (2025). Reliability for multilevel data: A correlation approach. <em>Psychological Methods</em>. <a href="https://doi.org/10.1037/met0000738">https://doi.org/10.1037/met0000738</a>
</div>
<div id="ref-schoenbrodt2022" class="csl-entry">
Schönbrodt, F. D., Zygar-Hoffmann, C., Nestler, S., Pusch, S., &amp; Hagemeyer, B. (2022). Measuring motivational relationship processes in experience sampling: A reliability model for moments, days, and persons nested in couples. <em>Behavior Research Methods</em>, <em>54</em>(4), 1869–1888. <a href="https://doi.org/10.3758/s13428-021-01701-7">https://doi.org/10.3758/s13428-021-01701-7</a>
</div>
<div id="ref-hove2022" class="csl-entry">
<span class="nocase">ten Hove, D., Jorgensen, T. D., &amp; van der Ark, L. A.</span> (2022). Interrater reliability for multilevel data: A generalizability theory approach. <em>Psychological Methods</em>, <em>27</em>(4), 650–666. <a href="https://doi.org/10.1037/met0000391">https://doi.org/10.1037/met0000391</a>
</div>
</div></section></div> ]]></description>
  <category>psychometrics</category>
  <category>reliability</category>
  <category>multilevel</category>
  <guid>https://tzuyaolin.com/posts/20261102_multilevel-reliability/</guid>
  <pubDate>Mon, 02 Nov 2026 00:00:00 GMT</pubDate>
  <media:content url="https://tzuyaolin.com/posts/20261102_multilevel-reliability/RM.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>如何尋找歐洲 PhD 職缺：我使用過的網站與資訊管道</title>
  <dc:creator>Tzu-Yao Lin</dc:creator>
  <link>https://tzuyaolin.com/posts/20250330_PhD-position/</link>
  <description><![CDATA[ 






<p>歐洲沒有統一的 PhD 招生方式。有些博士生職位會像一般工作一樣公開招聘，附有研究主題、聘僱期間與薪資；有些則要先找到指導教授，再申請博士班或研究經費。因此，只依賴一個網站通常不夠。</p>
<p>這篇文章整理我在尋找歐洲 PhD 與研究職缺時使用或留意過的資訊管道。它不是完整的申請攻略，而是一份可以開始動手搜尋的資源清單。</p>
<section id="專業學會與郵件論壇" class="level1">
<h1>專業學會與郵件論壇</h1>
<p>如果已經知道自己感興趣的研究領域，可以先加入相關學會或 mailing list。舉例來說，我對數理心理學、統計和心理計量等領域感興趣，因此會加入相關的 mailing lists，持續留意職缺與學術活動資訊：</p>
<ul>
<li><a href="https://www.jiscmail.ac.uk/cgi-bin/wa-jisc.exe?A0=ALLSTAT">ALLSTAT</a>：以統計學相關資訊為主，除了研討會、課程與學術活動，有時也會出現 PhD、postdoc 或其他研究職缺。</li>
<li><a href="https://mathpsych.org/page/mailing-lists">MathPsych mailing lists</a>：由 Society for Mathematical Psychology 維護，適合關注數理心理學、認知建模、心理計量與量化心理學的讀者。</li>
</ul>
<p>我會把 mailing lists 當成補充來源。它們刊登的職缺數量不一定很多，但收到的消息通常比較接近自己的研究領域，也可能比大型職缺平台更早出現在特定研究社群中。</p>
</section>
<section id="跨國研究職缺平台" class="level1">
<h1>跨國研究職缺平台</h1>
<section id="euraxess" class="level2">
<h2 class="anchored" data-anchor-id="euraxess">EURAXESS</h2>
<p><a href="https://euraxess.ec.europa.eu/jobs/search">EURAXESS Jobs</a> 是我會優先查看的平台之一。它收錄歐洲各國的研究職缺、funding opportunities 與 hosting offers，也可以依國家、研究領域和職涯階段篩選。</p>
<p>如果想找博士生職位，可以嘗試搜尋：</p>
<ul>
<li><code>PhD position</code></li>
<li><code>doctoral researcher</code></li>
<li><code>doctoral candidate</code></li>
<li><code>predoctoral researcher</code></li>
<li>自己的研究領域，例如 <code>psychometrics</code>、<code>quantitative psychology</code> 或 <code>statistics</code></li>
</ul>
<p>部分 Marie Skłodowska-Curie Actions Doctoral Networks 的博士生職缺也會刊登在 EURAXESS。搜尋時可以加入 <code>MSCA</code> 或 <code>Doctoral Network</code>。</p>
</section>
<section id="academic-positions" class="level2">
<h2 class="anchored" data-anchor-id="academic-positions">Academic Positions</h2>
<p><a href="https://academicpositions.com/find-jobs">Academic Positions</a> 收錄不同國家的 PhD、postdoc、researcher 和 faculty positions，可以按照職位類型、國家與研究領域篩選，也能設定 job alert。</p>
<p>這個網站適合用來快速了解目前哪些國家或大學正在招聘，但看到有興趣的職缺後，我仍會回到大學或研究機構的官方網站確認資訊。</p>
</section>
<section id="findaphd" class="level2">
<h2 class="anchored" data-anchor-id="findaphd">FindAPhD</h2>
<p><a href="https://www.findaphd.com/">FindAPhD</a> 可以按照學科、國家、研究計畫或指導教授搜尋博士機會。英國的項目尤其多，但也會收錄其他歐洲國家的 PhD projects、programmes 與 funding information。</p>
<p>使用時要注意，不同結果可能代表不同形式的機會。有些是已經有經費的研究計畫，有些是博士課程介紹，也有些需要申請者另外尋找 funding。</p>
</section>
</section>
<section id="各國常用平台" class="level1">
<h1>各國常用平台</h1>
<p>不同國家的招聘方式不完全相同。確定想去的國家後，可以再加入當地常用的平台。</p>
<section id="荷蘭" class="level2">
<h2 class="anchored" data-anchor-id="荷蘭">荷蘭</h2>
<p><a href="https://www.academictransfer.com/en/jobs/?function_types=1">AcademicTransfer</a> 是尋找荷蘭研究職缺的重要平台。荷蘭大學、研究機構與大學醫院會在這裡刊登 PhD、postdoc 和其他學術職位，也可以建立帳號並儲存搜尋條件。</p>
<p>我會先選擇 PhD 類型，再加入自己的方法或研究主題，例如：</p>
<ul>
<li><code>psychology</code></li>
<li><code>psychometrics</code></li>
<li><code>measurement</code></li>
<li><code>research methodology</code></li>
<li><code>statistics</code></li>
<li><code>longitudinal data</code></li>
</ul>
<p>關鍵字不宜設得太窄。同一類研究可能使用不同名稱，例如 <code>quantitative psychology</code>、<code>behavioural science</code> 或 <code>data science</code>。</p>
</section>
<section id="比利時" class="level2">
<h2 class="anchored" data-anchor-id="比利時">比利時</h2>
<p>比利時的 PhD 職缺可以先從 EURAXESS 和 Academic Positions 開始搜尋。不過，這些跨國平台上的資料取決於招聘單位是否另外刊登，因此不一定涵蓋各大學的所有職缺。比較保險的做法，是把跨國平台當成發現職缺的入口，再定期查看感興趣大學的官方招聘頁面。這不是說跨國平台不可靠，而是不能假設它們一定完整。</p>
<p>以下是幾所比利時大學的官方職缺頁：</p>
<ul>
<li><a href="https://www.kuleuven.be/personeel/jobsite/en/">KU Leuven Jobsite</a>：可以查看 PhD、academic staff 和其他校內職缺，也能設定 job alerts。</li>
<li><a href="https://jobs.ugent.be/job/?locale=en_GB">Ghent University Jobs</a>：包含 PhD students、doctoral fellows、researchers 和其他學術職位。Ghent University 也提到，申請 PhD 除了回應公開職缺，也可能透過聯絡特定教授開始。</li>
<li><a href="https://www.uhasselt.be/en/about-hasselt-university/working-at-hasselt-university/vacancies">UHasselt Vacancies</a>：可以依 academic staff、research staff 與 PhD scholarships 等類別查看職缺。</li>
<li><a href="https://www.uantwerpen.be/en/jobs/vacancies/">University of Antwerp Vacancies</a>：包含 academic staff、research groups 與合作機構的職缺；英文頁面也提醒，完整名單有時需要一併查看荷蘭文頁面。</li>
<li><a href="https://jobs.vub.be/go/EN_ALL-JOBS/3775601/">VUB Jobs</a>：可以查看 Vrije Universiteit Brussel 的 PhD、researcher 和 academic personnel 職缺。</li>
</ul>
<p>如果已經鎖定特定研究團隊，我還會查看該團隊或系所的消息頁面。部分職缺可能先由研究團隊、教授或學術社群分享，之後才出現在大學的中央招聘系統。</p>
</section>
<section id="法國" class="level2">
<h2 class="anchored" data-anchor-id="法國">法國</h2>
<p><a href="https://doctorat.campusfrance.org/en/phd/offers/offer.php?action=list">Research in France</a> 由 Campus France 維護，可以搜尋 doctoral programmes、博士研究題目、funding 與 doctoral schools。</p>
<p>法國的職缺或博士題目可能區分為已有經費的職位，以及需要申請者自行取得獎學金的題目。閱讀公告時，要特別確認 funding 欄位與申請方式。</p>
</section>
<section id="英國" class="level2">
<h2 class="anchored" data-anchor-id="英國">英國</h2>
<p>英國的博士計畫可以從 <a href="https://www.findaphd.com/">FindAPhD</a> 開始，再到各大學的 postgraduate research 或 jobs 頁面確認。</p>
<p>搜尋結果中可能同時包含 funded studentships 和需要自費或另外申請獎學金的 programmes，因此不能只看研究主題，也要確認 tuition fees、stipend 和國際學生資格。</p>
</section>
<section id="挪威" class="level2">
<h2 class="anchored" data-anchor-id="挪威">挪威</h2>
<p><a href="https://www.jobbnorge.no/search">Jobbnorge</a> 是挪威常見的招聘平台之一，除了其他公共部門職缺，也能找到大學與研究機構刊登的 PhD positions。</p>
<p>部分公告的標題或頁面可能以挪威文顯示，可以直接使用職位名稱、學校名稱或 <code>PhD</code> 搜尋。</p>
</section>
</section>
<section id="直接查看大學與研究團隊" class="level1">
<h1>直接查看大學與研究團隊</h1>
<p>大型平台很方便，但不一定會涵蓋所有機會。我通常也會整理一份自己感興趣的大學、研究中心和研究團隊清單，定期查看它們的官方 jobs 或 vacancies 頁面。</p>
<p>如果在其他網站或社群媒體看到職缺轉貼，我會再回到招聘機構的官方頁面確認：</p>
<ul>
<li>申請截止日期；</li>
<li>職位是 employment contract、studentship 還是 scholarship；</li>
<li>研究主題與指導團隊；</li>
<li>學歷、方法能力與語言要求；</li>
<li>需要提交哪些申請文件；</li>
<li>預計開始日期。</li>
</ul>
<p>平台上的職缺可以當成線索，實際申請仍應以招聘單位的官方公告為準。</p>
</section>
<section id="社群媒體與研究社群" class="level1">
<h1>社群媒體與研究社群</h1>
<p>教授、研究團隊與學會有時會在 LinkedIn、X/Twitter 或其他學術社群分享新職缺。若已經知道自己感興趣的領域，可以追蹤：</p>
<ul>
<li>相關研究者與實驗室；</li>
<li>專業學會；</li>
<li>doctoral schools；</li>
<li>大型研究計畫；</li>
<li>歐洲研究網絡。</li>
</ul>
<p>社群媒體適合提早發現消息，但貼文可能省略申請資格、截止日期，或在職缺關閉後仍持續流傳。找到有興趣的資訊後，仍應回到招聘單位的官方公告確認。</p>
</section>
<section id="我的搜尋方式" class="level1">
<h1>我的搜尋方式</h1>
<p>如果剛開始尋找歐洲 PhD，我會採取以下順序：</p>
<ol type="1">
<li>先用 EURAXESS、Academic Positions 和 FindAPhD 了解目前有哪些機會。</li>
<li>確定優先國家後，加入當地平台，例如荷蘭的 AcademicTransfer。</li>
<li>訂閱與研究領域相關的 mailing lists。</li>
<li>整理感興趣的大學與研究團隊，定期查看官方招聘頁面。</li>
<li>設定 job alerts，但每週仍主動搜尋一次，避免關鍵字設定過窄而漏掉職缺。</li>
<li>找到合適的機會後，回到招聘單位的官方頁面確認所有條件。</li>
</ol>
<p>搜尋博士職缺需要一些時間，尤其是研究主題較專門時，不一定每週都會出現完全符合的結果。比起只使用一組關鍵字，我認為同時搜尋研究主題、統計方法和不同職稱會比較實際。</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">註釋</span>關於這份清單
</div>
</div>
<div class="callout-body-container callout-body">
<p>這是我使用或留意過的資源，不是完整的歐洲 PhD 職缺資料庫。平台功能、網址和招聘方式可能改變；實際申請前，請以大學或研究機構的官方公告為準。</p>
<p>本文連結最後檢查日期：2026-08-30。</p>
</div>
</div>


</section>

 ]]></description>
  <category>academia</category>
  <category>phd</category>
  <category>europe</category>
  <guid>https://tzuyaolin.com/posts/20250330_PhD-position/</guid>
  <pubDate>Sun, 30 Mar 2025 00:00:00 GMT</pubDate>
  <media:content url="https://tzuyaolin.com/posts/20250330_PhD-position/find-a-phd.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>Analysis Notes for a Study of Vaccine Sentiment among Brazilian Healthcare Workers</title>
  <dc:creator>Tzu-Yao Lin</dc:creator>
  <link>https://tzuyaolin.com/posts/20250328_VHS/</link>
  <description><![CDATA[ 






<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>About this analysis record
</div>
</div>
<div class="callout-body-container callout-body">
<p>This page documents exploratory analyses conducted during the preparation of a collaborative study of vaccine sentiment among Brazilian healthcare workers. It is retained as a public record of the analytical workflow and is not intended as a complete tutorial or as the definitive report of the study.</p>
<p>The final methods, results, and interpretations are reported in <a href="https://doi.org/10.7189/001c.144190">Lo et al.&nbsp;(2025), <em>The impact of the COVID-19 pandemic on vaccine sentiment among Brazilian healthcare workers: A cross-sectional online survey study</em></a>.</p>
</div>
</div>
<p>This page focuses on two parts of the analytical workflow:</p>
<ol type="1">
<li>Exploring whether the factor structure of 17 vaccine-attitude items could be interpreted in relation to the 5C model of vaccine hesitancy.</li>
<li>Fitting logistic regression models that used the resulting factor scores and other covariates to examine associations with five vaccine-sentiment outcomes.</li>
</ol>
<p>The page does not document every analysis reported in the published article. Some sections preserve intermediate model comparisons and working decisions made during manuscript development.</p>
<section id="data-availability-and-privacy" class="level1" data-number="1">
<h1 data-number="1"><span class="header-section-number">1</span> Data availability and privacy</h1>
<p>The participant-level dataset is restricted and is not distributed with this website. The original working file contained direct or highly identifying fields, including network identifiers, precise timestamps, unique response identifiers, and free-text responses. Even after excluding those fields, combinations of demographic, professional, health, and attitude variables may still allow individuals to be singled out or linked to other information.</p>
<p>The code and frozen aggregate outputs are retained to document the analytical workflow. Authorised researchers must store the dataset outside the repository and supply its path through <code>BRAZIL_DATA_PATH</code>; the analysis rejects paths inside the website project. Public outputs should contain aggregate statistics and model results rather than participant-level records. Consequently, this page supports transparency about the analysis process but is not a fully executable public reproduction package.</p>
</section>
<section id="data-preparation" class="level1" data-number="2">
<h1 data-number="2"><span class="header-section-number">2</span> Data preparation</h1>
<p>First, the necessary R packages are loaded.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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>(tidyverse)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(ggplot2)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(haven) <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># for reading STATA dta files</span></span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(psych) <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># for factor analysis</span></span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(GPArotation)</span>
<span id="cb1-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(corrplot) <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># for correlation plots</span></span>
<span id="cb1-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(gt)</span>
<span id="cb1-8"></span>
<span id="cb1-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Make randomized factor-rotation starts reproducible across renders.</span></span>
<span id="cb1-10"><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;">20250328</span>)</span></code></pre></div></div>
</details>
</div>
<p>The analysis uses a restricted participant-level dataset that is stored separately from this public repository. Authorised researchers can supply its external file path through the <code>BRAZIL_DATA_PATH</code> environment variable.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">data_path <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;">Sys.getenv</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"BRAZIL_DATA_PATH"</span>)</span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">if</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;">nzchar</span>(data_path)) {</span>
<span id="cb2-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">stop</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Set BRAZIL_DATA_PATH to the restricted dataset outside this project."</span>)</span>
<span id="cb2-5">}</span>
<span id="cb2-6"></span>
<span id="cb2-7">data_path <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;">normalizePath</span>(data_path, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mustWork =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-8">project_dir <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;">Sys.getenv</span>(</span>
<span id="cb2-9">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"QUARTO_PROJECT_DIR"</span>,</span>
<span id="cb2-10">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">unset =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">normalizePath</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;">mustWork =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-11">)</span>
<span id="cb2-12">project_dir <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;">normalizePath</span>(project_dir, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mustWork =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-13"></span>
<span id="cb2-14"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">if</span> (</span>
<span id="cb2-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">identical</span>(data_path, project_dir) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">||</span></span>
<span id="cb2-16">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">startsWith</span>(data_path, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(project_dir, .Platform<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>file.sep))</span>
<span id="cb2-17">) {</span>
<span id="cb2-18">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">stop</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"BRAZIL_DATA_PATH must point outside the public website project."</span>)</span>
<span id="cb2-19">}</span>
<span id="cb2-20"></span>
<span id="cb2-21">rawdata <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;">read_dta</span>(data_path) <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;">select</span>(</span>
<span id="cb2-23">    gender, age_class, member, edu, prof, w_setting, chronic,</span>
<span id="cb2-24">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">matches</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vac_gen_</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;">d"</span>),</span>
<span id="cb2-25">    covid_pro_1<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>covid_oblig_2,</span>
<span id="cb2-26">    covid_leaders<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>covid_earlyaccess,</span>
<span id="cb2-27">    cov_pro_3, change_vac_1, change_vac_2, change_vac_3,</span>
<span id="cb2-28">    change_HealthSy_1, fear, knowledge</span>
<span id="cb2-29">  )</span></code></pre></div></div>
</details>
</div>
<p>Only variables required by the analyses below are retained in memory. Direct identifiers, network identifiers, precise timestamps, and free-text responses are excluded.</p>
<p>Key observations from the data preparation include:</p>
<ul>
<li>Missing values are present, denoted by <code>NA</code> for numeric variables and empty strings (““) for character variables.</li>
<li>Many variables have the class <code>haven_labelled</code>. These labelled variables require careful handling and appropriate transformation before analysis.</li>
</ul>
<p>Next, the variables relevant to this analysis are selected.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">data <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> rawdata <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb3-2">  <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;">where</span>(is.character), <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;">na_if</span>(., <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>)))</span></code></pre></div></div>
</details>
</div>
</section>
<section id="vaccine-hesitancy-vh" class="level1 page-columns page-full" data-number="3">
<h1 data-number="3"><span class="header-section-number">3</span> Vaccine hesitancy (VH)</h1>
<section id="prepare-variables" class="level2" data-number="3.1">
<h2 data-number="3.1" class="anchored" data-anchor-id="prepare-variables"><span class="header-section-number">3.1</span> Prepare variables</h2>
<p>Before conducting the factor analysis, 17 variables related to general vaccine attitudes and specific COVID-19 attitudes were selected.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1">fa_data <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> data <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb4-2">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">matches</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vac_gen_</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;">d"</span>), covid_pro_1<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>covid_oblig_2, covid_leaders<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>covid_earlyaccess) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb4-3">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">drop_na</span>()</span>
<span id="cb4-4"></span>
<span id="cb4-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">apply</span>(fa_data, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>, table)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>  vac_gen_1 vac_gen_2 vac_gen_3 vac_gen_4 vac_gen_5 vac_gen_6 covid_pro_1
1         7         5        93       125        29        48           8
2        21         5       183       197        74        28          26
4       143       107       199       167       253       111         126
5       373       427        69        55       188       357         384
  covid_ag_1 covid_ag_2 covid_pro_2 covid_over18 covid_pregnant covid_children
1        370        296          10          352             28             22
2         86        161          19          142             44             19
4         45         54         118           34            188            142
5         43         33         397           16            284            361
  covid_oblig_1 covid_oblig_2 covid_leaders covid_earlyaccess
1            32            65            20                10
2            42            84            27                 9
4           120           164           133               109
5           350           231           364               416</code></pre>
</div>
</div>
<div class="callout callout-style-default callout-warning 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">
Warning
</div>
</div>
<div class="callout-body-container callout-body">
<p>Caution that the numeric labels for the Likert scale responses (‘Strongly Disagree,’ ‘Disagree,’ ‘Agree,’ ‘Strongly Agree’) are coded as 1, 2, 4, and 5, respectively, rather than the more common sequential coding (e.g., 1, 2, 3, 4)</p>
<p>This non-sequential coding implies an assumption that the interval between ‘Disagree’ (2) and ‘Agree’ (4) is twice that of the other adjacent intervals. Treating these data as interval scale in the analysis relies on this assumption.</p>
<p>The Pearson correlations and maximum-likelihood factor models below therefore treat the recoded four-point responses as approximately continuous.</p>
</div>
</div>
<p>Following the coding used in the study, these responses were recoded from 1, 2, 4, and 5 to 1, 2, 3, and 4.</p>
<p>In addition, observations with missing values in any of these 17 variables were removed. Consequently, 544 complete observations remain for the factor analysis.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">fa_data <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> fa_data <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;">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;">everything</span>(), <span class="sc" style="color: #5E5E5E;
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;">ifelse</span>(. <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="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>)))</span>
<span id="cb6-3"></span>
<span id="cb6-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">table</span>(fa_data<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>vac_gen_1) <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># check an example</span></span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
  1   2   3   4 
  7  21 143 373 </code></pre>
</div>
</div>
<p>Before performing the factor analysis, a correlation matrix is examined to visually inspect potential clustering among the attitude variables.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1">cor_mat <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;">cor</span>(fa_data)</span>
<span id="cb8-2"></span>
<span id="cb8-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Copy from https://www.sthda.com/english/wiki/visualize-correlation-matrix-using-correlogram</span></span>
<span id="cb8-4"></span>
<span id="cb8-5">cor.mtest <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(mat, ...) {</span>
<span id="cb8-6">    mat <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;">as.matrix</span>(mat)</span>
<span id="cb8-7">    n <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;">ncol</span>(mat)</span>
<span id="cb8-8">    p.mat<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;">matrix</span>(<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>, n, n)</span>
<span id="cb8-9">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">diag</span>(p.mat) <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;">0</span></span>
<span id="cb8-10">    <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="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>(n <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="cb8-11">        <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> (j <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> (i <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>n) {</span>
<span id="cb8-12">            tmp <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;">cor.test</span>(mat[, i], mat[, j], ...)</span>
<span id="cb8-13">            p.mat[i, j] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> p.mat[j, i] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> tmp<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>p.value</span>
<span id="cb8-14">        }</span>
<span id="cb8-15">    }</span>
<span id="cb8-16">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">colnames</span>(p.mat) <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;">rownames</span>(p.mat) <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;">colnames</span>(mat)</span>
<span id="cb8-17">  p.mat</span>
<span id="cb8-18">}</span>
<span id="cb8-19"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># matrix of the p-value of the correlation</span></span>
<span id="cb8-20">p.mat <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;">cor.mtest</span>(cor_mat)</span>
<span id="cb8-21"></span>
<span id="cb8-22"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">corrplot</span>(</span>
<span id="cb8-23">  cor_mat, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">method=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"color"</span>, <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;">"upper"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">order=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"hclust"</span>, </span>
<span id="cb8-24">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">addCoef.col =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"black"</span>, <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Add coefficient of correlation</span></span>
<span id="cb8-25">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">tl.col=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"black"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">tl.srt=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">45</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">tl.cex=</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.6</span>, <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Text label color and rotation</span></span>
<span id="cb8-26">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">cl.cex =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.5</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">number.cex =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.75</span>,</span>
<span id="cb8-27">  <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Combine with significance</span></span>
<span id="cb8-28">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">p.mat =</span> p.mat, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sig.level =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">insig =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"blank"</span>, </span>
<span id="cb8-29">  <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># hide correlation coefficient on the principal diagonal</span></span>
<span id="cb8-30">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">diag=</span><span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span></span>
<span id="cb8-31">)</span></code></pre></div></div>
</details>
<div class="cell-output-display">
<div id="fig-cor-mat" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-cor-mat-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-cor-mat-1.png" class="img-fluid figure-img" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-cor-mat-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Correlation matrix of vaccine-attitude variables
</figcaption>
</figure>
</div>
</div>
</div>
<div class="callout callout-style-default callout-caution 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">Caution</span>Audit note: significance masking in the correlation plot
</div>
</div>
<div class="callout-body-container callout-body">
<p>In this recorded workflow, <code>cor.mtest()</code> was applied to <code>cor_mat</code> rather than to the original item-level data. The significance masking in the displayed correlation plot should therefore be treated as an exploratory display rather than as a valid set of tests for the original item correlations. The correlation matrix itself and the downstream factor analyses do not depend on <code>p.mat</code>.</p>
</div>
</div>
<p>The correlation matrix suggests potential clustering into two or three groups:</p>
<ol type="1">
<li><code>vac_gen_4</code>, <code>covid_ag_1</code>, <code>covid_ag_2</code>, and <code>covid_over18</code> form a cluster.</li>
<li>Other variables (except for <code>vac_gen_6</code>) form a cluster.</li>
<li><code>vac_gen_6</code> might form its own cluster but appears closer to the second cluster. Subsequent analyses did not identify a distinct factor defined by this item.</li>
</ol>
<p>Note that this is a preliminary observation based on correlations. The underlying latent structure will be formally investigated using factor analysis.</p>
</section>
<section id="factor-analysis" class="level2 page-columns page-full" data-number="3.2">
<h2 data-number="3.2" class="anchored" data-anchor-id="factor-analysis"><span class="header-section-number">3.2</span> Factor analysis</h2>
<section id="pre-tests-and-scree-plots" class="level3" data-number="3.2.1">
<h3 data-number="3.2.1" class="anchored" data-anchor-id="pre-tests-and-scree-plots"><span class="header-section-number">3.2.1</span> Pre-tests and scree plots</h3>
<p>Kaiser-Meyer-Olkin (KMO) measure and Bartlett’s test of sphericity are used to assess the suitability of the data for factor analysis.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-4-contents" aria-controls="callout-4" aria-expanded="false" aria-label="Toggle callout">
<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>Interpretation notes: factorability diagnostics
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-4" class="callout-4-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<ul>
<li>The Kaiser-Meyer-Olkin (KMO) statistic summarizes whether the pattern of correlations is sufficiently compact for common-factor analysis; larger values indicate greater factorability.</li>
<li>Bartlett’s test evaluates whether the correlation matrix differs from an identity matrix. A small p-value indicates that the items are not mutually uncorrelated, but it does not determine the number of factors or establish that a particular factor solution is appropriate.</li>
</ul>
</div>
</div>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Kaiser-Meyer-Olkin statistic</span></span>
<span id="cb9-2">KMO_result <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;">KMO</span>(cor_mat)</span>
<span id="cb9-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">print</span>(KMO_result)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Kaiser-Meyer-Olkin factor adequacy
Call: KMO(r = cor_mat)
Overall MSA =  0.94
MSA for each item = 
        vac_gen_1         vac_gen_2         vac_gen_3         vac_gen_4 
             0.94              0.94              0.63              0.69 
        vac_gen_5         vac_gen_6       covid_pro_1        covid_ag_1 
             0.97              0.94              0.97              0.96 
       covid_ag_2       covid_pro_2      covid_over18    covid_pregnant 
             0.97              0.96              0.95              0.96 
   covid_children     covid_oblig_1     covid_oblig_2     covid_leaders 
             0.94              0.96              0.96              0.96 
covid_earlyaccess 
             0.94 </code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<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="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Bartlett's test of sphericity</span></span>
<span id="cb11-2">bartlett_result <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;">cortest.bartlett</span>(cor_mat, <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;">nrow</span>(data))</span>
<span id="cb11-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">print</span>(bartlett_result)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>$chisq
[1] 6930.036

$p.value
[1] 0

$df
[1] 136</code></pre>
</div>
</div>
<p>The recorded KMO value and Bartlett test were used at the time as preliminary checks of factorability. These diagnostics do not, by themselves, establish an appropriate dimensional model.</p>
<div class="callout callout-style-default callout-caution 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">Caution</span>Audit note: sample size in Bartlett’s test
</div>
</div>
<div class="callout-body-container callout-body">
<p>The recorded call supplied <code>nrow(data)</code> as the sample size, whereas <code>cor_mat</code> was calculated from the complete-case dataset <code>fa_data</code>. The frozen chi-square statistic is retained here as part of the original workflow, but a reanalysis should use the effective sample size corresponding to the correlation matrix. This issue does not alter the subsequent factor-model estimates, which were fitted directly to <code>fa_data</code>.</p>
</div>
</div>
<p>A key challenge in EFA is determining the optimal number of factors to retain. Parallel analysis is employed to guide the decision on the number of factors. This procedure compares the eigenvalues from the actual data’s correlation matrix with eigenvalues derived from random data matrices of the same size. The number of factors suggested is the count of actual eigenvalues that exceed the corresponding eigenvalues (or the 95th percentile thereof) from the random data.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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;">fa.parallel</span>(fa_data, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fm =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ml"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fa =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nfactors =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>) </span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Parallel analysis suggests that the number of factors =  3  and the number of components =  NA </code></pre>
</div>
<div class="cell-output-display">
<div id="fig-scree" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-scree-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-scree-1.png" class="img-fluid figure-img" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-scree-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Scree plot of eigenvalues
</figcaption>
</figure>
</div>
</div>
</div>
<p>With maximum-likelihood factor analysis specified (<code>fm = "ml"</code>), the displayed parallel analysis suggested retaining three factors. This result was treated as one input to the exploratory comparison rather than as a definitive decision. Visual inspection of the scree plot could support a smaller solution, while the Kaiser eigenvalue-greater-than-one rule suggested one factor; the latter was not used as the primary retention criterion.</p>
<p>This analysis does not aim to develop a new measurement instrument or uncover ‘true’ latent constructs. Instead, the goal is to explore whether the factor structure in this data aligns with the established 5C model. To facilitate comparison with the 5C model, solutions with 3, 4, and 5 factors will be examined. Therefore, 3-, 4-, and 5-factor models are explored below. For each number of factors (3, 4, and 5), both orthogonal (“Varimax”) and oblique (“Oblimin”) rotations are applied. Factor scores are estimated using the regression method.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-6-contents" aria-controls="callout-6" aria-expanded="false" aria-label="Toggle callout">
<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>Interpretation notes: factor solutions
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-6" class="callout-6-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<ul>
<li>Factor loadings describe the relation between each item and the factors.</li>
<li><code>h2</code> is the communality, or the proportion of an item’s variance represented by the retained factors; <code>u2</code> is its uniqueness (<code>1 - h2</code>).</li>
<li><code>com</code> is Hofmann’s item-complexity index. Values near one indicate that an item is primarily associated with one factor, whereas larger values indicate more complex loading patterns.</li>
<li>Model comparison also considered cross-loadings, factor correlations, simple structure, theoretical interpretability, and the proportion of variance represented. Conventional numerical cutoffs were treated as descriptive guides rather than universal decision rules.</li>
</ul>
</div>
</div>
</div>
</section>
<section id="orthogonal-rotation" class="level3 page-columns page-full" data-number="3.2.2">
<h3 data-number="3.2.2" class="anchored" data-anchor-id="orthogonal-rotation"><span class="header-section-number">3.2.2</span> Orthogonal rotation</h3>
<div class="tabset-margin-container"></div><div class="panel-tabset">
<ul class="nav nav-tabs"><li class="nav-item"><a class="nav-link active" id="tabset-1-1-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-1" aria-controls="tabset-1-1" aria-selected="true" href="">n = 3</a></li><li class="nav-item"><a class="nav-link" id="tabset-1-2-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-2" aria-controls="tabset-1-2" aria-selected="false" href="">n = 4</a></li><li class="nav-item"><a class="nav-link" id="tabset-1-3-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-3" aria-controls="tabset-1-3" aria-selected="false" href="">n = 5</a></li></ul>
<div class="tab-content">
<div id="tabset-1-1" class="tab-pane active" aria-labelledby="tabset-1-1-tab">
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb15" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb15-1">fa3 <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;">fa</span>(fa_data, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nfactors =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rotate =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"varimax"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">scores =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"regression"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fm =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ml"</span>)</span>
<span id="cb15-2">fa3</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 3, rotate = "varimax", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML1   ML3   ML2   h2   u2 com
vac_gen_1          0.39  0.70 -0.11 0.66 0.34 1.6
vac_gen_2          0.38  0.78 -0.09 0.77 0.23 1.5
vac_gen_3         -0.10 -0.03  0.94 0.89 0.11 1.0
vac_gen_4         -0.18 -0.07  0.82 0.71 0.29 1.1
vac_gen_5          0.32  0.38 -0.10 0.26 0.74 2.1
vac_gen_6          0.16  0.34  0.03 0.14 0.86 1.4
covid_pro_1        0.58  0.42 -0.07 0.52 0.48 1.9
covid_ag_1        -0.43 -0.30  0.22 0.32 0.68 2.3
covid_ag_2        -0.61 -0.42  0.18 0.58 0.42 2.0
covid_pro_2        0.63  0.53 -0.09 0.68 0.32 2.0
covid_over18      -0.67 -0.29  0.16 0.55 0.45 1.5
covid_pregnant     0.72  0.27 -0.15 0.61 0.39 1.4
covid_children     0.82  0.39 -0.11 0.83 0.17 1.5
covid_oblig_1      0.68  0.39 -0.08 0.62 0.38 1.6
covid_oblig_2      0.58  0.24 -0.13 0.41 0.59 1.4
covid_leaders      0.71  0.48 -0.08 0.74 0.26 1.8
covid_earlyaccess  0.55  0.59 -0.06 0.66 0.34 2.0

                       ML1  ML3  ML2
SS loadings           4.99 3.19 1.77
Proportion Var        0.29 0.19 0.10
Cumulative Var        0.29 0.48 0.59
Proportion Explained  0.50 0.32 0.18
Cumulative Proportion 0.50 0.82 1.00

Mean item complexity =  1.7
Test of the hypothesis that 3 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 88  and the objective function was  0.6 

The root mean square of the residuals (RMSR) is  0.03 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  58.36  with prob &lt;  0.99 
The total n.obs was  544  with Likelihood Chi Square =  318.07  with prob &lt;  8.9e-28 

Tucker Lewis Index of factoring reliability =  0.938
RMSEA index =  0.069  and the 90 % confidence intervals are  0.061 0.078
BIC =  -236.24
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML1  ML3  ML2
Correlation of (regression) scores with factors   0.91 0.86 0.95
Multiple R square of scores with factors          0.82 0.74 0.91
Minimum correlation of possible factor scores     0.64 0.48 0.82</code></pre>
</div>
</div>
</div>
<div id="tabset-1-2" class="tab-pane" aria-labelledby="tabset-1-2-tab">
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb17" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb17-1">fa4 <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;">fa</span>(fa_data, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nfactors =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rotate =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"varimax"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">scores =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"regression"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fm =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ml"</span>)</span>
<span id="cb17-2">fa4</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 4, rotate = "varimax", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML2   ML3   ML1   ML4   h2    u2 com
vac_gen_1          0.37  0.80 -0.11  0.08 0.80 0.197 1.5
vac_gen_2          0.39  0.69 -0.09  0.28 0.72 0.281 2.0
vac_gen_3         -0.09 -0.02  0.99 -0.03 1.00 0.005 1.0
vac_gen_4         -0.19 -0.07  0.78 -0.04 0.64 0.355 1.1
vac_gen_5          0.29  0.36 -0.10  0.18 0.26 0.741 2.7
vac_gen_6          0.17  0.32  0.03  0.08 0.14 0.864 1.7
covid_pro_1        0.56  0.37 -0.07  0.26 0.52 0.483 2.3
covid_ag_1        -0.43 -0.26  0.21 -0.16 0.32 0.680 2.5
covid_ag_2        -0.61 -0.41  0.17 -0.16 0.59 0.408 2.1
covid_pro_2        0.57  0.41 -0.08  0.46 0.72 0.281 2.8
covid_over18      -0.70 -0.31  0.15 -0.02 0.61 0.387 1.5
covid_pregnant     0.71  0.24 -0.15  0.18 0.61 0.386 1.5
covid_children     0.81  0.35 -0.11  0.22 0.84 0.164 1.6
covid_oblig_1      0.65  0.34 -0.07  0.26 0.61 0.385 1.9
covid_oblig_2      0.57  0.23 -0.13  0.12 0.41 0.592 1.6
covid_leaders      0.66  0.38 -0.08  0.42 0.76 0.240 2.4
covid_earlyaccess  0.46  0.45 -0.06  0.63 0.81 0.191 2.7

                       ML2  ML3  ML1  ML4
SS loadings           4.69 2.69 1.79 1.19
Proportion Var        0.28 0.16 0.11 0.07
Cumulative Var        0.28 0.43 0.54 0.61
Proportion Explained  0.45 0.26 0.17 0.12
Cumulative Proportion 0.45 0.71 0.88 1.00

Mean item complexity =  1.9
Test of the hypothesis that 4 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 74  and the objective function was  0.37 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  42  with prob &lt;  1 
The total n.obs was  544  with Likelihood Chi Square =  198.21  with prob &lt;  2.8e-13 

Tucker Lewis Index of factoring reliability =  0.96
RMSEA index =  0.056  and the 90 % confidence intervals are  0.046 0.065
BIC =  -267.91
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML2  ML3  ML1  ML4
Correlation of (regression) scores with factors   0.90 0.87 1.00 0.79
Multiple R square of scores with factors          0.82 0.75 0.99 0.62
Minimum correlation of possible factor scores     0.63 0.51 0.99 0.25</code></pre>
</div>
</div>
</div>
<div id="tabset-1-3" class="tab-pane" aria-labelledby="tabset-1-3-tab">
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb19" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb19-1">fa5 <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;">fa</span>(fa_data, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nfactors =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rotate =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"varimax"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">scores =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"regression"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fm =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ml"</span>)</span>
<span id="cb19-2">fa5</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 5, rotate = "varimax", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML3   ML2   ML5   ML1   ML4   h2    u2 com
vac_gen_1          0.81  0.24  0.29 -0.11  0.10 0.81 0.187 1.5
vac_gen_2          0.69  0.26  0.27 -0.09  0.31 0.72 0.285 2.1
vac_gen_3         -0.03 -0.08 -0.04  0.99 -0.04 1.00 0.005 1.0
vac_gen_4         -0.07 -0.14 -0.12  0.78 -0.05 0.65 0.354 1.1
vac_gen_5          0.36  0.22  0.17 -0.11  0.20 0.26 0.741 3.0
vac_gen_6          0.32  0.16  0.05  0.03  0.10 0.14 0.856 1.8
covid_pro_1        0.38  0.47  0.25 -0.07  0.31 0.53 0.470 3.4
covid_ag_1        -0.27 -0.35 -0.21  0.21 -0.20 0.32 0.677 4.0
covid_ag_2        -0.41 -0.46 -0.38  0.17 -0.21 0.59 0.409 3.7
covid_pro_2        0.42  0.41  0.34 -0.09  0.50 0.72 0.283 3.8
covid_over18      -0.34 -0.66 -0.26  0.15 -0.09 0.65 0.348 2.0
covid_pregnant     0.26  0.61  0.30 -0.15  0.26 0.62 0.375 2.4
covid_children     0.36  0.66  0.42 -0.11  0.29 0.84 0.164 2.9
covid_oblig_1      0.31  0.34  0.67 -0.08  0.26 0.73 0.265 2.4
covid_oblig_2      0.20  0.31  0.57 -0.14  0.12 0.50 0.503 2.1
covid_leaders      0.37  0.41  0.51 -0.09  0.45 0.78 0.222 3.8
covid_earlyaccess  0.46  0.29  0.27 -0.06  0.67 0.82 0.176 2.6

                       ML3  ML2  ML5  ML1  ML4
SS loadings           2.73 2.65 2.02 1.80 1.48
Proportion Var        0.16 0.16 0.12 0.11 0.09
Cumulative Var        0.16 0.32 0.44 0.54 0.63
Proportion Explained  0.26 0.25 0.19 0.17 0.14
Cumulative Proportion 0.26 0.50 0.69 0.86 1.00

Mean item complexity =  2.6
Test of the hypothesis that 5 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 61  and the objective function was  0.24 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  26.96  with prob &lt;  1 
The total n.obs was  544  with Likelihood Chi Square =  125.5  with prob &lt;  2.3e-06 

Tucker Lewis Index of factoring reliability =  0.975
RMSEA index =  0.044  and the 90 % confidence intervals are  0.033 0.055
BIC =  -258.74
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML3  ML2  ML5  ML1  ML4
Correlation of (regression) scores with factors   0.87 0.82 0.77 1.00 0.81
Multiple R square of scores with factors          0.76 0.68 0.59 0.99 0.66
Minimum correlation of possible factor scores     0.53 0.35 0.18 0.99 0.32</code></pre>
</div>
</div>
</div>
</div>
</div>
<div class="page-columns page-full">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb21" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb21-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fa.diagram</span>(fa3, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sort =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)</span>
<span id="cb21-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fa.diagram</span>(fa4, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sort =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)</span>
<span id="cb21-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fa.diagram</span>(fa5, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sort =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)</span></code></pre></div></div>
</details>
<div id="fig-fa-otho" class="quarto-layout-panel page-columns page-full">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-fa-otho-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca" class="page-columns page-full">
<div class="quarto-layout-row column-page">
<div class="cell-output-display quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-fa-otho" style="flex-basis: 33.3%;justify-content: flex-start;">
<div id="fig-fa-otho-1" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-fa-otho-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-fa-otho-1.png" class="img-fluid figure-img" data-ref-parent="fig-fa-otho" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-fa-otho-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(a) n = 3
</figcaption>
</figure>
</div>
</div>
<div class="cell-output-display quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-fa-otho" style="flex-basis: 33.3%;justify-content: flex-start;">
<div id="fig-fa-otho-2" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-fa-otho-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-fa-otho-2.png" class="img-fluid figure-img" data-ref-parent="fig-fa-otho" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-fa-otho-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(b) n = 4
</figcaption>
</figure>
</div>
</div>
<div class="cell-output-display quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-fa-otho" style="flex-basis: 33.3%;justify-content: flex-start;">
<div id="fig-fa-otho-3" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-fa-otho-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-fa-otho-3.png" class="img-fluid figure-img" data-ref-parent="fig-fa-otho" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-fa-otho-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(c) n = 5
</figcaption>
</figure>
</div>
</div>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-fa-otho-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Diagram of factor structure under the orthogonal rotation
</figcaption>
</figure>
</div>
</div>
</section>
<section id="oblique-rotation" class="level3 page-columns page-full" data-number="3.2.3">
<h3 data-number="3.2.3" class="anchored" data-anchor-id="oblique-rotation"><span class="header-section-number">3.2.3</span> Oblique rotation</h3>
<div class="tabset-margin-container"></div><div class="panel-tabset">
<ul class="nav nav-tabs"><li class="nav-item"><a class="nav-link active" id="tabset-2-1-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-1" aria-controls="tabset-2-1" aria-selected="true" href="">n = 3</a></li><li class="nav-item"><a class="nav-link" id="tabset-2-2-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-2" aria-controls="tabset-2-2" aria-selected="false" href="">n = 4</a></li><li class="nav-item"><a class="nav-link" id="tabset-2-3-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-3" aria-controls="tabset-2-3" aria-selected="false" href="">n = 5</a></li></ul>
<div class="tab-content">
<div id="tabset-2-1" class="tab-pane active" aria-labelledby="tabset-2-1-tab">
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb22" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb22-1">fa3_ob <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;">fa</span>(fa_data, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nfactors =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rotate =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"oblimin"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">scores =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"regression"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fm =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ml"</span>)</span>
<span id="cb22-2">fa3_ob</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 3, rotate = "oblimin", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML2   ML3   ML1   h2   u2 com
vac_gen_1          0.07  0.75 -0.05 0.66 0.34 1.0
vac_gen_2          0.00  0.87 -0.02 0.77 0.23 1.0
vac_gen_3          0.04 -0.01  0.95 0.89 0.11 1.0
vac_gen_4         -0.07 -0.01  0.82 0.71 0.29 1.0
vac_gen_5          0.18  0.33 -0.05 0.26 0.74 1.6
vac_gen_6          0.00  0.38  0.06 0.14 0.86 1.0
covid_pro_1        0.56  0.19  0.02 0.52 0.48 1.2
covid_ag_1        -0.39 -0.13  0.16 0.32 0.68 1.5
covid_ag_2        -0.59 -0.18  0.09 0.58 0.42 1.2
covid_pro_2        0.55  0.32  0.01 0.68 0.32 1.6
covid_over18      -0.77  0.06  0.05 0.55 0.45 1.0
covid_pregnant     0.86 -0.12 -0.04 0.61 0.39 1.0
covid_children     0.94 -0.03  0.02 0.83 0.17 1.0
covid_oblig_1      0.73  0.08  0.03 0.62 0.38 1.0
covid_oblig_2      0.68 -0.07 -0.04 0.41 0.59 1.0
covid_leaders      0.72  0.18  0.04 0.74 0.26 1.1
covid_earlyaccess  0.40  0.47  0.04 0.66 0.34 2.0

                       ML2  ML3  ML1
SS loadings           5.66 2.61 1.68
Proportion Var        0.33 0.15 0.10
Cumulative Var        0.33 0.49 0.59
Proportion Explained  0.57 0.26 0.17
Cumulative Proportion 0.57 0.83 1.00

 With factor correlations of 
      ML2   ML3   ML1
ML2  1.00  0.79 -0.28
ML3  0.79  1.00 -0.17
ML1 -0.28 -0.17  1.00

Mean item complexity =  1.2
Test of the hypothesis that 3 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 88  and the objective function was  0.6 

The root mean square of the residuals (RMSR) is  0.03 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  58.36  with prob &lt;  0.99 
The total n.obs was  544  with Likelihood Chi Square =  318.07  with prob &lt;  8.9e-28 

Tucker Lewis Index of factoring reliability =  0.938
RMSEA index =  0.069  and the 90 % confidence intervals are  0.061 0.078
BIC =  -236.24
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML2  ML3  ML1
Correlation of (regression) scores with factors   0.80 0.76 0.95
Multiple R square of scores with factors          0.64 0.58 0.91
Minimum correlation of possible factor scores     0.28 0.15 0.82</code></pre>
</div>
</div>
</div>
<div id="tabset-2-2" class="tab-pane" aria-labelledby="tabset-2-2-tab">
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb24" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb24-1">fa4_ob <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;">fa</span>(fa_data, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nfactors =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rotate =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"oblimin"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">scores =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"regression"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fm =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ml"</span>)</span>
<span id="cb24-2">fa4_ob</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 4, rotate = "oblimin", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML3   ML4   ML1   ML2   h2    u2 com
vac_gen_1          0.01  0.92 -0.01 -0.06 0.80 0.197 1.0
vac_gen_2          0.03  0.68 -0.01  0.21 0.72 0.281 1.2
vac_gen_3          0.05  0.01  1.01 -0.01 1.00 0.005 1.0
vac_gen_4         -0.10  0.00  0.77  0.01 0.64 0.355 1.0
vac_gen_5          0.13  0.30 -0.06  0.13 0.26 0.741 1.9
vac_gen_6          0.03  0.33  0.07  0.04 0.14 0.864 1.1
covid_pro_1        0.49  0.15  0.02  0.16 0.52 0.483 1.4
covid_ag_1        -0.39 -0.09  0.15 -0.07 0.32 0.680 1.5
covid_ag_2        -0.57 -0.21  0.06 -0.02 0.59 0.408 1.3
covid_pro_2        0.40  0.13 -0.02  0.42 0.72 0.281 2.2
covid_over18      -0.83 -0.08  0.02  0.19 0.61 0.387 1.1
covid_pregnant     0.81 -0.09 -0.04  0.03 0.61 0.386 1.0
covid_children     0.89  0.00  0.02  0.05 0.84 0.164 1.0
covid_oblig_1      0.64  0.06  0.02  0.14 0.61 0.385 1.1
covid_oblig_2      0.64 -0.01 -0.04 -0.01 0.41 0.592 1.0
covid_leaders      0.57  0.06  0.00  0.34 0.76 0.240 1.7
covid_earlyaccess  0.14  0.20 -0.03  0.66 0.81 0.191 1.3

                       ML3  ML4  ML1  ML2
SS loadings           4.96 2.23 1.71 1.46
Proportion Var        0.29 0.13 0.10 0.09
Cumulative Var        0.29 0.42 0.52 0.61
Proportion Explained  0.48 0.22 0.17 0.14
Cumulative Proportion 0.48 0.69 0.86 1.00

 With factor correlations of 
      ML3   ML4   ML1   ML2
ML3  1.00  0.75 -0.29  0.63
ML4  0.75  1.00 -0.21  0.58
ML1 -0.29 -0.21  1.00 -0.08
ML2  0.63  0.58 -0.08  1.00

Mean item complexity =  1.3
Test of the hypothesis that 4 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 74  and the objective function was  0.37 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  42  with prob &lt;  1 
The total n.obs was  544  with Likelihood Chi Square =  198.21  with prob &lt;  2.8e-13 

Tucker Lewis Index of factoring reliability =  0.96
RMSEA index =  0.056  and the 90 % confidence intervals are  0.046 0.065
BIC =  -267.91
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                   ML3  ML4  ML1   ML2
Correlation of (regression) scores with factors   0.75 0.76 0.99  0.67
Multiple R square of scores with factors          0.56 0.58 0.99  0.44
Minimum correlation of possible factor scores     0.11 0.16 0.98 -0.11</code></pre>
</div>
</div>
</div>
<div id="tabset-2-3" class="tab-pane" aria-labelledby="tabset-2-3-tab">
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb26" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb26-1">fa5_ob <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;">fa</span>(fa_data, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nfactors =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rotate =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"oblimin"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">scores =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"regression"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fm =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ml"</span>)</span>
<span id="cb26-2">fa5_ob</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Factor Analysis using method =  ml
Call: fa(r = fa_data, nfactors = 5, rotate = "oblimin", scores = "regression", 
    fm = "ml")
Standardized loadings (pattern matrix) based upon correlation matrix
                    ML5   ML4   ML2   ML1   ML3   h2    u2 com
vac_gen_1          0.01  0.89  0.04 -0.04 -0.01 0.81 0.187 1.0
vac_gen_2          0.04  0.62  0.02  0.25 -0.01 0.72 0.285 1.3
vac_gen_3          0.02  0.01  0.04 -0.01  1.01 1.00 0.005 1.0
vac_gen_4         -0.04 -0.01 -0.07  0.02  0.77 0.65 0.354 1.0
vac_gen_5          0.12  0.27  0.01  0.16 -0.06 0.26 0.741 2.2
vac_gen_6          0.15  0.30 -0.13  0.08  0.08 0.14 0.856 2.3
covid_pro_1        0.46  0.12  0.00  0.24  0.02 0.53 0.470 1.7
covid_ag_1        -0.33 -0.08 -0.04 -0.12  0.15 0.32 0.677 1.8
covid_ag_2        -0.37 -0.21 -0.21 -0.05  0.07 0.59 0.409 2.3
covid_pro_2        0.25  0.09  0.14  0.47 -0.02 0.72 0.283 1.8
covid_over18      -0.84 -0.09  0.04  0.11  0.02 0.65 0.348 1.1
covid_pregnant     0.70 -0.08  0.06  0.12 -0.05 0.62 0.375 1.1
covid_children     0.67  0.01  0.19  0.12  0.01 0.84 0.164 1.2
covid_oblig_1      0.00  0.07  0.78  0.06  0.01 0.73 0.265 1.0
covid_oblig_2      0.06  0.02  0.68 -0.10 -0.05 0.50 0.503 1.1
covid_leaders      0.16  0.04  0.44  0.35  0.00 0.78 0.222 2.2
covid_earlyaccess  0.04  0.12  0.06  0.75 -0.03 0.82 0.176 1.1

                       ML5  ML4  ML2  ML1  ML3
SS loadings           3.09 2.02 2.00 1.85 1.72
Proportion Var        0.18 0.12 0.12 0.11 0.10
Cumulative Var        0.18 0.30 0.42 0.53 0.63
Proportion Explained  0.29 0.19 0.19 0.17 0.16
Cumulative Proportion 0.29 0.48 0.66 0.84 1.00

 With factor correlations of 
      ML5   ML4   ML2   ML1   ML3
ML5  1.00  0.69  0.80  0.63 -0.29
ML4  0.69  1.00  0.65  0.63 -0.20
ML2  0.80  0.65  1.00  0.64 -0.23
ML1  0.63  0.63  0.64  1.00 -0.11
ML3 -0.29 -0.20 -0.23 -0.11  1.00

Mean item complexity =  1.5
Test of the hypothesis that 5 factors are sufficient.

df null model =  136  with the objective function =  11.06 with Chi Square =  5934.5
df of  the model are 61  and the objective function was  0.24 

The root mean square of the residuals (RMSR) is  0.02 
The df corrected root mean square of the residuals is  0.03 

The harmonic n.obs is  544 with the empirical chi square  26.96  with prob &lt;  1 
The total n.obs was  544  with Likelihood Chi Square =  125.5  with prob &lt;  2.3e-06 

Tucker Lewis Index of factoring reliability =  0.975
RMSEA index =  0.044  and the 90 % confidence intervals are  0.033 0.055
BIC =  -258.74
Fit based upon off diagonal values = 1
Measures of factor score adequacy             
                                                    ML5  ML4   ML2   ML1  ML3
Correlation of (regression) scores with factors    0.64 0.71  0.62  0.64 0.99
Multiple R square of scores with factors           0.41 0.51  0.38  0.41 0.99
Minimum correlation of possible factor scores     -0.18 0.02 -0.23 -0.17 0.98</code></pre>
</div>
</div>
</div>
</div>
</div>
<p>I prefer the <code>fa5_ob</code> model. However, caution is advised regarding the item complexity (com) values which are larger than 2. This suggests these items load substantially on more than one factor, indicating potential cross-loading. Similar cross-loading issues are observed in other solutions as well.</p>
<div class="page-columns page-full">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb28" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb28-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fa.diagram</span>(fa3_ob, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sort =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)</span>
<span id="cb28-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fa.diagram</span>(fa4_ob, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sort =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)</span>
<span id="cb28-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fa.diagram</span>(fa5_ob, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">sort =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)</span></code></pre></div></div>
</details>
<div id="fig-fa-obli" class="quarto-layout-panel page-columns page-full">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-fa-obli-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca" class="page-columns page-full">
<div class="quarto-layout-row column-page">
<div class="cell-output-display quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-fa-obli" style="flex-basis: 33.3%;justify-content: flex-start;">
<div id="fig-fa-obli-1" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-fa-obli-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-fa-obli-1.png" class="img-fluid figure-img" data-ref-parent="fig-fa-obli" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-fa-obli-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(a) n = 3
</figcaption>
</figure>
</div>
</div>
<div class="cell-output-display quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-fa-obli" style="flex-basis: 33.3%;justify-content: flex-start;">
<div id="fig-fa-obli-2" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-fa-obli-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-fa-obli-2.png" class="img-fluid figure-img" data-ref-parent="fig-fa-obli" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-fa-obli-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(b) n = 4
</figcaption>
</figure>
</div>
</div>
<div class="cell-output-display quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-fa-obli" style="flex-basis: 33.3%;justify-content: flex-start;">
<div id="fig-fa-obli-3" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-fa-obli-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/index_files/figure-html/fig-fa-obli-3.png" class="img-fluid figure-img" data-ref-parent="fig-fa-obli" width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-fa-obli-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(c) n = 5
</figcaption>
</figure>
</div>
</div>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-fa-obli-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: Diagram of factor structure under the oblique rotation
</figcaption>
</figure>
</div>
</div>
</section>
<section id="overall-comparison" class="level3" data-number="3.2.4">
<h3 data-number="3.2.4" class="anchored" data-anchor-id="overall-comparison"><span class="header-section-number">3.2.4</span> Overall comparison</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb29" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb29-1">assign_fac <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(f){</span>
<span id="cb29-2">  fac_load_abs <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;">abs</span>(f<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>loadings)</span>
<span id="cb29-3">  mac_loadings <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;">apply</span>(fac_load_abs, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, which.max)</span>
<span id="cb29-4">}</span>
<span id="cb29-5"></span>
<span id="cb29-6">fa_models <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>(fa3, fa4, fa5, fa3_ob, fa4_ob, fa5_ob)</span>
<span id="cb29-7">fa_load_comp <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;">map_dfc</span>(fa_models, assign_fac)</span>
<span id="cb29-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(fa_load_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa5"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa3_ob"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa4_ob"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa5_ob"</span>)</span>
<span id="cb29-9"></span>
<span id="cb29-10">fa_load_comp <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> fa_load_comp <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb29-11">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_column</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">var =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">colnames</span>(fa_data), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.before =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa3"</span>)</span>
<span id="cb29-12">fa_load_comp</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 17 × 7
   var                 fa3   fa4   fa5 fa3_ob fa4_ob fa5_ob
   &lt;chr&gt;             &lt;int&gt; &lt;int&gt; &lt;int&gt;  &lt;int&gt;  &lt;int&gt;  &lt;int&gt;
 1 vac_gen_1             2     2     1      2      2      2
 2 vac_gen_2             2     2     1      2      2      2
 3 vac_gen_3             3     3     4      3      3      5
 4 vac_gen_4             3     3     4      3      3      5
 5 vac_gen_5             2     2     1      2      2      2
 6 vac_gen_6             2     2     1      2      2      2
 7 covid_pro_1           1     1     2      1      1      1
 8 covid_ag_1            1     1     2      1      1      1
 9 covid_ag_2            1     1     2      1      1      1
10 covid_pro_2           1     1     5      1      4      4
11 covid_over18          1     1     2      1      1      1
12 covid_pregnant        1     1     2      1      1      1
13 covid_children        1     1     2      1      1      1
14 covid_oblig_1         1     1     3      1      1      3
15 covid_oblig_2         1     1     3      1      1      3
16 covid_leaders         1     1     3      1      1      3
17 covid_earlyaccess     2     4     5      2      4      4</code></pre>
</div>
</div>
<div id="fig-fa-stru-comp" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-fa-stru-comp-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tzuyaolin.com/posts/20250328_VHS/fa_structure.png" class="img-fluid figure-img">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-fa-stru-comp-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: FA structure comparison
</figcaption>
</figure>
</div>
<p>Comparing the factor structures visually (Figure Figure&nbsp;5), the five-factor oblique solution (<code>fa5_ob</code>) appeared most readily interpretable in relation to the 5C model at this stage of the analysis.</p>
<p>Fit indices for the candidate solutions are recorded in Table Table&nbsp;1. They were considered alongside the loading patterns and theoretical interpretation rather than as independent proof of a particular dimensional structure.</p>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb31" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb31-1">fa_model_fit <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 class="at" style="color: #657422;
background-color: null;
font-style: inherit;">models =</span> fa_models, </span>
<span id="cb31-2">                       <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">names =</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;">"fa3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa5"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa3_ob"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa4_ob"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fa5_ob"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb31-3">  <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;">fit =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fit"</span>),</span>
<span id="cb31-4">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fit.off =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fit.off"</span>),</span>
<span id="cb31-5">         <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;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"STATISTIC"</span>), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># chi-square</span></span>
<span id="cb31-6">         <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;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"dof"</span>), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># degree of freedom</span></span>
<span id="cb31-7">         <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;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PVAL"</span>), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># p-value of the chi-square test</span></span>
<span id="cb31-8">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">RMS =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"rms"</span>), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># root mean square (off diagonal residuals) / df</span></span>
<span id="cb31-9">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">cRMS =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"crms"</span>), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># rms adjusted for degrees of freedom</span></span>
<span id="cb31-10">         <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;">map_dbl</span>(models, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> .<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>RMSEA[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>]]), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># root mean square error of approximation</span></span>
<span id="cb31-11">         <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">TLI =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"TLI"</span>), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Tucker-Lewis Index (the non-normal fit index)</span></span>
<span id="cb31-12">         <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;">map_dbl</span>(models, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"BIC"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb31-13">  <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>models)</span>
<span id="cb31-14"></span>
<span id="cb31-15"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># map_dbl(fa_models, `$`, chi)      # empirical chi-square</span></span>
<span id="cb31-16"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># map_dbl(fa_models, `$`, objective) # objective function used in ML</span></span>
<span id="cb31-17"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># map_dbl(fa_models, `$`, eBIC)     # empirical BIC</span></span>
<span id="cb31-18"></span>
<span id="cb31-19">fa_model_fit</span></code></pre></div></div>
</details>
<div id="tbl-fit-indices" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-fit-indices-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: Fit indices for the candidate factor models
</figcaption>
<div aria-describedby="tbl-fit-indices-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 6 × 11
  names    fit fit.off  chi2    df  p.value    RMS   cRMS  RMSEA   TLI   BIC
  &lt;chr&gt;  &lt;dbl&gt;   &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt;    &lt;dbl&gt;  &lt;dbl&gt;  &lt;dbl&gt;  &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt;
1 fa3    0.951   0.996  318.    88 8.93e-28 0.0281 0.0349 0.0693 0.938 -236.
2 fa4    0.954   0.997  198.    74 2.76e-13 0.0238 0.0323 0.0555 0.960 -268.
3 fa5    0.958   0.998  126.    61 2.29e- 6 0.0191 0.0285 0.0440 0.975 -259.
4 fa3_ob 0.951   0.996  318.    88 8.93e-28 0.0281 0.0349 0.0693 0.938 -236.
5 fa4_ob 0.954   0.997  198.    74 2.76e-13 0.0238 0.0323 0.0555 0.960 -268.
6 fa5_ob 0.958   0.998  126.    61 2.29e- 6 0.0191 0.0285 0.0440 0.975 -259.</code></pre>
</div>
</div>
</figure>
</div>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-7-contents" aria-controls="callout-7" aria-expanded="false" aria-label="Toggle callout">
<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>Interpretation notes: model fit
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-7" class="callout-7-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<ul>
<li>The likelihood-ratio chi-square evaluates exact fit and is sensitive to sample size.</li>
<li>RMS and cRMS summarize residual discrepancies between the observed and model-implied correlations.</li>
<li>RMSEA assesses approximate fit and should be interpreted with its uncertainty interval when available.</li>
<li>TLI compares the proposed model with a more restrictive baseline model while penalizing complexity.</li>
<li>BIC balances fit and complexity; lower values favor a model within the set being compared.</li>
</ul>
<p>No single index determined the working solution. Model fit was considered together with parsimony, loading structure, factor correlations, and theoretical interpretability.</p>
</div>
</div>
</div>
<p>See also:</p>
<ul>
<li><span class="citation" data-cites="preacher2003">Preacher &amp; MacCallum (2003)</span></li>
<li><a href="https://m-clark.github.io/posts/2020-04-10-psych-explained/">Factor Analysis with the psych package: Making sense of the results</a></li>
<li><a href="https://personality-project.org/r/psych/HowTo/factor.pdf">How To: Use the psych package for Factor Analysis and data reduction</a></li>
</ul>
</section>
<section id="working-decision-at-this-stage" class="level3" data-number="3.2.5">
<h3 data-number="3.2.5" class="anchored" data-anchor-id="working-decision-at-this-stage"><span class="header-section-number">3.2.5</span> Working decision at this stage</h3>
<p>The recorded fit indices did not point uniformly to a single solution. The displayed parallel analysis suggested three factors, whereas BIC was lower for the four-factor solutions. The five-factor solutions showed more favorable TLI and RMSEA values than the smaller solutions.</p>
<p>At this stage of manuscript development, the five-factor oblique solution (<code>fa5_ob</code>) was retained as the working model. The decision considered the study’s connection to the 5C framework, the interpretability of the loading pattern, correlations among the factors, and the model-fit indices. It should not be read as evidence that the statistical criteria independently established a five-factor structure.</p>
<div class="callout callout-style-default callout-important 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">Important</span>Relation to the published analysis
</div>
</div>
<div class="callout-body-container callout-body">
<p>This section records an intermediate stage of model exploration. The subsequently <a href="https://doi.org/10.7189/001c.144190">published article</a> reported the five-factor oblique solution after considering statistical fit and theoretical interpretation, including a distinction between general collective responsibility and obligated collective responsibility. The article and its supplementary materials provide the definitive model description and substantive interpretation.</p>
</div>
</div>
<p>For the working five-factor solution, Table Table&nbsp;2 displays loadings with an absolute value greater than 0.26, matching the presentation threshold later used in the published article.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb33" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb33-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Factor loadings retained for the working analysis record</span></span>
<span id="cb33-2">fa_load <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> fa5_ob<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>loadings[,] <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%&gt;%</span></span>
<span id="cb33-3">  <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>(.) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.26</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;">|&gt;</span> <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># display threshold used in the article</span></span>
<span id="cb33-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">round</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="cb33-5">  <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="cb33-6">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_column</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">vars =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(fa_data), <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;">1</span>)</span>
<span id="cb33-7"></span>
<span id="cb33-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(fa_load) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb33-9">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"-"</span>) </span></code></pre></div></div>
</details>
<div id="tbl-fa-loadings" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-fa-loadings-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;2: Factor loadings for the working five-factor oblique solution
</figcaption>
<div aria-describedby="tbl-fa-loadings-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="laashywghe" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#laashywghe table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#laashywghe thead, #laashywghe tbody, #laashywghe tfoot, #laashywghe tr, #laashywghe td, #laashywghe th {
  border-style: none;
}

#laashywghe p {
  margin: 0;
  padding: 0;
}

#laashywghe .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#laashywghe .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#laashywghe .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#laashywghe .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#laashywghe .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#laashywghe .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#laashywghe .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#laashywghe .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#laashywghe .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#laashywghe .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#laashywghe .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#laashywghe .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#laashywghe .gt_spanner_row {
  border-bottom-style: hidden;
}

#laashywghe .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#laashywghe .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#laashywghe .gt_from_md > :first-child {
  margin-top: 0;
}

#laashywghe .gt_from_md > :last-child {
  margin-bottom: 0;
}

#laashywghe .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#laashywghe .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#laashywghe .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#laashywghe .gt_row_group_first td {
  border-top-width: 2px;
}

#laashywghe .gt_row_group_first th {
  border-top-width: 2px;
}

#laashywghe .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#laashywghe .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#laashywghe .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#laashywghe .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#laashywghe .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#laashywghe .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#laashywghe .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#laashywghe .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#laashywghe .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#laashywghe .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#laashywghe .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#laashywghe .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#laashywghe .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#laashywghe .gt_left {
  text-align: left;
}

#laashywghe .gt_center {
  text-align: center;
}

#laashywghe .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#laashywghe .gt_font_normal {
  font-weight: normal;
}

#laashywghe .gt_font_bold {
  font-weight: bold;
}

#laashywghe .gt_font_italic {
  font-style: italic;
}

#laashywghe .gt_super {
  font-size: 65%;
}

#laashywghe .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#laashywghe .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#laashywghe .gt_indent_1 {
  text-indent: 5px;
}

#laashywghe .gt_indent_2 {
  text-indent: 10px;
}

#laashywghe .gt_indent_3 {
  text-indent: 15px;
}

#laashywghe .gt_indent_4 {
  text-indent: 20px;
}

#laashywghe .gt_indent_5 {
  text-indent: 25px;
}

#laashywghe .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#laashywghe div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<thead>
<tr class="gt_col_headings header">
<th id="vars" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">vars</th>
<th id="ML5" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML5</th>
<th id="ML4" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML4</th>
<th id="ML2" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML2</th>
<th id="ML1" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML1</th>
<th id="ML3" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML3</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="vars">vac_gen_1</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">0.891</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">vac_gen_2</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">0.620</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">vac_gen_3</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">1.011</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">vac_gen_4</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">0.771</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">vac_gen_5</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">0.269</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">vac_gen_6</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">0.299</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">covid_pro_1</td>
<td class="gt_row gt_right" headers="ML5">0.459</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">covid_ag_1</td>
<td class="gt_row gt_right" headers="ML5">-0.333</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">covid_ag_2</td>
<td class="gt_row gt_right" headers="ML5">-0.371</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">covid_pro_2</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">0.470</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">covid_over18</td>
<td class="gt_row gt_right" headers="ML5">-0.841</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">covid_pregnant</td>
<td class="gt_row gt_right" headers="ML5">0.700</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">covid_children</td>
<td class="gt_row gt_right" headers="ML5">0.669</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">covid_oblig_1</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">0.777</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">covid_oblig_2</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">0.684</td>
<td class="gt_row gt_right" headers="ML1">-</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="vars">covid_leaders</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">0.445</td>
<td class="gt_row gt_right" headers="ML1">0.350</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="vars">covid_earlyaccess</td>
<td class="gt_row gt_right" headers="ML5">-</td>
<td class="gt_row gt_right" headers="ML4">-</td>
<td class="gt_row gt_right" headers="ML2">-</td>
<td class="gt_row gt_right" headers="ML1">0.752</td>
<td class="gt_row gt_right" headers="ML3">-</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
<p>Because an oblique rotation was used, Table Table&nbsp;3 also records the inter-factor correlation matrix (Phi matrix).</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb34" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb34-1">fa_phi <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> fa5_ob<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Phi <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb34-2">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">round</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="cb34-3">  <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="cb34-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_column</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;">colnames</span>(fa5_ob<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Phi), <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;">1</span>)</span>
<span id="cb34-5"></span>
<span id="cb34-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(fa_phi)</span></code></pre></div></div>
</details>
<div id="tbl-fa-Phi" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-fa-Phi-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;3: Inter-factor correlation matrix
</figcaption>
<div aria-describedby="tbl-fa-Phi-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="pjnznocwgq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#pjnznocwgq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#pjnznocwgq thead, #pjnznocwgq tbody, #pjnznocwgq tfoot, #pjnznocwgq tr, #pjnznocwgq td, #pjnznocwgq th {
  border-style: none;
}

#pjnznocwgq p {
  margin: 0;
  padding: 0;
}

#pjnznocwgq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#pjnznocwgq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#pjnznocwgq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#pjnznocwgq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#pjnznocwgq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pjnznocwgq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pjnznocwgq .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#pjnznocwgq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#pjnznocwgq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#pjnznocwgq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#pjnznocwgq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#pjnznocwgq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#pjnznocwgq .gt_spanner_row {
  border-bottom-style: hidden;
}

#pjnznocwgq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#pjnznocwgq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#pjnznocwgq .gt_from_md > :first-child {
  margin-top: 0;
}

#pjnznocwgq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#pjnznocwgq .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#pjnznocwgq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#pjnznocwgq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#pjnznocwgq .gt_row_group_first td {
  border-top-width: 2px;
}

#pjnznocwgq .gt_row_group_first th {
  border-top-width: 2px;
}

#pjnznocwgq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#pjnznocwgq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#pjnznocwgq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#pjnznocwgq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pjnznocwgq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#pjnznocwgq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#pjnznocwgq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#pjnznocwgq .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#pjnznocwgq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#pjnznocwgq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pjnznocwgq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#pjnznocwgq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#pjnznocwgq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#pjnznocwgq .gt_left {
  text-align: left;
}

#pjnznocwgq .gt_center {
  text-align: center;
}

#pjnznocwgq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#pjnznocwgq .gt_font_normal {
  font-weight: normal;
}

#pjnznocwgq .gt_font_bold {
  font-weight: bold;
}

#pjnznocwgq .gt_font_italic {
  font-style: italic;
}

#pjnznocwgq .gt_super {
  font-size: 65%;
}

#pjnznocwgq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#pjnznocwgq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#pjnznocwgq .gt_indent_1 {
  text-indent: 5px;
}

#pjnznocwgq .gt_indent_2 {
  text-indent: 10px;
}

#pjnznocwgq .gt_indent_3 {
  text-indent: 15px;
}

#pjnznocwgq .gt_indent_4 {
  text-indent: 20px;
}

#pjnznocwgq .gt_indent_5 {
  text-indent: 25px;
}

#pjnznocwgq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#pjnznocwgq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<thead>
<tr class="gt_col_headings header">
<th id="_" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">_</th>
<th id="ML5" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML5</th>
<th id="ML4" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML4</th>
<th id="ML2" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML2</th>
<th id="ML1" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML1</th>
<th id="ML3" class="gt_col_heading gt_columns_bottom_border gt_right" data-quarto-table-cell-role="th" scope="col">ML3</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="_">ML5</td>
<td class="gt_row gt_right" headers="ML5">1.000</td>
<td class="gt_row gt_right" headers="ML4">0.688</td>
<td class="gt_row gt_right" headers="ML2">0.798</td>
<td class="gt_row gt_right" headers="ML1">0.632</td>
<td class="gt_row gt_right" headers="ML3">-0.291</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="_">ML4</td>
<td class="gt_row gt_right" headers="ML5">0.688</td>
<td class="gt_row gt_right" headers="ML4">1.000</td>
<td class="gt_row gt_right" headers="ML2">0.648</td>
<td class="gt_row gt_right" headers="ML1">0.627</td>
<td class="gt_row gt_right" headers="ML3">-0.199</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="_">ML2</td>
<td class="gt_row gt_right" headers="ML5">0.798</td>
<td class="gt_row gt_right" headers="ML4">0.648</td>
<td class="gt_row gt_right" headers="ML2">1.000</td>
<td class="gt_row gt_right" headers="ML1">0.642</td>
<td class="gt_row gt_right" headers="ML3">-0.235</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="_">ML1</td>
<td class="gt_row gt_right" headers="ML5">0.632</td>
<td class="gt_row gt_right" headers="ML4">0.627</td>
<td class="gt_row gt_right" headers="ML2">0.642</td>
<td class="gt_row gt_right" headers="ML1">1.000</td>
<td class="gt_row gt_right" headers="ML3">-0.114</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="_">ML3</td>
<td class="gt_row gt_right" headers="ML5">-0.291</td>
<td class="gt_row gt_right" headers="ML4">-0.199</td>
<td class="gt_row gt_right" headers="ML2">-0.235</td>
<td class="gt_row gt_right" headers="ML1">-0.114</td>
<td class="gt_row gt_right" headers="ML3">1.000</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb35" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb35-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Used in the subsequent analysis</span></span>
<span id="cb35-2">fa_scores <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> fa5_ob<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>scores <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;">as_tibble</span>() </span></code></pre></div></div>
</details>
</div>
<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">
Note
</div>
</div>
<div class="callout-body-container callout-body">
<p>These loading and factor-correlation tables are retained as part of the working analysis record. The published article and supplementary materials contain the final reported results.</p>
</div>
</div>
<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>Why use EFA rather than CFA?
</div>
</div>
<div class="callout-body-container callout-body">
<p>EFA was used because the original questionnaire was not designed a priori as a direct operationalization of the 5C constructs. The analysis therefore explored the underlying loading structure before interpreting its relation to the 5C framework.</p>
</div>
</div>
</section>
</section>
</section>
<section id="vaccine-sentiment-vs" class="level1" data-number="4">
<h1 data-number="4"><span class="header-section-number">4</span> Vaccine sentiment (VS)</h1>
<p>The working analysis used the following five sentiment variables:</p>
<ol type="1">
<li><code>change_vac_1</code> (S1): My attitude towards vaccination (in general) has not been influenced by the COVID-19 pandemic.</li>
<li><code>change_vac_2</code> (S2): The COVID-19 pandemic has increased my confidence in the safety of vaccines.</li>
<li><code>change_HealthSy_1</code> (S3): The COVID-19 pandemic has increased my confidence in the health system of my country.</li>
<li><code>change_vac_3</code> (S4): From now on, I will pay more attention to updating my vaccination schedule in general.</li>
<li><code>cov_pro_3</code> (S5): I am keen to receive another COVID-19 vaccination if the health authority recommends it.</li>
</ol>
<p>The S1-S5 labels preserve the ordering used in this working analysis record. They do not correspond numerically to the VS1-VS5 labels in the published article:</p>
<table class="caption-top table">
<caption>Correspondence between the working outcome labels and the labels used in the published article</caption>
<thead>
<tr class="header">
<th style="text-align: left;">Working label</th>
<th style="text-align: left;">Variable</th>
<th style="text-align: left;">Published label and construct</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">S1</td>
<td style="text-align: left;"><code>change_vac_1</code></td>
<td style="text-align: left;">VS4: general attitude</td>
</tr>
<tr class="even">
<td style="text-align: left;">S2</td>
<td style="text-align: left;"><code>change_vac_2</code></td>
<td style="text-align: left;">VS3: vaccine confidence</td>
</tr>
<tr class="odd">
<td style="text-align: left;">S3</td>
<td style="text-align: left;"><code>change_HealthSy_1</code></td>
<td style="text-align: left;">VS5: health-system confidence</td>
</tr>
<tr class="even">
<td style="text-align: left;">S4</td>
<td style="text-align: left;"><code>change_vac_3</code></td>
<td style="text-align: left;">VS1: vaccine attention</td>
</tr>
<tr class="odd">
<td style="text-align: left;">S5</td>
<td style="text-align: left;"><code>cov_pro_3</code></td>
<td style="text-align: left;">VS2: vaccine intention</td>
</tr>
</tbody>
</table>
<p>Each item was treated as a binary outcome (agree/strongly agree versus disagree/strongly disagree). The staged logistic regression models recorded during manuscript development are summarized in Table Table&nbsp;4.</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>Scope of this section
</div>
</div>
<div class="callout-body-container callout-body">
<p>The models below preserve the sequence in which demographic, occupational, fear, knowledge, and factor-score predictors were added during the working analysis. They do not document every model, diagnostic, or sensitivity analysis reported in the published article. The article and its supplementary materials remain the definitive source for the final estimates and interpretations.</p>
</div>
</div>
<div id="tbl-VS-hier-models" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-VS-hier-models-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;4: Staged logistic regression models for each vaccine-sentiment outcome
</figcaption>
<div aria-describedby="tbl-VS-hier-models-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="caption-top table">
<thead>
<tr class="header">
<th style="text-align: left;">Predictor block</th>
<th style="text-align: center;">Model 1</th>
<th style="text-align: center;">Model 2</th>
<th style="text-align: center;">Model 3</th>
<th style="text-align: center;">Model 4</th>
<th style="text-align: center;">Model 5</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Demographics</td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
</tr>
<tr class="even">
<td style="text-align: left;">Work environment</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fear</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
</tr>
<tr class="even">
<td style="text-align: left;">Knowledge</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">+</td>
<td style="text-align: center;">+</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Factor scores</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">+</td>
</tr>
</tbody>
</table>
</div>
</figure>
</div>
<section id="define-variables" class="level2" data-number="4.1">
<h2 data-number="4.1" class="anchored" data-anchor-id="define-variables"><span class="header-section-number">4.1</span> Define variables</h2>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb36" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb36-1">sentiment_var <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"cov_pro_3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"change_vac_1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"change_vac_2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"change_vac_3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"change_HealthSy_1"</span>)</span>
<span id="cb36-2">demography_var <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"gender"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"age_class"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"edu"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"chronic"</span>)</span>
<span id="cb36-3">working_var <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"member"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"prof"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"w_setting"</span>)</span>
<span id="cb36-4">fn_var <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"fear"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"knowledge"</span>)</span>
<span id="cb36-5">attitude_var <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;">names</span>(fa_data)</span>
<span id="cb36-6">fa_var <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;">names</span>(fa_scores)</span>
<span id="cb36-7"></span>
<span id="cb36-8">lr_rawdata <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> rawdata <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb36-9">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">drop_na</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">all_of</span>(attitude_var)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb36-10">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">select</span>(</span>
<span id="cb36-11">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">all_of</span>(sentiment_var), </span>
<span id="cb36-12">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">all_of</span>(demography_var), </span>
<span id="cb36-13">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">all_of</span>(working_var),</span>
<span id="cb36-14">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">all_of</span>(fn_var),</span>
<span id="cb36-15">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">all_of</span>(attitude_var)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb36-16">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add_column</span>(fa_scores)</span></code></pre></div></div>
</details>
</div>
<p>The variables were coded as follows:</p>
<ul>
<li><strong>Outcomes:</strong> S1-S5 were recoded as binary factors (0 = disagree/strongly disagree; 1 = agree/strongly agree).</li>
<li><strong>Gender (<code>gender</code>):</strong> female or male; “I prefer not to answer” was treated as missing.</li>
<li><strong>Age group (<code>age_class</code>):</strong> &lt;35, 35-44, 45-54, 55-64, 65-74, or 75+.</li>
<li><strong>Education (<code>edu</code>):</strong> medical degree or other; the latter combined the remaining education categories.</li>
<li><strong>Chronic disease (<code>chronic</code>):</strong> yes or no; “I prefer not to answer” was treated as missing.</li>
<li><strong>Association membership (<code>member</code>):</strong> yes or no; “I don’t know” was treated as missing.</li>
<li><strong>Profession (<code>prof</code>):</strong> nutrition, pharmacy, physician, or other.</li>
<li><strong>Work setting (<code>w_setting</code>):</strong> community, hospital, private, university, or other.</li>
<li><strong>Fear (<code>fear</code>) and knowledge (<code>knowledge</code>):</strong> continuous predictors.</li>
<li><strong>Factor scores (ML1-ML5):</strong> regression-based scores from the working <code>fa5_ob</code> solution, used as continuous predictors.</li>
</ul>
<p><code>lr_rawdata</code> retained respondents with complete responses on the attitude items used to calculate the factor scores. Each <code>glm()</code> call then used complete cases for the variables included in that model, so the effective sample size may differ across outcomes and model stages.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb37" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb37-1">lr_data <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> lr_rawdata <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb37-2">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mutate</span>(</span>
<span id="cb37-3">    <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Sentiment variables</span></span>
<span id="cb37-4">    <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;">all_of</span>(sentiment_var), <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;">factor</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ifelse</span>(. <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="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>))),</span>
<span id="cb37-5">    <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Demographic variables</span></span>
<span id="cb37-6">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">gender =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_factor</span>(gender) <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;">droplevels</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">exclude =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"I prefer not to answer"</span>),</span>
<span id="cb37-7">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">age_class =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_factor</span>(age_class),</span>
<span id="cb37-8">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">edu =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_factor</span>(edu) <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_relabel</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;">str_sub</span>(.x, <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;">4</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_collapse</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Othe =</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;">"Othe"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Tech"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Bach"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Mast"</span>)),</span>
<span id="cb37-9">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">chronic =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_factor</span>(chronic) <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;">droplevels</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">exclude =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"I prefer not to answer"</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_rev</span>(),</span>
<span id="cb37-10">    <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Work-related variables</span></span>
<span id="cb37-11">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">member =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_factor</span>(member) <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;">droplevels</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">exclude =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"I don't know"</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_rev</span>(),</span>
<span id="cb37-12">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">prof =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_factor</span>(prof) <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_relabel</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;">str_sub</span>(.x, <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;">4</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_collapse</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Othe =</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;">"Othe"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Nurs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Dent"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Heal"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Midw"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Publ"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Soci"</span>)),</span>
<span id="cb37-13">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">w_setting =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as_factor</span>(w_setting) <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_relabel</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;">str_sub</span>(.x, <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;">4</span>)),</span>
<span id="cb37-14">    <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Attitude variables: recode 1, 2, 4, 5 as 1, 2, 3, 4</span></span>
<span id="cb37-15">    <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;">all_of</span>(attitude_var), <span class="sc" style="color: #5E5E5E;
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;">ifelse</span>(. <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="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>))</span>
<span id="cb37-16">  )</span></code></pre></div></div>
</details>
</div>
</section>
<section id="logistic-regression-models" class="level2" data-number="4.2">
<h2 data-number="4.2" class="anchored" data-anchor-id="logistic-regression-models"><span class="header-section-number">4.2</span> Logistic regression models</h2>
<section id="sentiment-1-s1" class="level3" data-number="4.2.1">
<h3 data-number="4.2.1" class="anchored" data-anchor-id="sentiment-1-s1"><span class="header-section-number">4.2.1</span> Sentiment 1 (S1)</h3>
<p>The formulas for the five staged models for Sentiment 1 (<code>change_vac_1</code>) are defined as follows:</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb38" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb38-1">m1_str <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;">str_c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"change_vac_1 ~ "</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_flatten</span>(demography_var, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" + "</span>))</span>
<span id="cb38-2">m2_str <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;">str_c</span>(m1_str, <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;">str_flatten</span>(working_var, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" + "</span>))</span>
<span id="cb38-3">m3_str <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;">str_c</span>(m2_str, <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;">"fear"</span>)</span>
<span id="cb38-4">m4_str <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;">str_c</span>(m3_str, <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;">"knowledge"</span>)</span>
<span id="cb38-5">m5_str <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;">str_c</span>(m4_str, <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;">str_flatten</span>(fa_var, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" + "</span>))</span></code></pre></div></div>
</details>
</div>
<p>Each model was estimated using logistic regression with a binomial family and logit link.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb39" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb39-1">s1_models <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;">map</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(m1_str, m2_str, m3_str, m4_str, m5_str), </span>
<span id="cb39-2">                 <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;">glm</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.formula</span>(.), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">family =</span> binomial, lr_data)) </span></code></pre></div></div>
</details>
</div>
<p>The working odds-ratio estimates for S1 are recorded in Table Table&nbsp;5.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb40" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb40-1">extract_esti <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(lr) {</span>
<span id="cb40-2">  coef <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;">summary</span>(lr)<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>coefficients</span>
<span id="cb40-3">  var_name <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;">rownames</span>(coef)</span>
<span id="cb40-4">  esti <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> coef[, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>]</span>
<span id="cb40-5">  OR <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;">exp</span>(esti) <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;">round</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb40-6">  se <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> coef[, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>]</span>
<span id="cb40-7">  p_value <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> coef[, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>]</span>
<span id="cb40-8">  conf_l <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;">exp</span>(esti <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;">qnorm</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.05</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;">*</span> se) <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;">round</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb40-9">  conf_u <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;">exp</span>(esti <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;">qnorm</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.05</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;">*</span> se) <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;">round</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb40-10">  p_sig <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;">cut</span>(p_value, </span>
<span id="cb40-11">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">breaks =</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 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.01</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="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>),</span>
<span id="cb40-12">               <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;">"***&amp;nbsp;"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"**&amp;nbsp;&amp;nbsp;"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"*&amp;nbsp;&amp;nbsp;&amp;nbsp;"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"</span>),</span>
<span id="cb40-13">               <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">include.lowest =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb40-14">  result <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;">str_glue</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"{format(OR)}{p_sig}&lt;br&gt;[{format(conf_l)}, {format(conf_u)}]"</span>)</span>
<span id="cb40-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">vars =</span> var_name, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">esti =</span> result)</span>
<span id="cb40-16">}</span>
<span id="cb40-17"></span>
<span id="cb40-18">s1_result_comp <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;">map</span>(s1_models, extract_esti) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb40-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">reduce</span>(full_join, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vars"</span>)</span>
<span id="cb40-20"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(s1_result_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"EVs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 5"</span>)</span>
<span id="cb40-21"></span>
<span id="cb40-22"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(s1_result_comp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb40-23">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</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="cb40-24">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>()) </span></code></pre></div></div>
</details>
<div id="tbl-S1-result" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-S1-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;5: Working odds-ratio estimates (95% Wald CIs) for Sentiment 1
</figcaption>
<div aria-describedby="tbl-S1-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="qgfotukasi" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#qgfotukasi table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#qgfotukasi thead, #qgfotukasi tbody, #qgfotukasi tfoot, #qgfotukasi tr, #qgfotukasi td, #qgfotukasi th {
  border-style: none;
}

#qgfotukasi p {
  margin: 0;
  padding: 0;
}

#qgfotukasi .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#qgfotukasi .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#qgfotukasi .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#qgfotukasi .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#qgfotukasi .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#qgfotukasi .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qgfotukasi .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#qgfotukasi .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#qgfotukasi .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#qgfotukasi .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#qgfotukasi .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#qgfotukasi .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#qgfotukasi .gt_spanner_row {
  border-bottom-style: hidden;
}

#qgfotukasi .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#qgfotukasi .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#qgfotukasi .gt_from_md > :first-child {
  margin-top: 0;
}

#qgfotukasi .gt_from_md > :last-child {
  margin-bottom: 0;
}

#qgfotukasi .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#qgfotukasi .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#qgfotukasi .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#qgfotukasi .gt_row_group_first td {
  border-top-width: 2px;
}

#qgfotukasi .gt_row_group_first th {
  border-top-width: 2px;
}

#qgfotukasi .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#qgfotukasi .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#qgfotukasi .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#qgfotukasi .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qgfotukasi .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#qgfotukasi .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#qgfotukasi .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#qgfotukasi .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#qgfotukasi .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qgfotukasi .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#qgfotukasi .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#qgfotukasi .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#qgfotukasi .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#qgfotukasi .gt_left {
  text-align: left;
}

#qgfotukasi .gt_center {
  text-align: center;
}

#qgfotukasi .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#qgfotukasi .gt_font_normal {
  font-weight: normal;
}

#qgfotukasi .gt_font_bold {
  font-weight: bold;
}

#qgfotukasi .gt_font_italic {
  font-style: italic;
}

#qgfotukasi .gt_super {
  font-size: 65%;
}

#qgfotukasi .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#qgfotukasi .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#qgfotukasi .gt_indent_1 {
  text-indent: 5px;
}

#qgfotukasi .gt_indent_2 {
  text-indent: 10px;
}

#qgfotukasi .gt_indent_3 {
  text-indent: 15px;
}

#qgfotukasi .gt_indent_4 {
  text-indent: 20px;
}

#qgfotukasi .gt_indent_5 {
  text-indent: 25px;
}

#qgfotukasi .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#qgfotukasi div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
</colgroup>
<thead>
<tr class="gt_col_headings header">
<th id="EVs" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">EVs</th>
<th id="Model-1" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 1</th>
<th id="Model-2" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 2</th>
<th id="Model-3" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 3</th>
<th id="Model-4" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 4</th>
<th id="Model-5" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 5</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">(Intercept)</td>
<td class="gt_row gt_center" headers="Model 1">1.82**&nbsp;&nbsp;<br>[1.20, 2.78]</td>
<td class="gt_row gt_center" headers="Model 2">1.34&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 2.90]</td>
<td class="gt_row gt_center" headers="Model 3">1.32&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 3.60]</td>
<td class="gt_row gt_center" headers="Model 4">0.65&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.17, 2.44]</td>
<td class="gt_row gt_center" headers="Model 5">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.23, 3.77]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">genderMale</td>
<td class="gt_row gt_center" headers="Model 1">1.17&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.73, 1.89]</td>
<td class="gt_row gt_center" headers="Model 2">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 1.88]</td>
<td class="gt_row gt_center" headers="Model 3">1.15&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 1.88]</td>
<td class="gt_row gt_center" headers="Model 4">1.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.67, 1.81]</td>
<td class="gt_row gt_center" headers="Model 5">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 1.88]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class35-44</td>
<td class="gt_row gt_center" headers="Model 1">1.62&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.92, 2.83]</td>
<td class="gt_row gt_center" headers="Model 2">1.96*&nbsp;&nbsp;&nbsp;<br>[1.08, 3.55]</td>
<td class="gt_row gt_center" headers="Model 3">1.96*&nbsp;&nbsp;&nbsp;<br>[1.08, 3.55]</td>
<td class="gt_row gt_center" headers="Model 4">1.89*&nbsp;&nbsp;&nbsp;<br>[1.04, 3.44]</td>
<td class="gt_row gt_center" headers="Model 5">2.02*&nbsp;&nbsp;&nbsp;<br>[1.10, 3.71]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class45-54</td>
<td class="gt_row gt_center" headers="Model 1">1.56&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.83, 2.92]</td>
<td class="gt_row gt_center" headers="Model 2">1.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.94, 3.69]</td>
<td class="gt_row gt_center" headers="Model 3">1.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.94, 3.69]</td>
<td class="gt_row gt_center" headers="Model 4">1.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.94, 3.69]</td>
<td class="gt_row gt_center" headers="Model 5">2.08*&nbsp;&nbsp;&nbsp;<br>[1.03, 4.19]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class55-64</td>
<td class="gt_row gt_center" headers="Model 1">2.99**&nbsp;&nbsp;<br>[1.54, 5.79]</td>
<td class="gt_row gt_center" headers="Model 2">3.11**&nbsp;&nbsp;<br>[1.51, 6.43]</td>
<td class="gt_row gt_center" headers="Model 3">3.11**&nbsp;&nbsp;<br>[1.51, 6.44]</td>
<td class="gt_row gt_center" headers="Model 4">3.06**&nbsp;&nbsp;<br>[1.48, 6.35]</td>
<td class="gt_row gt_center" headers="Model 5">3.32**&nbsp;&nbsp;<br>[1.58, 6.96]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class65-74</td>
<td class="gt_row gt_center" headers="Model 1">10.39***&nbsp;<br>[2.87, 37.62]</td>
<td class="gt_row gt_center" headers="Model 2">10.35***&nbsp;<br>[2.74, 39.17]</td>
<td class="gt_row gt_center" headers="Model 3">10.35***&nbsp;<br>[2.74, 39.17]</td>
<td class="gt_row gt_center" headers="Model 4">9.90***&nbsp;<br>[2.62, 37.41]</td>
<td class="gt_row gt_center" headers="Model 5">10.72***&nbsp;<br>[2.81, 40.87]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class75+</td>
<td class="gt_row gt_center" headers="Model 1">0.61&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.12, 3.01]</td>
<td class="gt_row gt_center" headers="Model 2">0.51&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.10, 2.70]</td>
<td class="gt_row gt_center" headers="Model 3">0.51&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.10, 2.71]</td>
<td class="gt_row gt_center" headers="Model 4">0.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.09, 2.64]</td>
<td class="gt_row gt_center" headers="Model 5">0.55&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.10, 3.04]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">eduMedi</td>
<td class="gt_row gt_center" headers="Model 1">1.00&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.63, 1.58]</td>
<td class="gt_row gt_center" headers="Model 2">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.43]</td>
<td class="gt_row gt_center" headers="Model 3">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.43]</td>
<td class="gt_row gt_center" headers="Model 4">0.82&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 1.41]</td>
<td class="gt_row gt_center" headers="Model 5">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.45]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">chronicYes</td>
<td class="gt_row gt_center" headers="Model 1">0.55*&nbsp;&nbsp;&nbsp;<br>[0.34, 0.89]</td>
<td class="gt_row gt_center" headers="Model 2">0.55*&nbsp;&nbsp;&nbsp;<br>[0.33, 0.92]</td>
<td class="gt_row gt_center" headers="Model 3">0.55*&nbsp;&nbsp;&nbsp;<br>[0.33, 0.92]</td>
<td class="gt_row gt_center" headers="Model 4">0.56*&nbsp;&nbsp;&nbsp;<br>[0.34, 0.93]</td>
<td class="gt_row gt_center" headers="Model 5">0.56*&nbsp;&nbsp;&nbsp;<br>[0.33, 0.94]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">memberYes</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.67]</td>
<td class="gt_row gt_center" headers="Model 3">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.67]</td>
<td class="gt_row gt_center" headers="Model 4">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.67]</td>
<td class="gt_row gt_center" headers="Model 5">0.85&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.63]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profNutr</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 2.16]</td>
<td class="gt_row gt_center" headers="Model 3">1.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 2.16]</td>
<td class="gt_row gt_center" headers="Model 4">1.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 2.17]</td>
<td class="gt_row gt_center" headers="Model 5">1.30&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 2.34]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">profPhar</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.77, 3.32]</td>
<td class="gt_row gt_center" headers="Model 3">1.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.77, 3.32]</td>
<td class="gt_row gt_center" headers="Model 4">1.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.77, 3.33]</td>
<td class="gt_row gt_center" headers="Model 5">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 3.14]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profPhys</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.80, 4.40]</td>
<td class="gt_row gt_center" headers="Model 3">1.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.80, 4.40]</td>
<td class="gt_row gt_center" headers="Model 4">1.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.78, 4.33]</td>
<td class="gt_row gt_center" headers="Model 5">1.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.74, 4.16]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingComm</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 2.95]</td>
<td class="gt_row gt_center" headers="Model 3">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 2.95]</td>
<td class="gt_row gt_center" headers="Model 4">1.35&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.63, 2.90]</td>
<td class="gt_row gt_center" headers="Model 5">1.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 3.12]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingHosp</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.29&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 2.85]</td>
<td class="gt_row gt_center" headers="Model 3">1.30&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 2.86]</td>
<td class="gt_row gt_center" headers="Model 4">1.32&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 2.92]</td>
<td class="gt_row gt_center" headers="Model 5">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 3.37]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingPriv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.75&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.53]</td>
<td class="gt_row gt_center" headers="Model 3">0.75&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.53]</td>
<td class="gt_row gt_center" headers="Model 4">0.77&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 1.59]</td>
<td class="gt_row gt_center" headers="Model 5">0.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.79]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingUniv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.65, 2.99]</td>
<td class="gt_row gt_center" headers="Model 3">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.65, 2.99]</td>
<td class="gt_row gt_center" headers="Model 4">1.36&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.63, 2.93]</td>
<td class="gt_row gt_center" headers="Model 5">1.38&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 2.99]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">fear</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">1.00&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.93, 1.08]</td>
<td class="gt_row gt_center" headers="Model 4">1.00&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.93, 1.08]</td>
<td class="gt_row gt_center" headers="Model 5">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.88, 1.05]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">knowledge</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">1.11&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.98, 1.27]</td>
<td class="gt_row gt_center" headers="Model 5">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.95, 1.25]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML5</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.63, 1.96]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML4</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 1.38]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML2</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.47&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.86, 2.51]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML1</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 1.32]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML3</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.02&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.80, 1.30]</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
<p>Cells report odds ratios with 95% Wald confidence intervals in brackets. Stars denote unadjusted Wald p-values: <code>*</code> p &lt;= .05, <code>**</code> p &lt;= .01, and <code>***</code> p &lt;= .001.</p>
</section>
<section id="sentiment-2-s2" class="level3" data-number="4.2.2">
<h3 data-number="4.2.2" class="anchored" data-anchor-id="sentiment-2-s2"><span class="header-section-number">4.2.2</span> Sentiment 2 (S2)</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb41" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb41-1">s2_models <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;">map</span>(s1_models, </span>
<span id="cb41-2">                 <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;">update</span>(.x, change_vac_2 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> .))</span>
<span id="cb41-3"></span>
<span id="cb41-4">s2_result_comp <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;">map</span>(s2_models, extract_esti) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb41-5">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">reduce</span>(full_join, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vars"</span>)</span>
<span id="cb41-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(s2_result_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"EVs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 5"</span>)</span>
<span id="cb41-7"></span>
<span id="cb41-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(s2_result_comp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb41-9">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</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="cb41-10">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>()) </span></code></pre></div></div>
</details>
<div id="tbl-S2-result" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-S2-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;6: Working odds-ratio estimates (95% Wald CIs) for Sentiment 2
</figcaption>
<div aria-describedby="tbl-S2-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="ysfcoxmfoq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ysfcoxmfoq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ysfcoxmfoq thead, #ysfcoxmfoq tbody, #ysfcoxmfoq tfoot, #ysfcoxmfoq tr, #ysfcoxmfoq td, #ysfcoxmfoq th {
  border-style: none;
}

#ysfcoxmfoq p {
  margin: 0;
  padding: 0;
}

#ysfcoxmfoq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#ysfcoxmfoq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ysfcoxmfoq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#ysfcoxmfoq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#ysfcoxmfoq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ysfcoxmfoq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ysfcoxmfoq .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ysfcoxmfoq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#ysfcoxmfoq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#ysfcoxmfoq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ysfcoxmfoq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ysfcoxmfoq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#ysfcoxmfoq .gt_spanner_row {
  border-bottom-style: hidden;
}

#ysfcoxmfoq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#ysfcoxmfoq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#ysfcoxmfoq .gt_from_md > :first-child {
  margin-top: 0;
}

#ysfcoxmfoq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ysfcoxmfoq .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#ysfcoxmfoq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#ysfcoxmfoq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#ysfcoxmfoq .gt_row_group_first td {
  border-top-width: 2px;
}

#ysfcoxmfoq .gt_row_group_first th {
  border-top-width: 2px;
}

#ysfcoxmfoq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#ysfcoxmfoq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ysfcoxmfoq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ysfcoxmfoq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ysfcoxmfoq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#ysfcoxmfoq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#ysfcoxmfoq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#ysfcoxmfoq .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#ysfcoxmfoq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ysfcoxmfoq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ysfcoxmfoq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#ysfcoxmfoq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ysfcoxmfoq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#ysfcoxmfoq .gt_left {
  text-align: left;
}

#ysfcoxmfoq .gt_center {
  text-align: center;
}

#ysfcoxmfoq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ysfcoxmfoq .gt_font_normal {
  font-weight: normal;
}

#ysfcoxmfoq .gt_font_bold {
  font-weight: bold;
}

#ysfcoxmfoq .gt_font_italic {
  font-style: italic;
}

#ysfcoxmfoq .gt_super {
  font-size: 65%;
}

#ysfcoxmfoq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ysfcoxmfoq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ysfcoxmfoq .gt_indent_1 {
  text-indent: 5px;
}

#ysfcoxmfoq .gt_indent_2 {
  text-indent: 10px;
}

#ysfcoxmfoq .gt_indent_3 {
  text-indent: 15px;
}

#ysfcoxmfoq .gt_indent_4 {
  text-indent: 20px;
}

#ysfcoxmfoq .gt_indent_5 {
  text-indent: 25px;
}

#ysfcoxmfoq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ysfcoxmfoq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
</colgroup>
<thead>
<tr class="gt_col_headings header">
<th id="EVs" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">EVs</th>
<th id="Model-1" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 1</th>
<th id="Model-2" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 2</th>
<th id="Model-3" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 3</th>
<th id="Model-4" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 4</th>
<th id="Model-5" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 5</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">(Intercept)</td>
<td class="gt_row gt_center" headers="Model 1">3.02***&nbsp;<br>[1.91, 4.80]</td>
<td class="gt_row gt_center" headers="Model 2">6.32***&nbsp;<br>[2.65, 15.08]</td>
<td class="gt_row gt_center" headers="Model 3">1.31&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 3.75]</td>
<td class="gt_row gt_center" headers="Model 4">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.17, 2.77]</td>
<td class="gt_row gt_center" headers="Model 5">1.99&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 9.84]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">genderMale</td>
<td class="gt_row gt_center" headers="Model 1">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.57, 1.48]</td>
<td class="gt_row gt_center" headers="Model 2">0.99&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 1.62]</td>
<td class="gt_row gt_center" headers="Model 3">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.65, 1.82]</td>
<td class="gt_row gt_center" headers="Model 4">1.04&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 1.76]</td>
<td class="gt_row gt_center" headers="Model 5">1.07&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 1.91]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class35-44</td>
<td class="gt_row gt_center" headers="Model 1">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 1.74]</td>
<td class="gt_row gt_center" headers="Model 2">0.85&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 1.58]</td>
<td class="gt_row gt_center" headers="Model 3">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.71]</td>
<td class="gt_row gt_center" headers="Model 4">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 1.67]</td>
<td class="gt_row gt_center" headers="Model 5">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 2.14]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class45-54</td>
<td class="gt_row gt_center" headers="Model 1">1.16&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 2.28]</td>
<td class="gt_row gt_center" headers="Model 2">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 1.78]</td>
<td class="gt_row gt_center" headers="Model 3">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.85]</td>
<td class="gt_row gt_center" headers="Model 4">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 1.85]</td>
<td class="gt_row gt_center" headers="Model 5">1.21&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 2.77]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class55-64</td>
<td class="gt_row gt_center" headers="Model 1">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.56, 2.02]</td>
<td class="gt_row gt_center" headers="Model 2">0.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.33, 1.38]</td>
<td class="gt_row gt_center" headers="Model 3">0.73&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.53]</td>
<td class="gt_row gt_center" headers="Model 4">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.34, 1.52]</td>
<td class="gt_row gt_center" headers="Model 5">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.91]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class65-74</td>
<td class="gt_row gt_center" headers="Model 1">15.23**&nbsp;&nbsp;<br>[1.95, 118.88]</td>
<td class="gt_row gt_center" headers="Model 2">9.09*&nbsp;&nbsp;&nbsp;<br>[1.13, 72.77]</td>
<td class="gt_row gt_center" headers="Model 3">9.96*&nbsp;&nbsp;&nbsp;<br>[1.21, 82.09]</td>
<td class="gt_row gt_center" headers="Model 4">9.75*&nbsp;&nbsp;&nbsp;<br>[1.18, 80.23]</td>
<td class="gt_row gt_center" headers="Model 5">10.77*&nbsp;&nbsp;&nbsp;<br>[1.24, 93.36]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class75+</td>
<td class="gt_row gt_center" headers="Model 1">0.82&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.14, 4.70]</td>
<td class="gt_row gt_center" headers="Model 2">0.54&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.09, 3.29]</td>
<td class="gt_row gt_center" headers="Model 3">0.61&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.09, 4.17]</td>
<td class="gt_row gt_center" headers="Model 4">0.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.09, 4.18]</td>
<td class="gt_row gt_center" headers="Model 5">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.15, 13.23]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">eduMedi</td>
<td class="gt_row gt_center" headers="Model 1">0.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.54, 1.36]</td>
<td class="gt_row gt_center" headers="Model 2">0.65&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 1.12]</td>
<td class="gt_row gt_center" headers="Model 3">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.21]</td>
<td class="gt_row gt_center" headers="Model 4">0.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 1.19]</td>
<td class="gt_row gt_center" headers="Model 5">0.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.26]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">chronicYes</td>
<td class="gt_row gt_center" headers="Model 1">1.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 2.08]</td>
<td class="gt_row gt_center" headers="Model 2">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 2.07]</td>
<td class="gt_row gt_center" headers="Model 3">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 1.84]</td>
<td class="gt_row gt_center" headers="Model 4">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 1.87]</td>
<td class="gt_row gt_center" headers="Model 5">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 2.02]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">memberYes</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.54, 2.05]</td>
<td class="gt_row gt_center" headers="Model 3">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.86]</td>
<td class="gt_row gt_center" headers="Model 4">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.87]</td>
<td class="gt_row gt_center" headers="Model 5">0.77&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.63]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profNutr</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.69&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.24]</td>
<td class="gt_row gt_center" headers="Model 3">0.73&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.35]</td>
<td class="gt_row gt_center" headers="Model 4">0.74&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.36]</td>
<td class="gt_row gt_center" headers="Model 5">0.81&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.61]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">profPhar</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.90, 4.03]</td>
<td class="gt_row gt_center" headers="Model 3">1.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.82, 3.87]</td>
<td class="gt_row gt_center" headers="Model 4">1.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.82, 3.90]</td>
<td class="gt_row gt_center" headers="Model 5">1.35&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 3.14]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profPhys</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 2.50]</td>
<td class="gt_row gt_center" headers="Model 3">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.50]</td>
<td class="gt_row gt_center" headers="Model 4">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.47]</td>
<td class="gt_row gt_center" headers="Model 5">0.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 2.34]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingComm</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.52&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.23, 1.15]</td>
<td class="gt_row gt_center" headers="Model 3">0.54&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.24, 1.23]</td>
<td class="gt_row gt_center" headers="Model 4">0.53&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.23, 1.22]</td>
<td class="gt_row gt_center" headers="Model 5">0.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.24, 1.45]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingHosp</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.21, 1.07]</td>
<td class="gt_row gt_center" headers="Model 3">0.53&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.23, 1.22]</td>
<td class="gt_row gt_center" headers="Model 4">0.53&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.23, 1.23]</td>
<td class="gt_row gt_center" headers="Model 5">0.70&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.27, 1.82]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingPriv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.57&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.26, 1.24]</td>
<td class="gt_row gt_center" headers="Model 3">0.58&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.26, 1.29]</td>
<td class="gt_row gt_center" headers="Model 4">0.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.26, 1.32]</td>
<td class="gt_row gt_center" headers="Model 5">0.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.29]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingUniv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.34, 1.78]</td>
<td class="gt_row gt_center" headers="Model 3">0.77&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.32, 1.85]</td>
<td class="gt_row gt_center" headers="Model 4">0.75&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.31, 1.79]</td>
<td class="gt_row gt_center" headers="Model 5">0.62&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 1.57]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">fear</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">1.22***&nbsp;<br>[1.13, 1.31]</td>
<td class="gt_row gt_center" headers="Model 4">1.22***&nbsp;<br>[1.13, 1.31]</td>
<td class="gt_row gt_center" headers="Model 5">1.10*&nbsp;&nbsp;&nbsp;<br>[1.00, 1.21]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">knowledge</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">1.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.96, 1.26]</td>
<td class="gt_row gt_center" headers="Model 5">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.90, 1.22]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML5</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.57, 1.97]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML4</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.77*&nbsp;&nbsp;&nbsp;<br>[1.13, 2.78]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML2</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">2.06*&nbsp;&nbsp;&nbsp;<br>[1.15, 3.66]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML1</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.57, 1.41]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML3</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.33&nbsp;&nbsp;&nbsp;&nbsp;<br>[1.00, 1.79]</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="sentiment-3-s3" class="level3" data-number="4.2.3">
<h3 data-number="4.2.3" class="anchored" data-anchor-id="sentiment-3-s3"><span class="header-section-number">4.2.3</span> Sentiment 3 (S3)</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb42" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb42-1">s3_models <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;">map</span>(s1_models, </span>
<span id="cb42-2">                 <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;">update</span>(.x, change_HealthSy_1 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> .))</span>
<span id="cb42-3"></span>
<span id="cb42-4">s3_result_comp <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;">map</span>(s3_models, extract_esti) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb42-5">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">reduce</span>(full_join, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vars"</span>)</span>
<span id="cb42-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(s3_result_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"EVs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 5"</span>)</span>
<span id="cb42-7"></span>
<span id="cb42-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(s3_result_comp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb42-9">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</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="cb42-10">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>()) </span></code></pre></div></div>
</details>
<div id="tbl-S3-result" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-S3-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;7: Working odds-ratio estimates (95% Wald CIs) for Sentiment 3
</figcaption>
<div aria-describedby="tbl-S3-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="tpmtwmrouf" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#tpmtwmrouf table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#tpmtwmrouf thead, #tpmtwmrouf tbody, #tpmtwmrouf tfoot, #tpmtwmrouf tr, #tpmtwmrouf td, #tpmtwmrouf th {
  border-style: none;
}

#tpmtwmrouf p {
  margin: 0;
  padding: 0;
}

#tpmtwmrouf .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#tpmtwmrouf .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#tpmtwmrouf .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#tpmtwmrouf .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#tpmtwmrouf .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#tpmtwmrouf .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tpmtwmrouf .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#tpmtwmrouf .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#tpmtwmrouf .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#tpmtwmrouf .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#tpmtwmrouf .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#tpmtwmrouf .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#tpmtwmrouf .gt_spanner_row {
  border-bottom-style: hidden;
}

#tpmtwmrouf .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#tpmtwmrouf .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#tpmtwmrouf .gt_from_md > :first-child {
  margin-top: 0;
}

#tpmtwmrouf .gt_from_md > :last-child {
  margin-bottom: 0;
}

#tpmtwmrouf .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#tpmtwmrouf .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#tpmtwmrouf .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#tpmtwmrouf .gt_row_group_first td {
  border-top-width: 2px;
}

#tpmtwmrouf .gt_row_group_first th {
  border-top-width: 2px;
}

#tpmtwmrouf .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#tpmtwmrouf .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#tpmtwmrouf .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#tpmtwmrouf .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tpmtwmrouf .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#tpmtwmrouf .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#tpmtwmrouf .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#tpmtwmrouf .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#tpmtwmrouf .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#tpmtwmrouf .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#tpmtwmrouf .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#tpmtwmrouf .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#tpmtwmrouf .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#tpmtwmrouf .gt_left {
  text-align: left;
}

#tpmtwmrouf .gt_center {
  text-align: center;
}

#tpmtwmrouf .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#tpmtwmrouf .gt_font_normal {
  font-weight: normal;
}

#tpmtwmrouf .gt_font_bold {
  font-weight: bold;
}

#tpmtwmrouf .gt_font_italic {
  font-style: italic;
}

#tpmtwmrouf .gt_super {
  font-size: 65%;
}

#tpmtwmrouf .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#tpmtwmrouf .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#tpmtwmrouf .gt_indent_1 {
  text-indent: 5px;
}

#tpmtwmrouf .gt_indent_2 {
  text-indent: 10px;
}

#tpmtwmrouf .gt_indent_3 {
  text-indent: 15px;
}

#tpmtwmrouf .gt_indent_4 {
  text-indent: 20px;
}

#tpmtwmrouf .gt_indent_5 {
  text-indent: 25px;
}

#tpmtwmrouf .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#tpmtwmrouf div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
</colgroup>
<thead>
<tr class="gt_col_headings header">
<th id="EVs" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">EVs</th>
<th id="Model-1" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 1</th>
<th id="Model-2" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 2</th>
<th id="Model-3" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 3</th>
<th id="Model-4" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 4</th>
<th id="Model-5" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 5</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">(Intercept)</td>
<td class="gt_row gt_center" headers="Model 1">2.08***&nbsp;<br>[1.36, 3.18]</td>
<td class="gt_row gt_center" headers="Model 2">5.94***&nbsp;<br>[2.50, 14.08]</td>
<td class="gt_row gt_center" headers="Model 3">1.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 5.04]</td>
<td class="gt_row gt_center" headers="Model 4">1.19&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.31, 4.59]</td>
<td class="gt_row gt_center" headers="Model 5">1.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 7.91]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">genderMale</td>
<td class="gt_row gt_center" headers="Model 1">1.02&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 1.60]</td>
<td class="gt_row gt_center" headers="Model 2">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 1.75]</td>
<td class="gt_row gt_center" headers="Model 3">1.18&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.73, 1.91]</td>
<td class="gt_row gt_center" headers="Model 4">1.15&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.71, 1.87]</td>
<td class="gt_row gt_center" headers="Model 5">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 1.88]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class35-44</td>
<td class="gt_row gt_center" headers="Model 1">1.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.63, 1.90]</td>
<td class="gt_row gt_center" headers="Model 2">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 1.56]</td>
<td class="gt_row gt_center" headers="Model 3">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.50, 1.65]</td>
<td class="gt_row gt_center" headers="Model 4">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.63]</td>
<td class="gt_row gt_center" headers="Model 5">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.72]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class45-54</td>
<td class="gt_row gt_center" headers="Model 1">2.18*&nbsp;&nbsp;&nbsp;<br>[1.12, 4.27]</td>
<td class="gt_row gt_center" headers="Model 2">1.54&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.75, 3.13]</td>
<td class="gt_row gt_center" headers="Model 3">1.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.78, 3.30]</td>
<td class="gt_row gt_center" headers="Model 4">1.61&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.78, 3.31]</td>
<td class="gt_row gt_center" headers="Model 5">1.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.92, 4.24]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class55-64</td>
<td class="gt_row gt_center" headers="Model 1">1.66&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.90, 3.08]</td>
<td class="gt_row gt_center" headers="Model 2">1.16&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 2.30]</td>
<td class="gt_row gt_center" headers="Model 3">1.25&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 2.52]</td>
<td class="gt_row gt_center" headers="Model 4">1.25&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 2.51]</td>
<td class="gt_row gt_center" headers="Model 5">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 2.84]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class65-74</td>
<td class="gt_row gt_center" headers="Model 1">4.09**&nbsp;&nbsp;<br>[1.50, 11.13]</td>
<td class="gt_row gt_center" headers="Model 2">2.73&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.95, 7.88]</td>
<td class="gt_row gt_center" headers="Model 3">2.77&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.95, 8.12]</td>
<td class="gt_row gt_center" headers="Model 4">2.71&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.93, 7.94]</td>
<td class="gt_row gt_center" headers="Model 5">2.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.97, 8.64]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class75+</td>
<td class="gt_row gt_center" headers="Model 1">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.17, 4.16]</td>
<td class="gt_row gt_center" headers="Model 2">0.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.13, 3.44]</td>
<td class="gt_row gt_center" headers="Model 3">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.13, 3.90]</td>
<td class="gt_row gt_center" headers="Model 4">0.71&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.13, 3.89]</td>
<td class="gt_row gt_center" headers="Model 5">1.02&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.16, 6.42]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">eduMedi</td>
<td class="gt_row gt_center" headers="Model 1">0.71&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 1.11]</td>
<td class="gt_row gt_center" headers="Model 2">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.13]</td>
<td class="gt_row gt_center" headers="Model 3">0.71&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 1.20]</td>
<td class="gt_row gt_center" headers="Model 4">0.70&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.20]</td>
<td class="gt_row gt_center" headers="Model 5">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.17]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">chronicYes</td>
<td class="gt_row gt_center" headers="Model 1">0.95&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 1.54]</td>
<td class="gt_row gt_center" headers="Model 2">1.01&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 1.66]</td>
<td class="gt_row gt_center" headers="Model 3">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.55, 1.51]</td>
<td class="gt_row gt_center" headers="Model 4">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.55, 1.52]</td>
<td class="gt_row gt_center" headers="Model 5">0.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 1.51]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">memberYes</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.52&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.81, 2.83]</td>
<td class="gt_row gt_center" headers="Model 3">1.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.76, 2.74]</td>
<td class="gt_row gt_center" headers="Model 4">1.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.75, 2.74]</td>
<td class="gt_row gt_center" headers="Model 5">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 2.69]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profNutr</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.69&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.21]</td>
<td class="gt_row gt_center" headers="Model 3">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.28]</td>
<td class="gt_row gt_center" headers="Model 4">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.28]</td>
<td class="gt_row gt_center" headers="Model 5">0.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.39]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">profPhar</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 1.81]</td>
<td class="gt_row gt_center" headers="Model 3">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 1.71]</td>
<td class="gt_row gt_center" headers="Model 4">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 1.70]</td>
<td class="gt_row gt_center" headers="Model 5">0.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.59]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profPhys</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.43, 1.97]</td>
<td class="gt_row gt_center" headers="Model 3">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.91]</td>
<td class="gt_row gt_center" headers="Model 4">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.89]</td>
<td class="gt_row gt_center" headers="Model 5">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.96]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingComm</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.42*&nbsp;&nbsp;&nbsp;<br>[0.19, 0.94]</td>
<td class="gt_row gt_center" headers="Model 3">0.44*&nbsp;&nbsp;&nbsp;<br>[0.19, 1.00]</td>
<td class="gt_row gt_center" headers="Model 4">0.43*&nbsp;&nbsp;&nbsp;<br>[0.19, 0.99]</td>
<td class="gt_row gt_center" headers="Model 5">0.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.19, 1.02]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingHosp</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.33**&nbsp;&nbsp;<br>[0.15, 0.74]</td>
<td class="gt_row gt_center" headers="Model 3">0.35*&nbsp;&nbsp;&nbsp;<br>[0.15, 0.81]</td>
<td class="gt_row gt_center" headers="Model 4">0.36*&nbsp;&nbsp;&nbsp;<br>[0.16, 0.82]</td>
<td class="gt_row gt_center" headers="Model 5">0.38*&nbsp;&nbsp;&nbsp;<br>[0.16, 0.90]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingPriv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.45*&nbsp;&nbsp;&nbsp;<br>[0.21, 0.98]</td>
<td class="gt_row gt_center" headers="Model 3">0.46&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.21, 1.02]</td>
<td class="gt_row gt_center" headers="Model 4">0.47&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.21, 1.04]</td>
<td class="gt_row gt_center" headers="Model 5">0.57&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 1.31]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingUniv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.41*&nbsp;&nbsp;&nbsp;<br>[0.18, 0.92]</td>
<td class="gt_row gt_center" headers="Model 3">0.39*&nbsp;&nbsp;&nbsp;<br>[0.17, 0.90]</td>
<td class="gt_row gt_center" headers="Model 4">0.38*&nbsp;&nbsp;&nbsp;<br>[0.16, 0.88]</td>
<td class="gt_row gt_center" headers="Model 5">0.34*&nbsp;&nbsp;&nbsp;<br>[0.14, 0.82]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">fear</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">1.16***&nbsp;<br>[1.08, 1.24]</td>
<td class="gt_row gt_center" headers="Model 4">1.16***&nbsp;<br>[1.08, 1.24]</td>
<td class="gt_row gt_center" headers="Model 5">1.10*&nbsp;&nbsp;&nbsp;<br>[1.01, 1.19]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">knowledge</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.93, 1.21]</td>
<td class="gt_row gt_center" headers="Model 5">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.92, 1.20]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML5</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.39]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML4</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[1.00, 2.23]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML2</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.62&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.96, 2.75]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML1</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.01&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 1.52]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML3</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.31*&nbsp;&nbsp;&nbsp;<br>[1.03, 1.68]</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="sentiment-4-s4" class="level3" data-number="4.2.4">
<h3 data-number="4.2.4" class="anchored" data-anchor-id="sentiment-4-s4"><span class="header-section-number">4.2.4</span> Sentiment 4 (S4)</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb43" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb43-1">s4_models <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;">map</span>(s1_models, </span>
<span id="cb43-2">                 <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;">update</span>(.x, change_vac_3 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> .))</span>
<span id="cb43-3"></span>
<span id="cb43-4">s4_result_comp <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;">map</span>(s4_models, extract_esti) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb43-5">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">reduce</span>(full_join, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vars"</span>)</span>
<span id="cb43-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(s4_result_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"EVs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 5"</span>)</span>
<span id="cb43-7"></span>
<span id="cb43-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(s4_result_comp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb43-9">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</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="cb43-10">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>()) </span></code></pre></div></div>
</details>
<div id="tbl-S4-result" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-S4-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;8: Working odds-ratio estimates (95% Wald CIs) for Sentiment 4
</figcaption>
<div aria-describedby="tbl-S4-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="kajarhlqdn" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#kajarhlqdn table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#kajarhlqdn thead, #kajarhlqdn tbody, #kajarhlqdn tfoot, #kajarhlqdn tr, #kajarhlqdn td, #kajarhlqdn th {
  border-style: none;
}

#kajarhlqdn p {
  margin: 0;
  padding: 0;
}

#kajarhlqdn .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#kajarhlqdn .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#kajarhlqdn .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#kajarhlqdn .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#kajarhlqdn .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#kajarhlqdn .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kajarhlqdn .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#kajarhlqdn .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#kajarhlqdn .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#kajarhlqdn .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#kajarhlqdn .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#kajarhlqdn .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#kajarhlqdn .gt_spanner_row {
  border-bottom-style: hidden;
}

#kajarhlqdn .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#kajarhlqdn .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#kajarhlqdn .gt_from_md > :first-child {
  margin-top: 0;
}

#kajarhlqdn .gt_from_md > :last-child {
  margin-bottom: 0;
}

#kajarhlqdn .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#kajarhlqdn .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#kajarhlqdn .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#kajarhlqdn .gt_row_group_first td {
  border-top-width: 2px;
}

#kajarhlqdn .gt_row_group_first th {
  border-top-width: 2px;
}

#kajarhlqdn .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#kajarhlqdn .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#kajarhlqdn .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#kajarhlqdn .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kajarhlqdn .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#kajarhlqdn .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#kajarhlqdn .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#kajarhlqdn .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#kajarhlqdn .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#kajarhlqdn .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#kajarhlqdn .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#kajarhlqdn .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#kajarhlqdn .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#kajarhlqdn .gt_left {
  text-align: left;
}

#kajarhlqdn .gt_center {
  text-align: center;
}

#kajarhlqdn .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#kajarhlqdn .gt_font_normal {
  font-weight: normal;
}

#kajarhlqdn .gt_font_bold {
  font-weight: bold;
}

#kajarhlqdn .gt_font_italic {
  font-style: italic;
}

#kajarhlqdn .gt_super {
  font-size: 65%;
}

#kajarhlqdn .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#kajarhlqdn .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#kajarhlqdn .gt_indent_1 {
  text-indent: 5px;
}

#kajarhlqdn .gt_indent_2 {
  text-indent: 10px;
}

#kajarhlqdn .gt_indent_3 {
  text-indent: 15px;
}

#kajarhlqdn .gt_indent_4 {
  text-indent: 20px;
}

#kajarhlqdn .gt_indent_5 {
  text-indent: 25px;
}

#kajarhlqdn .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#kajarhlqdn div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
</colgroup>
<thead>
<tr class="gt_col_headings header">
<th id="EVs" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">EVs</th>
<th id="Model-1" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 1</th>
<th id="Model-2" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 2</th>
<th id="Model-3" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 3</th>
<th id="Model-4" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 4</th>
<th id="Model-5" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 5</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">(Intercept)</td>
<td class="gt_row gt_center" headers="Model 1">6.96***&nbsp;<br>[3.89, 12.46]</td>
<td class="gt_row gt_center" headers="Model 2">7.59***&nbsp;<br>[2.88, 20.05]</td>
<td class="gt_row gt_center" headers="Model 3">2.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 6.82]</td>
<td class="gt_row gt_center" headers="Model 4">3.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.76, 20.64]</td>
<td class="gt_row gt_center" headers="Model 5">5.43&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.97, 30.25]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">genderMale</td>
<td class="gt_row gt_center" headers="Model 1">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 1.23]</td>
<td class="gt_row gt_center" headers="Model 2">0.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 1.33]</td>
<td class="gt_row gt_center" headers="Model 3">0.80&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 1.41]</td>
<td class="gt_row gt_center" headers="Model 4">0.83&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.46]</td>
<td class="gt_row gt_center" headers="Model 5">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.50]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class35-44</td>
<td class="gt_row gt_center" headers="Model 1">0.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.55]</td>
<td class="gt_row gt_center" headers="Model 2">0.74&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.57]</td>
<td class="gt_row gt_center" headers="Model 3">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.69]</td>
<td class="gt_row gt_center" headers="Model 4">0.80&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.73]</td>
<td class="gt_row gt_center" headers="Model 5">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.95]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class45-54</td>
<td class="gt_row gt_center" headers="Model 1">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 2.59]</td>
<td class="gt_row gt_center" headers="Model 2">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.77]</td>
<td class="gt_row gt_center" headers="Model 3">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 2.78]</td>
<td class="gt_row gt_center" headers="Model 4">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 2.79]</td>
<td class="gt_row gt_center" headers="Model 5">1.28&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 3.24]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class55-64</td>
<td class="gt_row gt_center" headers="Model 1">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 2.32]</td>
<td class="gt_row gt_center" headers="Model 2">1.00&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 2.39]</td>
<td class="gt_row gt_center" headers="Model 3">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 2.60]</td>
<td class="gt_row gt_center" headers="Model 4">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 2.64]</td>
<td class="gt_row gt_center" headers="Model 5">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 2.82]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class65-74</td>
<td class="gt_row gt_center" headers="Model 1">1.56&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.50, 4.89]</td>
<td class="gt_row gt_center" headers="Model 2">1.41&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 4.76]</td>
<td class="gt_row gt_center" headers="Model 3">1.32&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 4.49]</td>
<td class="gt_row gt_center" headers="Model 4">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 4.70]</td>
<td class="gt_row gt_center" headers="Model 5">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 5.34]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class75+</td>
<td class="gt_row gt_center" headers="Model 1">1.04&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.11, 9.83]</td>
<td class="gt_row gt_center" headers="Model 2">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.12, 12.06]</td>
<td class="gt_row gt_center" headers="Model 3">1.28&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.12, 13.31]</td>
<td class="gt_row gt_center" headers="Model 4">1.33&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.13, 14.05]</td>
<td class="gt_row gt_center" headers="Model 5">1.56&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.14, 17.33]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">eduMedi</td>
<td class="gt_row gt_center" headers="Model 1">0.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.01]</td>
<td class="gt_row gt_center" headers="Model 2">0.65&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.20]</td>
<td class="gt_row gt_center" headers="Model 3">0.69&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.30]</td>
<td class="gt_row gt_center" headers="Model 4">0.69&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.31]</td>
<td class="gt_row gt_center" headers="Model 5">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 1.38]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">chronicYes</td>
<td class="gt_row gt_center" headers="Model 1">1.56&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.83, 2.92]</td>
<td class="gt_row gt_center" headers="Model 2">1.46&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.77, 2.77]</td>
<td class="gt_row gt_center" headers="Model 3">1.32&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 2.54]</td>
<td class="gt_row gt_center" headers="Model 4">1.32&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 2.55]</td>
<td class="gt_row gt_center" headers="Model 5">1.29&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 2.52]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">memberYes</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.34, 1.32]</td>
<td class="gt_row gt_center" headers="Model 3">0.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.30, 1.22]</td>
<td class="gt_row gt_center" headers="Model 4">0.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.30, 1.21]</td>
<td class="gt_row gt_center" headers="Model 5">0.56&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.27, 1.14]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profNutr</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 2.17]</td>
<td class="gt_row gt_center" headers="Model 3">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.55, 2.34]</td>
<td class="gt_row gt_center" headers="Model 4">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.54, 2.32]</td>
<td class="gt_row gt_center" headers="Model 5">1.26&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 2.74]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">profPhar</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.28&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.57, 2.88]</td>
<td class="gt_row gt_center" headers="Model 3">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 2.73]</td>
<td class="gt_row gt_center" headers="Model 4">1.21&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 2.75]</td>
<td class="gt_row gt_center" headers="Model 5">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.52]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profPhys</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.65]</td>
<td class="gt_row gt_center" headers="Model 3">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.32, 1.58]</td>
<td class="gt_row gt_center" headers="Model 4">0.73&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.33, 1.61]</td>
<td class="gt_row gt_center" headers="Model 5">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.30, 1.53]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingComm</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.33, 1.85]</td>
<td class="gt_row gt_center" headers="Model 3">0.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 2.07]</td>
<td class="gt_row gt_center" headers="Model 4">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 2.11]</td>
<td class="gt_row gt_center" headers="Model 5">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.40]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingHosp</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.34, 2.21]</td>
<td class="gt_row gt_center" headers="Model 3">1.01&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.63]</td>
<td class="gt_row gt_center" headers="Model 4">1.02&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.66]</td>
<td class="gt_row gt_center" headers="Model 5">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 3.23]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingPriv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.54, 3.55]</td>
<td class="gt_row gt_center" headers="Model 3">1.51&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 3.92]</td>
<td class="gt_row gt_center" headers="Model 4">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 3.89]</td>
<td class="gt_row gt_center" headers="Model 5">1.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 5.05]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingUniv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 2.10]</td>
<td class="gt_row gt_center" headers="Model 3">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 2.18]</td>
<td class="gt_row gt_center" headers="Model 4">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.25]</td>
<td class="gt_row gt_center" headers="Model 5">0.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.30]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">fear</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">1.17***&nbsp;<br>[1.08, 1.27]</td>
<td class="gt_row gt_center" headers="Model 4">1.17***&nbsp;<br>[1.08, 1.27]</td>
<td class="gt_row gt_center" headers="Model 5">1.11*&nbsp;&nbsp;&nbsp;<br>[1.01, 1.22]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">knowledge</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.77, 1.08]</td>
<td class="gt_row gt_center" headers="Model 5">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.77, 1.09]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML5</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.53]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML4</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 1.75]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML2</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">2.07*&nbsp;&nbsp;&nbsp;<br>[1.14, 3.74]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML1</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 1.46]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML3</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.85, 1.50]</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="sentiment-5-s5" class="level3" data-number="4.2.5">
<h3 data-number="4.2.5" class="anchored" data-anchor-id="sentiment-5-s5"><span class="header-section-number">4.2.5</span> Sentiment 5 (S5)</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb44" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb44-1">s5_models <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;">map</span>(s1_models, </span>
<span id="cb44-2">                 <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;">update</span>(.x, cov_pro_3 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> .))</span>
<span id="cb44-3"></span>
<span id="cb44-4">s5_result_comp <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;">map</span>(s5_models, extract_esti) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb44-5">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">reduce</span>(full_join, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vars"</span>)</span>
<span id="cb44-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(s5_result_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"EVs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Model 5"</span>)</span>
<span id="cb44-7"></span>
<span id="cb44-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(s5_result_comp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb44-9">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</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="cb44-10">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>()) </span></code></pre></div></div>
</details>
<div id="tbl-S5-result" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-S5-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;9: Working odds-ratio estimates (95% Wald CIs) for Sentiment 5
</figcaption>
<div aria-describedby="tbl-S5-result-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="qazwdnhtrg" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#qazwdnhtrg table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#qazwdnhtrg thead, #qazwdnhtrg tbody, #qazwdnhtrg tfoot, #qazwdnhtrg tr, #qazwdnhtrg td, #qazwdnhtrg th {
  border-style: none;
}

#qazwdnhtrg p {
  margin: 0;
  padding: 0;
}

#qazwdnhtrg .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#qazwdnhtrg .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#qazwdnhtrg .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#qazwdnhtrg .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#qazwdnhtrg .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#qazwdnhtrg .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qazwdnhtrg .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#qazwdnhtrg .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#qazwdnhtrg .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#qazwdnhtrg .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#qazwdnhtrg .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#qazwdnhtrg .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#qazwdnhtrg .gt_spanner_row {
  border-bottom-style: hidden;
}

#qazwdnhtrg .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#qazwdnhtrg .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#qazwdnhtrg .gt_from_md > :first-child {
  margin-top: 0;
}

#qazwdnhtrg .gt_from_md > :last-child {
  margin-bottom: 0;
}

#qazwdnhtrg .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#qazwdnhtrg .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#qazwdnhtrg .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#qazwdnhtrg .gt_row_group_first td {
  border-top-width: 2px;
}

#qazwdnhtrg .gt_row_group_first th {
  border-top-width: 2px;
}

#qazwdnhtrg .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#qazwdnhtrg .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#qazwdnhtrg .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#qazwdnhtrg .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qazwdnhtrg .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#qazwdnhtrg .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#qazwdnhtrg .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#qazwdnhtrg .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#qazwdnhtrg .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#qazwdnhtrg .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#qazwdnhtrg .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#qazwdnhtrg .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#qazwdnhtrg .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#qazwdnhtrg .gt_left {
  text-align: left;
}

#qazwdnhtrg .gt_center {
  text-align: center;
}

#qazwdnhtrg .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#qazwdnhtrg .gt_font_normal {
  font-weight: normal;
}

#qazwdnhtrg .gt_font_bold {
  font-weight: bold;
}

#qazwdnhtrg .gt_font_italic {
  font-style: italic;
}

#qazwdnhtrg .gt_super {
  font-size: 65%;
}

#qazwdnhtrg .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#qazwdnhtrg .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#qazwdnhtrg .gt_indent_1 {
  text-indent: 5px;
}

#qazwdnhtrg .gt_indent_2 {
  text-indent: 10px;
}

#qazwdnhtrg .gt_indent_3 {
  text-indent: 15px;
}

#qazwdnhtrg .gt_indent_4 {
  text-indent: 20px;
}

#qazwdnhtrg .gt_indent_5 {
  text-indent: 25px;
}

#qazwdnhtrg .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#qazwdnhtrg div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
</colgroup>
<thead>
<tr class="gt_col_headings header">
<th id="EVs" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">EVs</th>
<th id="Model-1" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 1</th>
<th id="Model-2" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 2</th>
<th id="Model-3" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 3</th>
<th id="Model-4" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 4</th>
<th id="Model-5" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">Model 5</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">(Intercept)</td>
<td class="gt_row gt_center" headers="Model 1">3.56***&nbsp;<br>[2.18, 5.82]</td>
<td class="gt_row gt_center" headers="Model 2">7.38***&nbsp;<br>[2.77, 19.63]</td>
<td class="gt_row gt_center" headers="Model 3">0.82&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 2.71]</td>
<td class="gt_row gt_center" headers="Model 4">0.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.04, 1.03]</td>
<td class="gt_row gt_center" headers="Model 5">1.16&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.13, 10.42]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">genderMale</td>
<td class="gt_row gt_center" headers="Model 1">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 1.54]</td>
<td class="gt_row gt_center" headers="Model 2">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.56, 1.74]</td>
<td class="gt_row gt_center" headers="Model 3">1.16&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 2.15]</td>
<td class="gt_row gt_center" headers="Model 4">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.56, 1.99]</td>
<td class="gt_row gt_center" headers="Model 5">1.11&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.66]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class35-44</td>
<td class="gt_row gt_center" headers="Model 1">0.85&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 1.59]</td>
<td class="gt_row gt_center" headers="Model 2">0.70&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.37]</td>
<td class="gt_row gt_center" headers="Model 3">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.51]</td>
<td class="gt_row gt_center" headers="Model 4">0.70&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.33, 1.46]</td>
<td class="gt_row gt_center" headers="Model 5">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 2.89]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class45-54</td>
<td class="gt_row gt_center" headers="Model 1">1.25&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 2.63]</td>
<td class="gt_row gt_center" headers="Model 2">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.98]</td>
<td class="gt_row gt_center" headers="Model 3">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 2.23]</td>
<td class="gt_row gt_center" headers="Model 4">0.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 2.29]</td>
<td class="gt_row gt_center" headers="Model 5">2.30&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.71, 7.48]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class55-64</td>
<td class="gt_row gt_center" headers="Model 1">1.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.88, 4.13]</td>
<td class="gt_row gt_center" headers="Model 2">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 2.55]</td>
<td class="gt_row gt_center" headers="Model 3">1.30&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 3.28]</td>
<td class="gt_row gt_center" headers="Model 4">1.34&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.52, 3.43]</td>
<td class="gt_row gt_center" headers="Model 5">3.33&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.95, 11.65]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class65-74</td>
<td class="gt_row gt_center" headers="Model 1">4.88*&nbsp;&nbsp;&nbsp;<br>[1.06, 22.59]</td>
<td class="gt_row gt_center" headers="Model 2">2.21&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 10.89]</td>
<td class="gt_row gt_center" headers="Model 3">2.99&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.52, 17.11]</td>
<td class="gt_row gt_center" headers="Model 4">3.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 17.82]</td>
<td class="gt_row gt_center" headers="Model 5">3.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 20.24]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class75+</td>
<td class="gt_row gt_center" headers="Model 1">0.55&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.09, 3.20]</td>
<td class="gt_row gt_center" headers="Model 2">0.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.03, 1.36]</td>
<td class="gt_row gt_center" headers="Model 3">0.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.02, 2.01]</td>
<td class="gt_row gt_center" headers="Model 4">0.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.02, 2.20]</td>
<td class="gt_row gt_center" headers="Model 5">0.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.03, 10.26]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">eduMedi</td>
<td class="gt_row gt_center" headers="Model 1">1.33&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.78, 2.27]</td>
<td class="gt_row gt_center" headers="Model 2">0.70&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.32]</td>
<td class="gt_row gt_center" headers="Model 3">0.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 1.53]</td>
<td class="gt_row gt_center" headers="Model 4">0.73&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.49]</td>
<td class="gt_row gt_center" headers="Model 5">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.32, 2.33]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">chronicYes</td>
<td class="gt_row gt_center" headers="Model 1">1.11&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.61, 2.02]</td>
<td class="gt_row gt_center" headers="Model 2">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 2.61]</td>
<td class="gt_row gt_center" headers="Model 3">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.55, 2.19]</td>
<td class="gt_row gt_center" headers="Model 4">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.56, 2.28]</td>
<td class="gt_row gt_center" headers="Model 5">1.51&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 3.93]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">memberYes</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.74, 4.28]</td>
<td class="gt_row gt_center" headers="Model 3">1.32&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.50, 3.47]</td>
<td class="gt_row gt_center" headers="Model 4">1.33&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.50, 3.53]</td>
<td class="gt_row gt_center" headers="Model 5">0.63&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.19, 2.06]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profNutr</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.75&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.40]</td>
<td class="gt_row gt_center" headers="Model 3">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.56]</td>
<td class="gt_row gt_center" headers="Model 4">0.81&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.63]</td>
<td class="gt_row gt_center" headers="Model 5">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 2.53]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">profPhar</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">2.34&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.91, 6.00]</td>
<td class="gt_row gt_center" headers="Model 3">2.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.76, 5.67]</td>
<td class="gt_row gt_center" headers="Model 4">2.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.79, 6.11]</td>
<td class="gt_row gt_center" headers="Model 5">0.81&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.20, 3.30]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profPhys</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 4.11]</td>
<td class="gt_row gt_center" headers="Model 3">1.35&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.43, 4.26]</td>
<td class="gt_row gt_center" headers="Model 4">1.28&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 3.99]</td>
<td class="gt_row gt_center" headers="Model 5">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.18, 3.30]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingComm</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.20, 1.16]</td>
<td class="gt_row gt_center" headers="Model 3">0.50&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.19, 1.30]</td>
<td class="gt_row gt_center" headers="Model 4">0.47&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.18, 1.24]</td>
<td class="gt_row gt_center" headers="Model 5">0.71&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.21, 2.42]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingHosp</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.43&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.18, 1.05]</td>
<td class="gt_row gt_center" headers="Model 3">0.47&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.18, 1.27]</td>
<td class="gt_row gt_center" headers="Model 4">0.46&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.17, 1.26]</td>
<td class="gt_row gt_center" headers="Model 5">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 3.82]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingPriv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">0.50&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.21, 1.18]</td>
<td class="gt_row gt_center" headers="Model 3">0.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.19, 1.22]</td>
<td class="gt_row gt_center" headers="Model 4">0.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.19, 1.25]</td>
<td class="gt_row gt_center" headers="Model 5">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 4.67]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingUniv</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">1.52&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.52, 4.46]</td>
<td class="gt_row gt_center" headers="Model 3">1.55&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 5.17]</td>
<td class="gt_row gt_center" headers="Model 4">1.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 5.00]</td>
<td class="gt_row gt_center" headers="Model 5">1.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 6.17]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">fear</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">1.35***&nbsp;<br>[1.24, 1.46]</td>
<td class="gt_row gt_center" headers="Model 4">1.35***&nbsp;<br>[1.24, 1.47]</td>
<td class="gt_row gt_center" headers="Model 5">1.17*&nbsp;&nbsp;&nbsp;<br>[1.03, 1.32]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">knowledge</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">1.22*&nbsp;&nbsp;&nbsp;<br>[1.05, 1.43]</td>
<td class="gt_row gt_center" headers="Model 5">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.88, 1.36]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML5</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">2.47*&nbsp;&nbsp;&nbsp;<br>[1.08, 5.66]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML4</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">1.46&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.81, 2.61]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML2</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">4.18***&nbsp;<br>[1.95, 8.95]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML1</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.28]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML3</td>
<td class="gt_row gt_center" headers="Model 1">-</td>
<td class="gt_row gt_center" headers="Model 2">-</td>
<td class="gt_row gt_center" headers="Model 3">-</td>
<td class="gt_row gt_center" headers="Model 4">-</td>
<td class="gt_row gt_center" headers="Model 5">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.15]</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="summary-of-model-5-across-sentiment-outcomes" class="level3" data-number="4.2.6">
<h3 data-number="4.2.6" class="anchored" data-anchor-id="summary-of-model-5-across-sentiment-outcomes"><span class="header-section-number">4.2.6</span> Summary of Model 5 across sentiment outcomes</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb45" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb45-1">m5_comp <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;">map</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(s1_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s2_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s3_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s4_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s5_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]]), </span>
<span id="cb45-2">               extract_esti) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb45-3">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">reduce</span>(full_join, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vars"</span>)</span>
<span id="cb45-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(m5_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"EVs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S5"</span>)</span>
<span id="cb45-5"></span>
<span id="cb45-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(m5_comp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb45-7">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</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="cb45-8">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>()) </span></code></pre></div></div>
</details>
<div id="tbl-model5" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-model5-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;10: Model 5 odds-ratio summary (95% Wald CIs)
</figcaption>
<div aria-describedby="tbl-model5-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="bcpwcjhdxn" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#bcpwcjhdxn table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#bcpwcjhdxn thead, #bcpwcjhdxn tbody, #bcpwcjhdxn tfoot, #bcpwcjhdxn tr, #bcpwcjhdxn td, #bcpwcjhdxn th {
  border-style: none;
}

#bcpwcjhdxn p {
  margin: 0;
  padding: 0;
}

#bcpwcjhdxn .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#bcpwcjhdxn .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#bcpwcjhdxn .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#bcpwcjhdxn .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#bcpwcjhdxn .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#bcpwcjhdxn .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#bcpwcjhdxn .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#bcpwcjhdxn .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#bcpwcjhdxn .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#bcpwcjhdxn .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#bcpwcjhdxn .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#bcpwcjhdxn .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#bcpwcjhdxn .gt_spanner_row {
  border-bottom-style: hidden;
}

#bcpwcjhdxn .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#bcpwcjhdxn .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#bcpwcjhdxn .gt_from_md > :first-child {
  margin-top: 0;
}

#bcpwcjhdxn .gt_from_md > :last-child {
  margin-bottom: 0;
}

#bcpwcjhdxn .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#bcpwcjhdxn .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#bcpwcjhdxn .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#bcpwcjhdxn .gt_row_group_first td {
  border-top-width: 2px;
}

#bcpwcjhdxn .gt_row_group_first th {
  border-top-width: 2px;
}

#bcpwcjhdxn .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#bcpwcjhdxn .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#bcpwcjhdxn .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#bcpwcjhdxn .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#bcpwcjhdxn .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#bcpwcjhdxn .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#bcpwcjhdxn .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#bcpwcjhdxn .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#bcpwcjhdxn .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#bcpwcjhdxn .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#bcpwcjhdxn .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#bcpwcjhdxn .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#bcpwcjhdxn .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#bcpwcjhdxn .gt_left {
  text-align: left;
}

#bcpwcjhdxn .gt_center {
  text-align: center;
}

#bcpwcjhdxn .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#bcpwcjhdxn .gt_font_normal {
  font-weight: normal;
}

#bcpwcjhdxn .gt_font_bold {
  font-weight: bold;
}

#bcpwcjhdxn .gt_font_italic {
  font-style: italic;
}

#bcpwcjhdxn .gt_super {
  font-size: 65%;
}

#bcpwcjhdxn .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#bcpwcjhdxn .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#bcpwcjhdxn .gt_indent_1 {
  text-indent: 5px;
}

#bcpwcjhdxn .gt_indent_2 {
  text-indent: 10px;
}

#bcpwcjhdxn .gt_indent_3 {
  text-indent: 15px;
}

#bcpwcjhdxn .gt_indent_4 {
  text-indent: 20px;
}

#bcpwcjhdxn .gt_indent_5 {
  text-indent: 25px;
}

#bcpwcjhdxn .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#bcpwcjhdxn div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
</colgroup>
<thead>
<tr class="gt_col_headings header">
<th id="EVs" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">EVs</th>
<th id="S1" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S1</th>
<th id="S2" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S2</th>
<th id="S3" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S3</th>
<th id="S4" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S4</th>
<th id="S5" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S5</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">(Intercept)</td>
<td class="gt_row gt_center" headers="S1">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.23, 3.77]</td>
<td class="gt_row gt_center" headers="S2">1.99&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 9.84]</td>
<td class="gt_row gt_center" headers="S3">1.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 7.91]</td>
<td class="gt_row gt_center" headers="S4">5.43&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.97, 30.25]</td>
<td class="gt_row gt_center" headers="S5">1.16&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.13, 10.42]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">genderMale</td>
<td class="gt_row gt_center" headers="S1">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 1.88]</td>
<td class="gt_row gt_center" headers="S2">1.07&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 1.91]</td>
<td class="gt_row gt_center" headers="S3">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 1.88]</td>
<td class="gt_row gt_center" headers="S4">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.50]</td>
<td class="gt_row gt_center" headers="S5">1.11&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.66]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class35-44</td>
<td class="gt_row gt_center" headers="S1">2.02*&nbsp;&nbsp;&nbsp;<br>[1.10, 3.71]</td>
<td class="gt_row gt_center" headers="S2">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 2.14]</td>
<td class="gt_row gt_center" headers="S3">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.72]</td>
<td class="gt_row gt_center" headers="S4">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.95]</td>
<td class="gt_row gt_center" headers="S5">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 2.89]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class45-54</td>
<td class="gt_row gt_center" headers="S1">2.08*&nbsp;&nbsp;&nbsp;<br>[1.03, 4.19]</td>
<td class="gt_row gt_center" headers="S2">1.21&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 2.77]</td>
<td class="gt_row gt_center" headers="S3">1.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.92, 4.24]</td>
<td class="gt_row gt_center" headers="S4">1.28&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 3.24]</td>
<td class="gt_row gt_center" headers="S5">2.30&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.71, 7.48]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class55-64</td>
<td class="gt_row gt_center" headers="S1">3.32**&nbsp;&nbsp;<br>[1.58, 6.96]</td>
<td class="gt_row gt_center" headers="S2">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.91]</td>
<td class="gt_row gt_center" headers="S3">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 2.84]</td>
<td class="gt_row gt_center" headers="S4">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 2.82]</td>
<td class="gt_row gt_center" headers="S5">3.33&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.95, 11.65]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class65-74</td>
<td class="gt_row gt_center" headers="S1">10.72***&nbsp;<br>[2.81, 40.87]</td>
<td class="gt_row gt_center" headers="S2">10.77*&nbsp;&nbsp;&nbsp;<br>[1.24, 93.36]</td>
<td class="gt_row gt_center" headers="S3">2.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.97, 8.64]</td>
<td class="gt_row gt_center" headers="S4">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 5.34]</td>
<td class="gt_row gt_center" headers="S5">3.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 20.24]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class75+</td>
<td class="gt_row gt_center" headers="S1">0.55&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.10, 3.04]</td>
<td class="gt_row gt_center" headers="S2">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.15, 13.23]</td>
<td class="gt_row gt_center" headers="S3">1.02&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.16, 6.42]</td>
<td class="gt_row gt_center" headers="S4">1.56&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.14, 17.33]</td>
<td class="gt_row gt_center" headers="S5">0.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.03, 10.26]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">eduMedi</td>
<td class="gt_row gt_center" headers="S1">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.45]</td>
<td class="gt_row gt_center" headers="S2">0.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.26]</td>
<td class="gt_row gt_center" headers="S3">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 1.17]</td>
<td class="gt_row gt_center" headers="S4">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 1.38]</td>
<td class="gt_row gt_center" headers="S5">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.32, 2.33]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">chronicYes</td>
<td class="gt_row gt_center" headers="S1">0.56*&nbsp;&nbsp;&nbsp;<br>[0.33, 0.94]</td>
<td class="gt_row gt_center" headers="S2">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 2.02]</td>
<td class="gt_row gt_center" headers="S3">0.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 1.51]</td>
<td class="gt_row gt_center" headers="S4">1.29&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 2.52]</td>
<td class="gt_row gt_center" headers="S5">1.51&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 3.93]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">memberYes</td>
<td class="gt_row gt_center" headers="S1">0.85&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.63]</td>
<td class="gt_row gt_center" headers="S2">0.77&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.63]</td>
<td class="gt_row gt_center" headers="S3">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 2.69]</td>
<td class="gt_row gt_center" headers="S4">0.56&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.27, 1.14]</td>
<td class="gt_row gt_center" headers="S5">0.63&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.19, 2.06]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profNutr</td>
<td class="gt_row gt_center" headers="S1">1.30&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 2.34]</td>
<td class="gt_row gt_center" headers="S2">0.81&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.61]</td>
<td class="gt_row gt_center" headers="S3">0.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.39]</td>
<td class="gt_row gt_center" headers="S4">1.26&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 2.74]</td>
<td class="gt_row gt_center" headers="S5">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 2.53]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">profPhar</td>
<td class="gt_row gt_center" headers="S1">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 3.14]</td>
<td class="gt_row gt_center" headers="S2">1.35&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 3.14]</td>
<td class="gt_row gt_center" headers="S3">0.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.59]</td>
<td class="gt_row gt_center" headers="S4">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.52]</td>
<td class="gt_row gt_center" headers="S5">0.81&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.20, 3.30]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profPhys</td>
<td class="gt_row gt_center" headers="S1">1.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.74, 4.16]</td>
<td class="gt_row gt_center" headers="S2">0.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 2.34]</td>
<td class="gt_row gt_center" headers="S3">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.96]</td>
<td class="gt_row gt_center" headers="S4">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.30, 1.53]</td>
<td class="gt_row gt_center" headers="S5">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.18, 3.30]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingComm</td>
<td class="gt_row gt_center" headers="S1">1.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 3.12]</td>
<td class="gt_row gt_center" headers="S2">0.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.24, 1.45]</td>
<td class="gt_row gt_center" headers="S3">0.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.19, 1.02]</td>
<td class="gt_row gt_center" headers="S4">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.40]</td>
<td class="gt_row gt_center" headers="S5">0.71&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.21, 2.42]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingHosp</td>
<td class="gt_row gt_center" headers="S1">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 3.37]</td>
<td class="gt_row gt_center" headers="S2">0.70&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.27, 1.82]</td>
<td class="gt_row gt_center" headers="S3">0.38*&nbsp;&nbsp;&nbsp;<br>[0.16, 0.90]</td>
<td class="gt_row gt_center" headers="S4">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 3.23]</td>
<td class="gt_row gt_center" headers="S5">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 3.82]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingPriv</td>
<td class="gt_row gt_center" headers="S1">0.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.79]</td>
<td class="gt_row gt_center" headers="S2">0.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.29]</td>
<td class="gt_row gt_center" headers="S3">0.57&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 1.31]</td>
<td class="gt_row gt_center" headers="S4">1.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 5.05]</td>
<td class="gt_row gt_center" headers="S5">1.39&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 4.67]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingUniv</td>
<td class="gt_row gt_center" headers="S1">1.38&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 2.99]</td>
<td class="gt_row gt_center" headers="S2">0.62&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 1.57]</td>
<td class="gt_row gt_center" headers="S3">0.34*&nbsp;&nbsp;&nbsp;<br>[0.14, 0.82]</td>
<td class="gt_row gt_center" headers="S4">0.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.30]</td>
<td class="gt_row gt_center" headers="S5">1.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 6.17]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">fear</td>
<td class="gt_row gt_center" headers="S1">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.88, 1.05]</td>
<td class="gt_row gt_center" headers="S2">1.10*&nbsp;&nbsp;&nbsp;<br>[1.00, 1.21]</td>
<td class="gt_row gt_center" headers="S3">1.10*&nbsp;&nbsp;&nbsp;<br>[1.01, 1.19]</td>
<td class="gt_row gt_center" headers="S4">1.11*&nbsp;&nbsp;&nbsp;<br>[1.01, 1.22]</td>
<td class="gt_row gt_center" headers="S5">1.17*&nbsp;&nbsp;&nbsp;<br>[1.03, 1.32]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">knowledge</td>
<td class="gt_row gt_center" headers="S1">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.95, 1.25]</td>
<td class="gt_row gt_center" headers="S2">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.90, 1.22]</td>
<td class="gt_row gt_center" headers="S3">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.92, 1.20]</td>
<td class="gt_row gt_center" headers="S4">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.77, 1.09]</td>
<td class="gt_row gt_center" headers="S5">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.88, 1.36]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML5</td>
<td class="gt_row gt_center" headers="S1">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.63, 1.96]</td>
<td class="gt_row gt_center" headers="S2">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.57, 1.97]</td>
<td class="gt_row gt_center" headers="S3">0.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.39]</td>
<td class="gt_row gt_center" headers="S4">0.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 1.53]</td>
<td class="gt_row gt_center" headers="S5">2.47*&nbsp;&nbsp;&nbsp;<br>[1.08, 5.66]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML4</td>
<td class="gt_row gt_center" headers="S1">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 1.38]</td>
<td class="gt_row gt_center" headers="S2">1.77*&nbsp;&nbsp;&nbsp;<br>[1.13, 2.78]</td>
<td class="gt_row gt_center" headers="S3">1.49&nbsp;&nbsp;&nbsp;&nbsp;<br>[1.00, 2.23]</td>
<td class="gt_row gt_center" headers="S4">1.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 1.75]</td>
<td class="gt_row gt_center" headers="S5">1.46&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.81, 2.61]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML2</td>
<td class="gt_row gt_center" headers="S1">1.47&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.86, 2.51]</td>
<td class="gt_row gt_center" headers="S2">2.06*&nbsp;&nbsp;&nbsp;<br>[1.15, 3.66]</td>
<td class="gt_row gt_center" headers="S3">1.62&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.96, 2.75]</td>
<td class="gt_row gt_center" headers="S4">2.07*&nbsp;&nbsp;&nbsp;<br>[1.14, 3.74]</td>
<td class="gt_row gt_center" headers="S5">4.18***&nbsp;<br>[1.95, 8.95]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">ML1</td>
<td class="gt_row gt_center" headers="S1">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 1.32]</td>
<td class="gt_row gt_center" headers="S2">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.57, 1.41]</td>
<td class="gt_row gt_center" headers="S3">1.01&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 1.52]</td>
<td class="gt_row gt_center" headers="S4">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 1.46]</td>
<td class="gt_row gt_center" headers="S5">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.28]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">ML3</td>
<td class="gt_row gt_center" headers="S1">1.02&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.80, 1.30]</td>
<td class="gt_row gt_center" headers="S2">1.33&nbsp;&nbsp;&nbsp;&nbsp;<br>[1.00, 1.79]</td>
<td class="gt_row gt_center" headers="S3">1.31*&nbsp;&nbsp;&nbsp;<br>[1.03, 1.68]</td>
<td class="gt_row gt_center" headers="S4">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.85, 1.50]</td>
<td class="gt_row gt_center" headers="S5">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.15]</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="appendix-model-5-using-attitude-items-instead-of-factor-scores" class="level3" data-number="4.2.7">
<h3 data-number="4.2.7" class="anchored" data-anchor-id="appendix-model-5-using-attitude-items-instead-of-factor-scores"><span class="header-section-number">4.2.7</span> Appendix: Model 5 using attitude items instead of factor scores</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb46" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb46-1">m5_ori_models <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;">map</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(s1_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s2_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s3_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s4_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]], s5_models[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>]]),</span>
<span id="cb46-2">                      <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;">update</span>(.x, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.formula</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">". ~ ."</span>, </span>
<span id="cb46-3">                                              <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;">str_flatten</span>(fa_var, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" - "</span>), </span>
<span id="cb46-4">                                              <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;">str_flatten</span>(attitude_var, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">" + "</span>)))))</span>
<span id="cb46-5"></span>
<span id="cb46-6">m5_ori_comp <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;">map</span>(m5_ori_models, extract_esti) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb46-7">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">reduce</span>(full_join, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">by =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"vars"</span>)</span>
<span id="cb46-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">names</span>(m5_ori_comp) <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"EVs"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S1"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S3"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"S5"</span>)</span>
<span id="cb46-9"></span>
<span id="cb46-10"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(m5_ori_comp) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span> </span>
<span id="cb46-11">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sub_missing</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">missing_text =</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="cb46-12">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">everything</span>())</span></code></pre></div></div>
</details>
<div id="tbl-model5-ori" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-model5-ori-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;11: Model 5 odds ratios (95% Wald CIs) using attitude items instead of factor scores
</figcaption>
<div aria-describedby="tbl-model5-ori-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="ldddrkgibq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ldddrkgibq table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ldddrkgibq thead, #ldddrkgibq tbody, #ldddrkgibq tfoot, #ldddrkgibq tr, #ldddrkgibq td, #ldddrkgibq th {
  border-style: none;
}

#ldddrkgibq p {
  margin: 0;
  padding: 0;
}

#ldddrkgibq .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#ldddrkgibq .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#ldddrkgibq .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#ldddrkgibq .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#ldddrkgibq .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ldddrkgibq .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ldddrkgibq .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#ldddrkgibq .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#ldddrkgibq .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#ldddrkgibq .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#ldddrkgibq .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#ldddrkgibq .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#ldddrkgibq .gt_spanner_row {
  border-bottom-style: hidden;
}

#ldddrkgibq .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#ldddrkgibq .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#ldddrkgibq .gt_from_md > :first-child {
  margin-top: 0;
}

#ldddrkgibq .gt_from_md > :last-child {
  margin-bottom: 0;
}

#ldddrkgibq .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#ldddrkgibq .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#ldddrkgibq .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#ldddrkgibq .gt_row_group_first td {
  border-top-width: 2px;
}

#ldddrkgibq .gt_row_group_first th {
  border-top-width: 2px;
}

#ldddrkgibq .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#ldddrkgibq .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#ldddrkgibq .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#ldddrkgibq .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ldddrkgibq .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#ldddrkgibq .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#ldddrkgibq .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#ldddrkgibq .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#ldddrkgibq .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#ldddrkgibq .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ldddrkgibq .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#ldddrkgibq .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#ldddrkgibq .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#ldddrkgibq .gt_left {
  text-align: left;
}

#ldddrkgibq .gt_center {
  text-align: center;
}

#ldddrkgibq .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#ldddrkgibq .gt_font_normal {
  font-weight: normal;
}

#ldddrkgibq .gt_font_bold {
  font-weight: bold;
}

#ldddrkgibq .gt_font_italic {
  font-style: italic;
}

#ldddrkgibq .gt_super {
  font-size: 65%;
}

#ldddrkgibq .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#ldddrkgibq .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#ldddrkgibq .gt_indent_1 {
  text-indent: 5px;
}

#ldddrkgibq .gt_indent_2 {
  text-indent: 10px;
}

#ldddrkgibq .gt_indent_3 {
  text-indent: 15px;
}

#ldddrkgibq .gt_indent_4 {
  text-indent: 20px;
}

#ldddrkgibq .gt_indent_5 {
  text-indent: 25px;
}

#ldddrkgibq .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#ldddrkgibq div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
<col style="width: 16%">
</colgroup>
<thead>
<tr class="gt_col_headings header">
<th id="EVs" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">EVs</th>
<th id="S1" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S1</th>
<th id="S2" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S2</th>
<th id="S3" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S3</th>
<th id="S4" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S4</th>
<th id="S5" class="gt_col_heading gt_columns_bottom_border gt_center" data-quarto-table-cell-role="th" scope="col">S5</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">(Intercept)</td>
<td class="gt_row gt_center" headers="S1">0.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.00, 4.14]</td>
<td class="gt_row gt_center" headers="S2">0.00***&nbsp;<br>[0.00, 0.04]</td>
<td class="gt_row gt_center" headers="S3">0.01**&nbsp;&nbsp;<br>[0.00, 0.26]</td>
<td class="gt_row gt_center" headers="S4">0.28&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.00, 18.36]</td>
<td class="gt_row gt_center" headers="S5">0.00*&nbsp;&nbsp;&nbsp;<br>[0.00, 0.58]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">genderMale</td>
<td class="gt_row gt_center" headers="S1">1.18&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 1.99]</td>
<td class="gt_row gt_center" headers="S2">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.61, 2.04]</td>
<td class="gt_row gt_center" headers="S3">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.71, 2.05]</td>
<td class="gt_row gt_center" headers="S4">0.88&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 1.62]</td>
<td class="gt_row gt_center" headers="S5">1.14&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 2.93]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class35-44</td>
<td class="gt_row gt_center" headers="S1">1.89*&nbsp;&nbsp;&nbsp;<br>[1.01, 3.51]</td>
<td class="gt_row gt_center" headers="S2">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 2.10]</td>
<td class="gt_row gt_center" headers="S3">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.77]</td>
<td class="gt_row gt_center" headers="S4">0.87&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 2.02]</td>
<td class="gt_row gt_center" headers="S5">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 3.22]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class45-54</td>
<td class="gt_row gt_center" headers="S1">1.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.94, 3.99]</td>
<td class="gt_row gt_center" headers="S2">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 2.60]</td>
<td class="gt_row gt_center" headers="S3">1.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.81, 3.97]</td>
<td class="gt_row gt_center" headers="S4">1.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.56, 3.92]</td>
<td class="gt_row gt_center" headers="S5">3.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.82, 11.99]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class55-64</td>
<td class="gt_row gt_center" headers="S1">2.95**&nbsp;&nbsp;<br>[1.37, 6.36]</td>
<td class="gt_row gt_center" headers="S2">0.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.32, 1.81]</td>
<td class="gt_row gt_center" headers="S3">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 2.94]</td>
<td class="gt_row gt_center" headers="S4">1.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 3.18]</td>
<td class="gt_row gt_center" headers="S5">3.40&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.86, 13.49]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">age_class65-74</td>
<td class="gt_row gt_center" headers="S1">10.84***&nbsp;<br>[2.74, 42.89]</td>
<td class="gt_row gt_center" headers="S2">14.98*&nbsp;&nbsp;&nbsp;<br>[1.35, 166.41]</td>
<td class="gt_row gt_center" headers="S3">3.47*&nbsp;&nbsp;&nbsp;<br>[1.09, 11.04]</td>
<td class="gt_row gt_center" headers="S4">2.07&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.54, 7.98]</td>
<td class="gt_row gt_center" headers="S5">2.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 24.61]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">age_class75+</td>
<td class="gt_row gt_center" headers="S1">0.34&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.06, 2.04]</td>
<td class="gt_row gt_center" headers="S2">1.26&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.12, 12.97]</td>
<td class="gt_row gt_center" headers="S3">1.01&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.15, 6.94]</td>
<td class="gt_row gt_center" headers="S4">1.21&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.10, 14.06]</td>
<td class="gt_row gt_center" headers="S5">0.45&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.03, 7.44]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">eduMedi</td>
<td class="gt_row gt_center" headers="S1">0.89&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 1.55]</td>
<td class="gt_row gt_center" headers="S2">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.38]</td>
<td class="gt_row gt_center" headers="S3">0.74&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 1.30]</td>
<td class="gt_row gt_center" headers="S4">0.69&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.35]</td>
<td class="gt_row gt_center" headers="S5">0.69&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.23, 2.03]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">chronicYes</td>
<td class="gt_row gt_center" headers="S1">0.58*&nbsp;&nbsp;&nbsp;<br>[0.34, 0.99]</td>
<td class="gt_row gt_center" headers="S2">1.04&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.55, 1.98]</td>
<td class="gt_row gt_center" headers="S3">0.83&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 1.44]</td>
<td class="gt_row gt_center" headers="S4">1.19&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 2.37]</td>
<td class="gt_row gt_center" headers="S5">1.81&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.65, 5.08]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">memberYes</td>
<td class="gt_row gt_center" headers="S1">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.49, 1.86]</td>
<td class="gt_row gt_center" headers="S2">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.71]</td>
<td class="gt_row gt_center" headers="S3">1.27&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 2.53]</td>
<td class="gt_row gt_center" headers="S4">0.61&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.29, 1.27]</td>
<td class="gt_row gt_center" headers="S5">0.51&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.14, 1.88]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profNutr</td>
<td class="gt_row gt_center" headers="S1">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.74, 2.52]</td>
<td class="gt_row gt_center" headers="S2">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 1.63]</td>
<td class="gt_row gt_center" headers="S3">0.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 1.28]</td>
<td class="gt_row gt_center" headers="S4">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 2.68]</td>
<td class="gt_row gt_center" headers="S5">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 3.18]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">profPhar</td>
<td class="gt_row gt_center" headers="S1">1.50&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 3.21]</td>
<td class="gt_row gt_center" headers="S2">1.37&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 3.24]</td>
<td class="gt_row gt_center" headers="S3">0.72&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.34, 1.49]</td>
<td class="gt_row gt_center" headers="S4">1.06&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 2.56]</td>
<td class="gt_row gt_center" headers="S5">0.75&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.18, 3.21]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">profPhys</td>
<td class="gt_row gt_center" headers="S1">1.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.69, 4.02]</td>
<td class="gt_row gt_center" headers="S2">0.83&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.33, 2.08]</td>
<td class="gt_row gt_center" headers="S3">0.77&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.33, 1.79]</td>
<td class="gt_row gt_center" headers="S4">0.69&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.30, 1.61]</td>
<td class="gt_row gt_center" headers="S5">0.66&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.14, 3.09]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingComm</td>
<td class="gt_row gt_center" headers="S1">1.44&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.65, 3.19]</td>
<td class="gt_row gt_center" headers="S2">0.64&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.26, 1.63]</td>
<td class="gt_row gt_center" headers="S3">0.51&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.21, 1.21]</td>
<td class="gt_row gt_center" headers="S4">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 2.89]</td>
<td class="gt_row gt_center" headers="S5">0.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.15, 2.24]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingHosp</td>
<td class="gt_row gt_center" headers="S1">1.58&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 3.66]</td>
<td class="gt_row gt_center" headers="S2">0.71&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.27, 1.90]</td>
<td class="gt_row gt_center" headers="S3">0.42&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.17, 1.03]</td>
<td class="gt_row gt_center" headers="S4">1.36&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 3.85]</td>
<td class="gt_row gt_center" headers="S5">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.26, 4.89]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">w_settingPriv</td>
<td class="gt_row gt_center" headers="S1">0.78&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.37, 1.68]</td>
<td class="gt_row gt_center" headers="S2">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.39, 2.46]</td>
<td class="gt_row gt_center" headers="S3">0.65&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.28, 1.53]</td>
<td class="gt_row gt_center" headers="S4">2.47&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.87, 6.97]</td>
<td class="gt_row gt_center" headers="S5">1.76&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.46, 6.82]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">w_settingUniv</td>
<td class="gt_row gt_center" headers="S1">1.32&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.60, 2.91]</td>
<td class="gt_row gt_center" headers="S2">0.67&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.26, 1.73]</td>
<td class="gt_row gt_center" headers="S3">0.39*&nbsp;&nbsp;&nbsp;<br>[0.16, 0.95]</td>
<td class="gt_row gt_center" headers="S4">0.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.36, 2.23]</td>
<td class="gt_row gt_center" headers="S5">1.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.38, 9.48]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">fear</td>
<td class="gt_row gt_center" headers="S1">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.88, 1.05]</td>
<td class="gt_row gt_center" headers="S2">1.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[1.00, 1.21]</td>
<td class="gt_row gt_center" headers="S3">1.10*&nbsp;&nbsp;&nbsp;<br>[1.01, 1.20]</td>
<td class="gt_row gt_center" headers="S4">1.11*&nbsp;&nbsp;&nbsp;<br>[1.01, 1.23]</td>
<td class="gt_row gt_center" headers="S5">1.16*&nbsp;&nbsp;&nbsp;<br>[1.01, 1.33]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">knowledge</td>
<td class="gt_row gt_center" headers="S1">1.10&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.95, 1.26]</td>
<td class="gt_row gt_center" headers="S2">1.01&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.86, 1.19]</td>
<td class="gt_row gt_center" headers="S3">1.04&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.90, 1.20]</td>
<td class="gt_row gt_center" headers="S4">0.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.75, 1.09]</td>
<td class="gt_row gt_center" headers="S5">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.89, 1.44]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">vac_gen_1</td>
<td class="gt_row gt_center" headers="S1">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 2.00]</td>
<td class="gt_row gt_center" headers="S2">2.95**&nbsp;&nbsp;<br>[1.52, 5.73]</td>
<td class="gt_row gt_center" headers="S3">1.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.82, 2.67]</td>
<td class="gt_row gt_center" headers="S4">0.94&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 1.96]</td>
<td class="gt_row gt_center" headers="S5">1.50&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 3.81]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">vac_gen_2</td>
<td class="gt_row gt_center" headers="S1">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.50, 2.18]</td>
<td class="gt_row gt_center" headers="S2">0.77&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 1.71]</td>
<td class="gt_row gt_center" headers="S3">0.90&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.42, 1.92]</td>
<td class="gt_row gt_center" headers="S4">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.41, 2.55]</td>
<td class="gt_row gt_center" headers="S5">0.79&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 2.48]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">vac_gen_3</td>
<td class="gt_row gt_center" headers="S1">1.01&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.67, 1.52]</td>
<td class="gt_row gt_center" headers="S2">1.11&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 1.76]</td>
<td class="gt_row gt_center" headers="S3">1.18&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.79, 1.78]</td>
<td class="gt_row gt_center" headers="S4">1.17&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.71, 1.92]</td>
<td class="gt_row gt_center" headers="S5">0.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.29, 1.23]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">vac_gen_4</td>
<td class="gt_row gt_center" headers="S1">0.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 1.46]</td>
<td class="gt_row gt_center" headers="S2">1.26&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.78, 2.03]</td>
<td class="gt_row gt_center" headers="S3">1.28&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.83, 1.96]</td>
<td class="gt_row gt_center" headers="S4">0.95&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.58, 1.55]</td>
<td class="gt_row gt_center" headers="S5">1.29&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 2.70]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">vac_gen_5</td>
<td class="gt_row gt_center" headers="S1">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.65, 1.26]</td>
<td class="gt_row gt_center" headers="S2">1.22&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.84, 1.78]</td>
<td class="gt_row gt_center" headers="S3">2.05***&nbsp;<br>[1.50, 2.80]</td>
<td class="gt_row gt_center" headers="S4">1.34&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.93, 1.93]</td>
<td class="gt_row gt_center" headers="S5">1.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.89, 3.15]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">vac_gen_6</td>
<td class="gt_row gt_center" headers="S1">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.70, 1.20]</td>
<td class="gt_row gt_center" headers="S2">0.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 1.30]</td>
<td class="gt_row gt_center" headers="S3">0.97&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.75, 1.26]</td>
<td class="gt_row gt_center" headers="S4">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.80, 1.47]</td>
<td class="gt_row gt_center" headers="S5">0.99&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.61, 1.58]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">covid_pro_1</td>
<td class="gt_row gt_center" headers="S1">1.04&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 1.71]</td>
<td class="gt_row gt_center" headers="S2">1.07&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.61, 1.88]</td>
<td class="gt_row gt_center" headers="S3">1.05&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 1.77]</td>
<td class="gt_row gt_center" headers="S4">0.50&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.25, 1.01]</td>
<td class="gt_row gt_center" headers="S5">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.45, 2.64]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">covid_ag_1</td>
<td class="gt_row gt_center" headers="S1">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 1.28]</td>
<td class="gt_row gt_center" headers="S2">1.64*&nbsp;&nbsp;&nbsp;<br>[1.07, 2.51]</td>
<td class="gt_row gt_center" headers="S3">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.68, 1.25]</td>
<td class="gt_row gt_center" headers="S4">1.20&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.80, 1.81]</td>
<td class="gt_row gt_center" headers="S5">0.62*&nbsp;&nbsp;&nbsp;<br>[0.39, 0.98]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">covid_ag_2</td>
<td class="gt_row gt_center" headers="S1">1.31&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.85, 2.01]</td>
<td class="gt_row gt_center" headers="S2">0.99&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.62, 1.57]</td>
<td class="gt_row gt_center" headers="S3">1.23&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.81, 1.89]</td>
<td class="gt_row gt_center" headers="S4">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 1.66]</td>
<td class="gt_row gt_center" headers="S5">0.40**&nbsp;&nbsp;<br>[0.21, 0.76]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">covid_pro_2</td>
<td class="gt_row gt_center" headers="S1">1.36&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.72, 2.54]</td>
<td class="gt_row gt_center" headers="S2">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.43, 1.94]</td>
<td class="gt_row gt_center" headers="S3">0.96&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.93]</td>
<td class="gt_row gt_center" headers="S4">1.59&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.76, 3.30]</td>
<td class="gt_row gt_center" headers="S5">1.00&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.35, 2.90]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">covid_over18</td>
<td class="gt_row gt_center" headers="S1">0.98&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.61, 1.57]</td>
<td class="gt_row gt_center" headers="S2">0.81&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 1.40]</td>
<td class="gt_row gt_center" headers="S3">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 1.75]</td>
<td class="gt_row gt_center" headers="S4">0.92&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 1.61]</td>
<td class="gt_row gt_center" headers="S5">1.13&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.51, 2.50]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">covid_pregnant</td>
<td class="gt_row gt_center" headers="S1">1.23&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.82, 1.83]</td>
<td class="gt_row gt_center" headers="S2">1.36&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.86, 2.16]</td>
<td class="gt_row gt_center" headers="S3">0.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.53, 1.33]</td>
<td class="gt_row gt_center" headers="S4">0.95&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.54, 1.67]</td>
<td class="gt_row gt_center" headers="S5">1.68&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.85, 3.31]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">covid_children</td>
<td class="gt_row gt_center" headers="S1">1.09&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.59, 2.01]</td>
<td class="gt_row gt_center" headers="S2">0.99&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.48, 2.07]</td>
<td class="gt_row gt_center" headers="S3">1.08&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.55, 2.11]</td>
<td class="gt_row gt_center" headers="S4">1.47&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.67, 3.20]</td>
<td class="gt_row gt_center" headers="S5">1.84&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.67, 5.01]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">covid_oblig_1</td>
<td class="gt_row gt_center" headers="S1">1.54*&nbsp;&nbsp;&nbsp;<br>[1.03, 2.31]</td>
<td class="gt_row gt_center" headers="S2">1.68*&nbsp;&nbsp;&nbsp;<br>[1.08, 2.61]</td>
<td class="gt_row gt_center" headers="S3">1.15&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.75, 1.76]</td>
<td class="gt_row gt_center" headers="S4">1.98**&nbsp;&nbsp;<br>[1.26, 3.13]</td>
<td class="gt_row gt_center" headers="S5">3.14***&nbsp;<br>[1.64, 6.02]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">covid_oblig_2</td>
<td class="gt_row gt_center" headers="S1">0.86&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 1.17]</td>
<td class="gt_row gt_center" headers="S2">0.93&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.66, 1.30]</td>
<td class="gt_row gt_center" headers="S3">1.12&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.84, 1.49]</td>
<td class="gt_row gt_center" headers="S4">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.73, 1.46]</td>
<td class="gt_row gt_center" headers="S5">0.73&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.44, 1.23]</td>
</tr>
<tr class="odd">
<td class="gt_row gt_left" headers="EVs">covid_leaders</td>
<td class="gt_row gt_center" headers="S1">1.11&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.64, 1.95]</td>
<td class="gt_row gt_center" headers="S2">1.65&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.88, 3.09]</td>
<td class="gt_row gt_center" headers="S3">1.61&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.90, 2.88]</td>
<td class="gt_row gt_center" headers="S4">0.66&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.34, 1.30]</td>
<td class="gt_row gt_center" headers="S5">1.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.80, 4.60]</td>
</tr>
<tr class="even">
<td class="gt_row gt_left" headers="EVs">covid_earlyaccess</td>
<td class="gt_row gt_center" headers="S1">0.60&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.30, 1.20]</td>
<td class="gt_row gt_center" headers="S2">0.91&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.43, 1.90]</td>
<td class="gt_row gt_center" headers="S3">0.80&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.40, 1.61]</td>
<td class="gt_row gt_center" headers="S4">1.03&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.47, 2.22]</td>
<td class="gt_row gt_center" headers="S5">0.48&nbsp;&nbsp;&nbsp;&nbsp;<br>[0.17, 1.37]</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
</section>
</section>
<section id="closing-note" class="level1" data-number="5">
<h1 data-number="5"><span class="header-section-number">5</span> Closing note</h1>
<p>This page preserves selected exploratory analyses and intermediate model-building decisions from the development of the collaborative manuscript. It should not be used as a substitute for the final methods, diagnostics, results, or interpretation reported in the <a href="https://doi.org/10.7189/001c.144190">published article</a> and its supplementary materials.</p>
</section>
<section id="references" class="level1" data-number="6">



<!-- -->


</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">6 References</h2><div id="refs" class="references csl-bib-body hanging-indent" data-entry-spacing="0" data-line-spacing="2">
<div id="ref-preacher2003" class="csl-entry">
Preacher, K. J., &amp; MacCallum, R. C. (2003). Repairing <span>Tom</span> <span>Swift</span>’s electric factor analysis machine. <em>Understanding Statistics</em>, <em>2</em>(1), 13–43. <a href="https://doi.org/10.1207/S15328031US0201_02">https://doi.org/10.1207/S15328031US0201_02</a>
</div>
</div></section></div> ]]></description>
  <category>r</category>
  <category>statistics</category>
  <category>research notes</category>
  <guid>https://tzuyaolin.com/posts/20250328_VHS/</guid>
  <pubDate>Fri, 28 Mar 2025 00:00:00 GMT</pubDate>
  <media:content url="https://tzuyaolin.com/posts/20250328_VHS/brazil-vaccine.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>Analysis Notes on Coffee Consumption, Polygenic Risk Score, and Diabetes</title>
  <dc:creator>Tzu-Yao Lin</dc:creator>
  <link>https://tzuyaolin.com/posts/20240918_CDP/</link>
  <description><![CDATA[ 






<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>About this analysis record
</div>
</div>
<div class="callout-body-container callout-body">
<p>This page documents analyses conducted during the preparation of a collaborative study of coffee consumption, polygenic risk score, and diabetes using data from The Maastricht Study. It is retained as a public record of the analytical workflow and is not intended as a complete tutorial or as the definitive report of the study.</p>
<p>The final methods, results, and interpretations are reported in <a href="https://doi.org/10.1007/s00394-025-03782-y">Rao et al.&nbsp;(2025), <em>Interaction between coffee consumption and polygenic risk score in relation to diabetes: insights from the Maastricht study</em></a>.</p>
</div>
</div>
<section id="purpose-and-analytical-scope" class="level1" data-number="1">
<h1 data-number="1"><span class="header-section-number">1</span> Purpose and analytical scope</h1>
<p>This record arose while checking and developing the statistical analyses for a collaborative cross-sectional study using data from The Maastricht Study. The outcome distinguished participants with normal glucose metabolism (NGM), prediabetes, and type 2 diabetes mellitus (T2DM). The main exposures were habitual coffee consumption and a polygenic risk score (PRS) for T2DM.</p>
<p>The scientific questions were whether coffee consumption and PRS were separately associated with the prevalence of prediabetes and T2DM, and whether the association between PRS and glucose-metabolism status differed across levels of coffee consumption. Because these analyses use cross-sectional observational data, the estimates describe associations with prevalent glucose-metabolism categories; they do not by themselves establish causal or preventive effects.</p>
<section id="questions-documented-in-this-record" class="level2" data-number="1.1">
<h2 data-number="1.1" class="anchored" data-anchor-id="questions-documented-in-this-record"><span class="header-section-number">1.1</span> Questions documented in this record</h2>
<p>The working analysis focused on five practical questions that arose during manuscript preparation:</p>
<ol type="1">
<li>How should missing observations be handled so that candidate models are fitted to comparable data?</li>
<li>Is an ordinal logistic model appropriate for the three glucose-metabolism categories?</li>
<li>If the proportional-odds assumption is not tenable, should the outcome be analyzed using two binary logistic regressions or one multinomial logistic regression?</li>
<li>How do estimates for coffee consumption and PRS change across the proposed covariate sets?</li>
<li>How should the coffee-by-PRS interaction and odds ratios for joint exposure categories be evaluated and presented?</li>
</ol>
<p>This page concentrates on these model-development questions and the construction of working result tables. It does not document every analysis reported in the published article. In particular, the published study also reports dose-response and sensitivity analyses that are outside the scope of this record. Some sections below preserve working questions, intermediate comparisons, and decisions that differ from the final publication.</p>
</section>
</section>
<section id="data-availability-and-privacy" class="level1" data-number="2">
<h1 data-number="2"><span class="header-section-number">2</span> Data availability and privacy</h1>
<p>The participant-level dataset used for this analysis is restricted and is not distributed with this public website repository. The file contains individual-level health, demographic, behavioral, medication, socioeconomic, and polygenic-risk variables. Whether any subset may be shared depends on the original consent, data-use agreement, ethics approval, and applicable institutional requirements; repository publication should not be assumed to be permitted.</p>
<p>For local reproduction by an authorized researcher, the dataset must be stored outside the repository and supplied through the <code>CDP_DATA_PATH</code> environment variable. The analysis rejects paths inside the website project. Public outputs should contain aggregate summaries and model results rather than participant-level records.</p>
</section>
<section id="data-preprocessing" class="level1" data-number="3">
<h1 data-number="3"><span class="header-section-number">3</span> Data preprocessing</h1>
<p>The restricted dataset used below was supplied as a preprocessed analysis file through <code>CDP_DATA_PATH</code>.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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>(tidyverse)</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(nnet)</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(epiDisplay)</span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(lmtest)</span>
<span id="cb1-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(gt)</span></code></pre></div></div>
</details>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">data_path <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;">Sys.getenv</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"CDP_DATA_PATH"</span>)</span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">if</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;">nzchar</span>(data_path)) {</span>
<span id="cb2-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">stop</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Set CDP_DATA_PATH to the restricted dataset outside this project."</span>)</span>
<span id="cb2-5">}</span>
<span id="cb2-6"></span>
<span id="cb2-7">data_path <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;">normalizePath</span>(data_path, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mustWork =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-8">project_dir <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;">Sys.getenv</span>(</span>
<span id="cb2-9">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"QUARTO_PROJECT_DIR"</span>,</span>
<span id="cb2-10">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">unset =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">normalizePath</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;">mustWork =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-11">)</span>
<span id="cb2-12">project_dir <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;">normalizePath</span>(project_dir, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mustWork =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-13"></span>
<span id="cb2-14"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">if</span> (</span>
<span id="cb2-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">identical</span>(data_path, project_dir) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">||</span></span>
<span id="cb2-16">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">startsWith</span>(data_path, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(project_dir, .Platform<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>file.sep))</span>
<span id="cb2-17">) {</span>
<span id="cb2-18">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">stop</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"CDP_DATA_PATH must point outside the public website project."</span>)</span>
<span id="cb2-19">}</span>
<span id="cb2-20"></span>
<span id="cb2-21">analysis_variables <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;">c</span>(</span>
<span id="cb2-22">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"N_Diabetes_WHO"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"N_DIABETES_2b"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PRS_tertiles"</span>,</span>
<span id="cb2-23">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"coffee_tertiles"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SEX"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Age"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"bmi"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"NIT_alcoholtot"</span>,</span>
<span id="cb2-24">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"smoking_3cat"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"mean_step_min_wake_T"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"DHD_sum"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"NIT_kcal"</span>,</span>
<span id="cb2-25">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"N_CVD"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Tot_chol"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"N_OMAP"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"med_HT"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"med_LP"</span>,</span>
<span id="cb2-26">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"FIT_suikerg"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"B1_VD1_2.6.29"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"N_Education_3cat"</span></span>
<span id="cb2-27">)</span>
<span id="cb2-28"></span>
<span id="cb2-29">data <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;">read_csv</span>(</span>
<span id="cb2-30">  data_path,</span>
<span id="cb2-31">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">na =</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="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"NA"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"-999"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"-888"</span>),</span>
<span id="cb2-32">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">col_select =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">all_of</span>(analysis_variables)</span>
<span id="cb2-33">)</span></code></pre></div></div>
</details>
</div>
<p>Only variables needed for the working analyses below are loaded. Public outputs should contain aggregate summaries and model results rather than participant-level records.</p>
<p>The variables required for the candidate outcome, exposure, and covariate specifications are then recoded for analysis.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">diabetes_with_na <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> data <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb3-2">    <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;">Diabetes =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(N_Diabetes_WHO, <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;">"NGM"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ordered =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb3-3">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">IsDiabetes =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(N_DIABETES_2b),</span>
<span id="cb3-4">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">PRS =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(PRS_tertiles, <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;">"Low"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Medium"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>)), </span>
<span id="cb3-5">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Coffee =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(coffee_tertiles, <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;">"Low"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Medium"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>)),</span>
<span id="cb3-6">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Sex =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(SEX, <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;">"Male"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Female"</span>)),</span>
<span id="cb3-7">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Age =</span> Age,</span>
<span id="cb3-8">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">BMI =</span> bmi,</span>
<span id="cb3-9">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Alcohol =</span> NIT_alcoholtot,</span>
<span id="cb3-10">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Smoking =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(smoking_3cat, <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;">"Never"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Former"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Current"</span>)),</span>
<span id="cb3-11">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Step_wake =</span> mean_step_min_wake_T,</span>
<span id="cb3-12">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">DHD =</span> DHD_sum, </span>
<span id="cb3-13">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">KCal =</span> NIT_kcal, </span>
<span id="cb3-14">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">CVD =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(N_CVD, <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;">"No"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Yes"</span>)),</span>
<span id="cb3-15">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Chol =</span> Tot_chol,</span>
<span id="cb3-16">           <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># HT = factor(N_HT, labels = c("No", "Yes")),</span></span>
<span id="cb3-17">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">OMAP =</span> N_OMAP,</span>
<span id="cb3-18">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Med_HT =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(med_HT, <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;">"No"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Yes"</span>)),</span>
<span id="cb3-19">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Med_LP =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(med_LP, <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;">"No"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Yes"</span>)),</span>
<span id="cb3-20">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Sugar =</span> FIT_suikerg,</span>
<span id="cb3-21">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">B1_VD1 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(B1_VD1_2.<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.29</span>, <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;">"Yes"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"No"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Unknow"</span>)),</span>
<span id="cb3-22">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Education =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">factor</span>(N_Education_3cat, <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;">"Low"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Medium"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>)),</span>
<span id="cb3-23">           <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.keep =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"none"</span>) </span>
<span id="cb3-24"></span>
<span id="cb3-25">skimr<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;">skim</span>(diabetes_with_na)</span></code></pre></div></div>
</details>
<div class="cell-output-display">
<table class="caption-top table table-sm table-striped small">
<caption>Data summary</caption>
<tbody>
<tr class="odd">
<td style="text-align: left;">Name</td>
<td style="text-align: left;">diabetes_with_na</td>
</tr>
<tr class="even">
<td style="text-align: left;">Number of rows</td>
<td style="text-align: left;">7668</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Number of columns</td>
<td style="text-align: left;">20</td>
</tr>
<tr class="even">
<td style="text-align: left;">_______________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Column type frequency:</td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">factor</td>
<td style="text-align: left;">11</td>
</tr>
<tr class="odd">
<td style="text-align: left;">numeric</td>
<td style="text-align: left;">9</td>
</tr>
<tr class="even">
<td style="text-align: left;">________________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Group variables</td>
<td style="text-align: left;">None</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: factor</strong></p>
<table class="caption-top table table-sm table-striped small">
<colgroup>
<col style="width: 16%">
<col style="width: 11%">
<col style="width: 16%">
<col style="width: 9%">
<col style="width: 10%">
<col style="width: 36%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: left;">ordered</th>
<th style="text-align: right;">n_unique</th>
<th style="text-align: left;">top_counts</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Diabetes</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: left;">TRUE</td>
<td style="text-align: right;">3</td>
<td style="text-align: left;">NGM: 4868, T2D: 1641, Pre: 1159</td>
</tr>
<tr class="even">
<td style="text-align: left;">IsDiabetes</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">2</td>
<td style="text-align: left;">0: 6027, 1: 1641</td>
</tr>
<tr class="odd">
<td style="text-align: left;">PRS</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">3</td>
<td style="text-align: left;">Med: 2561, Low: 2556, Hig: 2551</td>
</tr>
<tr class="even">
<td style="text-align: left;">Coffee</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">3</td>
<td style="text-align: left;">Low: 2949, Med: 2369, Hig: 2350</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Sex</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">2</td>
<td style="text-align: left;">Fem: 3858, Mal: 3810</td>
</tr>
<tr class="even">
<td style="text-align: left;">Smoking</td>
<td style="text-align: right;">56</td>
<td style="text-align: right;">0.99</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">3</td>
<td style="text-align: left;">For: 3764, Nev: 2911, Cur: 937</td>
</tr>
<tr class="odd">
<td style="text-align: left;">CVD</td>
<td style="text-align: right;">86</td>
<td style="text-align: right;">0.99</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">2</td>
<td style="text-align: left;">No: 6342, Yes: 1240</td>
</tr>
<tr class="even">
<td style="text-align: left;">Med_HT</td>
<td style="text-align: right;">7</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">2</td>
<td style="text-align: left;">No: 4904, Yes: 2757</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Med_LP</td>
<td style="text-align: right;">7</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">2</td>
<td style="text-align: left;">No: 5390, Yes: 2271</td>
</tr>
<tr class="even">
<td style="text-align: left;">B1_VD1</td>
<td style="text-align: right;">97</td>
<td style="text-align: right;">0.99</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">3</td>
<td style="text-align: left;">No: 4082, Yes: 2417, Unk: 1072</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Education</td>
<td style="text-align: right;">100</td>
<td style="text-align: right;">0.99</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: right;">3</td>
<td style="text-align: left;">Hig: 2984, Low: 2511, Med: 2073</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: numeric</strong></p>
<table class="caption-top table table-sm table-striped small">
<colgroup>
<col style="width: 14%">
<col style="width: 10%">
<col style="width: 14%">
<col style="width: 8%">
<col style="width: 7%">
<col style="width: 7%">
<col style="width: 8%">
<col style="width: 8%">
<col style="width: 8%">
<col style="width: 8%">
<col style="width: 6%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: right;">mean</th>
<th style="text-align: right;">sd</th>
<th style="text-align: right;">p0</th>
<th style="text-align: right;">p25</th>
<th style="text-align: right;">p50</th>
<th style="text-align: right;">p75</th>
<th style="text-align: right;">p100</th>
<th style="text-align: left;">hist</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Age</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">59.93</td>
<td style="text-align: right;">8.64</td>
<td style="text-align: right;">39.00</td>
<td style="text-align: right;">54.00</td>
<td style="text-align: right;">61.00</td>
<td style="text-align: right;">67.00</td>
<td style="text-align: right;">79.00</td>
<td style="text-align: left;">▃▅▇▇▂</td>
</tr>
<tr class="even">
<td style="text-align: left;">BMI</td>
<td style="text-align: right;">2</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">26.80</td>
<td style="text-align: right;">4.41</td>
<td style="text-align: right;">14.40</td>
<td style="text-align: right;">23.80</td>
<td style="text-align: right;">26.20</td>
<td style="text-align: right;">29.10</td>
<td style="text-align: right;">56.30</td>
<td style="text-align: left;">▂▇▂▁▁</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Alcohol</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">11.82</td>
<td style="text-align: right;">13.35</td>
<td style="text-align: right;">0.00</td>
<td style="text-align: right;">1.60</td>
<td style="text-align: right;">8.10</td>
<td style="text-align: right;">18.01</td>
<td style="text-align: right;">197.53</td>
<td style="text-align: left;">▇▁▁▁▁</td>
</tr>
<tr class="even">
<td style="text-align: left;">Step_wake</td>
<td style="text-align: right;">1295</td>
<td style="text-align: right;">0.83</td>
<td style="text-align: right;">118.91</td>
<td style="text-align: right;">40.26</td>
<td style="text-align: right;">5.14</td>
<td style="text-align: right;">90.72</td>
<td style="text-align: right;">116.32</td>
<td style="text-align: right;">144.69</td>
<td style="text-align: right;">314.36</td>
<td style="text-align: left;">▁▇▅▁▁</td>
</tr>
<tr class="odd">
<td style="text-align: left;">DHD</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">84.02</td>
<td style="text-align: right;">15.26</td>
<td style="text-align: right;">10.76</td>
<td style="text-align: right;">73.60</td>
<td style="text-align: right;">84.30</td>
<td style="text-align: right;">94.91</td>
<td style="text-align: right;">131.17</td>
<td style="text-align: left;">▁▁▇▇▁</td>
</tr>
<tr class="even">
<td style="text-align: left;">KCal</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">2121.23</td>
<td style="text-align: right;">603.92</td>
<td style="text-align: right;">594.18</td>
<td style="text-align: right;">1691.53</td>
<td style="text-align: right;">2048.51</td>
<td style="text-align: right;">2491.85</td>
<td style="text-align: right;">4178.56</td>
<td style="text-align: left;">▁▇▇▂▁</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Chol</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">5.22</td>
<td style="text-align: right;">1.10</td>
<td style="text-align: right;">2.10</td>
<td style="text-align: right;">4.40</td>
<td style="text-align: right;">5.20</td>
<td style="text-align: right;">6.00</td>
<td style="text-align: right;">10.40</td>
<td style="text-align: left;">▂▇▆▁▁</td>
</tr>
<tr class="even">
<td style="text-align: left;">OMAP</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">94.70</td>
<td style="text-align: right;">11.38</td>
<td style="text-align: right;">61.00</td>
<td style="text-align: right;">87.00</td>
<td style="text-align: right;">94.00</td>
<td style="text-align: right;">102.00</td>
<td style="text-align: right;">145.00</td>
<td style="text-align: left;">▁▇▇▁▁</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Sugar</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">2.62</td>
<td style="text-align: right;">7.22</td>
<td style="text-align: right;">0.00</td>
<td style="text-align: right;">0.00</td>
<td style="text-align: right;">0.00</td>
<td style="text-align: right;">2.15</td>
<td style="text-align: right;">120.00</td>
<td style="text-align: left;">▇▁▁▁▁</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Missingness was not evenly distributed across the selected variables. In particular, <code>Step_wake</code> had more than 1,000 missing observations, so requiring complete data on all 20 variables substantially reduced the analysis sample.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1">diabetes <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> diabetes_with_na <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;">drop_na</span>()</span>
<span id="cb4-2"></span>
<span id="cb4-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tibble</span>(</span>
<span id="cb4-4">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">complete_cases =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(diabetes),</span>
<span id="cb4-5">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">excluded_rows =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(diabetes_with_na) <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;">nrow</span>(diabetes)</span>
<span id="cb4-6">)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 1 × 2
  complete_cases excluded_rows
           &lt;int&gt;         &lt;int&gt;
1           6224          1444</code></pre>
</div>
</div>
<div class="callout callout-style-default callout-warning 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">Warning</span>Working decision: complete-case dataset
</div>
</div>
<div class="callout-body-container callout-body">
<p>At this stage of the analysis, the treatment of missing observations in the source preprocessing was not fully documented. For the model comparisons below, I constructed one complete-case dataset by excluding any participant with <code>NA</code>, <code>-999</code>, or <code>-888</code> on at least one of the 20 selected variables.</p>
<p>Using a common analysis sample ensured that differences in AIC or likelihood-ratio tests across the candidate models were not caused by fitting the models to different sets of participants. This produced a working sample of 6,224 complete cases after excluding 1,444 rows. By comparison, the published article reports an included study sample of 7,668 and labels its main association table as <img src="https://latex.codecogs.com/png.latex?n%20=%207%7B,%7D668">. This record does not establish how the difference between that reporting and the complete-case workflow shown here was resolved.</p>
<p>Complete-case analysis was a working decision for comparability, not a general recommendation that it is optimal. The substantial missingness in <code>Step_wake</code> may affect precision and the population represented by the fitted models, and this page does not include a missing-data sensitivity analysis.</p>
</div>
</div>
<div class="callout callout-style-default callout-important 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">Important</span>Open questions recorded during analysis
</div>
</div>
<div class="callout-body-container callout-body">
<p>The following questions were recorded before the manuscript decisions were finalized:</p>
<ol type="1">
<li><p>What was the substantive reason for categorizing PRS and coffee consumption into low, medium, and high groups rather than retaining continuous measures? If tertiles were retained, should an additional trend or dose-response analysis be reported?</p></li>
<li><p>What interpretive advantage did tertiles provide, and how should their simpler presentation be weighed against the loss of information caused by categorization?</p></li>
</ol>
<p>The published study subsequently described both variables as study-population tertiles and additionally examined coffee consumption using a continuous dose-response analysis. The final article should therefore be used for the definitive rationale and specification.</p>
</div>
</div>
</section>
<section id="model-development-record" class="level1" data-number="4">
<h1 data-number="4"><span class="header-section-number">4</span> Model development record</h1>
<section id="outcome-model-choice" class="level2" data-number="4.1">
<h2 data-number="4.1" class="anchored" data-anchor-id="outcome-model-choice"><span class="header-section-number">4.1</span> Outcome-model choice</h2>
<p>The outcome categories—NGM, prediabetes, and T2DM—have a clinical ordering, so an ordinal logistic model was considered first. A proportional-odds model assumes that each predictor has the same coefficient across the cumulative comparisons induced by the ordered outcome. This restriction was checked using the Brant test.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">olm <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> MASS<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;">polr</span>(Diabetes <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> PRS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Coffee <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> Sex <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> BMI <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Alcohol <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Smoking <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Step_wake <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> DHD <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> KCal <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> CVD <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Chol <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> OMAP <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Med_HT <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Med_LP <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Sugar <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> B1_VD1 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Education, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Hess =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb6-2">brant<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;">brant</span>(olm)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>---------------------------------------------------- 
Test for        X2  df  probability 
---------------------------------------------------- 
Omnibus         208.92  23  0
PRSMedium       4.41    1   0.04
PRSHigh         6.4 1   0.01
CoffeeMedium        0.86    1   0.36
CoffeeHigh      0.25    1   0.62
Age         6.87    1   0.01
SexFemale       7.62    1   0.01
BMI         0.21    1   0.65
Alcohol         5.78    1   0.02
SmokingFormer       0.58    1   0.45
SmokingCurrent      1.04    1   0.31
Step_wake       5.9 1   0.02
DHD         1.88    1   0.17
KCal            0.95    1   0.33
CVDYes          1.21    1   0.27
Chol            57.18   1   0
OMAP            0.24    1   0.62
Med_HTYes       0.4 1   0.53
Med_LPYes       4.93    1   0.03
Sugar           9.85    1   0
B1_VD1No        29.36   1   0
B1_VD1Unknow        4.06    1   0.04
EducationMedium 0.96    1   0.33
EducationHigh       0.52    1   0.47
---------------------------------------------------- 

H0: Parallel Regression Assumption holds</code></pre>
</div>
</div>
<p>The omnibus Brant test rejected the proportional-odds assumption for this model (<img src="https://latex.codecogs.com/png.latex?%5Cchi%5E2%20=%20208.92">, <img src="https://latex.codecogs.com/png.latex?df%20=%2023">, <img src="https://latex.codecogs.com/png.latex?p%20%3C%20.001">). Several predictor-specific tests also indicated nonproportionality. The proportional-odds specification was therefore not retained for the working analyses below.</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>Working decision: baseline-category multinomial model
</div>
</div>
<div class="callout-body-container callout-body">
<p>At this stage, a baseline-category multinomial logistic model was adopted with NGM as the reference outcome. This allowed the association of each predictor with prediabetes versus NGM to differ from its association with T2DM versus NGM.</p>
</div>
</div>
<p>For outcome category <img src="https://latex.codecogs.com/png.latex?j%20%5Cin%20%5C%7B%5Ctext%7BPre%7D,%20%5Ctext%7BT2DM%7D%5C%7D">, the baseline-category logit can be written as</p>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Ceta_j(%5Cmathbf%7Bx%7D)%0A=%20%5Clog%5Cleft(%5Cfrac%7Bp_j%7D%7Bp_%7B%5Ctext%7BNGM%7D%7D%7D%5Cright)%0A=%20%5Calpha_j%20+%20%5Cmathbf%7Bx%7D%5E%7B%5Cmathsf%20T%7D%5Cboldsymbol%7B%5Cbeta%7D_j,%0A"></p>
<p>where <img src="https://latex.codecogs.com/png.latex?%5Cmathbf%7Bx%7D"> contains the exposure indicators and covariates included in a given candidate model. Each outcome contrast therefore has its own coefficient vector.</p>
<section id="analysis-question-two-binary-models-or-one-multinomial-model" class="level3" data-number="4.1.1">
<h3 data-number="4.1.1" class="anchored" data-anchor-id="analysis-question-two-binary-models-or-one-multinomial-model"><span class="header-section-number">4.1.1</span> Analysis question: two binary models or one multinomial model?</h3>
<p>Separate binary models and one multinomial model were compared as an implementation check. The candidate exposure and covariate specifications discussed during manuscript preparation are summarized below.</p>
<div id="tbl-models" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-models-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: Candidate models
</figcaption>
<div aria-describedby="tbl-models-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="caption-top table">
<colgroup>
<col style="width: 26%">
<col style="width: 24%">
<col style="width: 24%">
<col style="width: 24%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: center;">Exposure</th>
<th style="text-align: center;">Covariate set 1</th>
<th style="text-align: center;">Covariate set 2</th>
<th style="text-align: center;">Covariate set 3</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: center;">PRS</td>
<td style="text-align: center;">prs1</td>
<td style="text-align: center;">prs2</td>
<td style="text-align: center;">prs3</td>
</tr>
<tr class="even">
<td style="text-align: center;">Coffee</td>
<td style="text-align: center;">cof1</td>
<td style="text-align: center;">cof2</td>
<td style="text-align: center;">cof3</td>
</tr>
<tr class="odd">
<td style="text-align: center;">PRS + Coffee</td>
<td style="text-align: center;">prs_cof1</td>
<td style="text-align: center;">prs_cof2</td>
<td style="text-align: center;">prs_cof3</td>
</tr>
<tr class="even">
<td style="text-align: center;">PRS + Coffee + PRS <img src="https://latex.codecogs.com/png.latex?%5Ctimes"> Coffee</td>
<td style="text-align: center;">prs_cof_i1</td>
<td style="text-align: center;">prs_cof_i2</td>
<td style="text-align: center;">prs_cof_i3</td>
</tr>
</tbody>
</table>
</div>
</figure>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">## PRS-only candidate models</span></span>
<span id="cb8-2">prs1 <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;">formula</span>(Diabetes <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> PRS <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> Sex)</span>
<span id="cb8-3">prs2 <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;">update</span>(prs1, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> BMI <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Alcohol <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Smoking <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Step_wake <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> DHD <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> KCal)</span>
<span id="cb8-4">prs3 <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;">update</span>(prs2, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> CVD <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Chol <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> OMAP <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Med_HT <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Med_LP <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Sugar <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> B1_VD1 <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Education)</span>
<span id="cb8-5"></span>
<span id="cb8-6"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">## Coffee-only candidate models</span></span>
<span id="cb8-7">cof1 <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;">update</span>(prs1, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> PRS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)</span>
<span id="cb8-8">cof2 <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;">update</span>(prs2, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> PRS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .) </span>
<span id="cb8-9">cof3 <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;">update</span>(prs3, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> PRS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)</span>
<span id="cb8-10"></span>
<span id="cb8-11"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">## Joint main-effects and interaction candidate models</span></span>
<span id="cb8-12">prs_cof1 <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;">update</span>(prs1, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)</span>
<span id="cb8-13">prs_cof2 <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;">update</span>(prs2, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)    </span>
<span id="cb8-14">prs_cof3 <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;">update</span>(prs3, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)</span>
<span id="cb8-15"></span>
<span id="cb8-16">prs_cof_i1 <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;">update</span>(prs_cof1, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> PRS<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)</span>
<span id="cb8-17">prs_cof_i2 <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;">update</span>(prs_cof2, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> PRS<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)</span>
<span id="cb8-18">prs_cof_i3 <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;">update</span>(prs_cof3, . <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> PRS<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>Coffee <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> .)</span></code></pre></div></div>
</details>
</div>
</section>
</section>
<section id="prs-association-comparison-of-implementations" class="level2" data-number="4.2">
<h2 data-number="4.2" class="anchored" data-anchor-id="prs-association-comparison-of-implementations"><span class="header-section-number">4.2</span> PRS association: comparison of implementations</h2>
<section id="two-binary-logistic-regressions" class="level3" data-number="4.2.1">
<h3 data-number="4.2.1" class="anchored" data-anchor-id="two-binary-logistic-regressions"><span class="header-section-number">4.2.1</span> Two binary logistic regressions</h3>
<section id="ngm-vs.-prediabetes" class="level4" data-number="4.2.1.1">
<h4 data-number="4.2.1.1" class="anchored" data-anchor-id="ngm-vs.-prediabetes"><span class="header-section-number">4.2.1.1</span> NGM vs.&nbsp;Prediabetes</h4>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">prediabetes <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> diabetes <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;">filter</span>(Diabetes <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%in%</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;">"NGM"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>))</span>
<span id="cb9-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dim</span>(prediabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 4889   20</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<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;">table</span>(prediabetes<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
 NGM  Pre T2DM 
3944  945    0 </code></pre>
</div>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<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">prs3_bl_pre <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;">glm</span>(prs3, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">family =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">binomial</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">link =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"logit"</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> prediabetes)</span>
<span id="cb13-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summary</span>(prs3_bl_pre)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
Call:
glm(formula = prs3, family = binomial(link = "logit"), data = prediabetes)

Coefficients:
                  Estimate Std. Error z value Pr(&gt;|z|)    
(Intercept)     -8.004e+00  7.002e-01 -11.432  &lt; 2e-16 ***
PRSMedium        3.017e-01  9.634e-02   3.131 0.001740 ** 
PRSHigh          4.352e-01  9.676e-02   4.498 6.85e-06 ***
Age              4.734e-02  5.518e-03   8.579  &lt; 2e-16 ***
SexFemale       -2.683e-01  9.477e-02  -2.831 0.004642 ** 
BMI              1.116e-01  1.070e-02  10.425  &lt; 2e-16 ***
Alcohol          2.683e-03  3.236e-03   0.829 0.407153    
SmokingFormer    9.964e-02  8.678e-02   1.148 0.250907    
SmokingCurrent  -4.150e-02  1.396e-01  -0.297 0.766183    
Step_wake       -1.806e-03  1.065e-03  -1.696 0.089835 .  
DHD             -9.282e-03  2.966e-03  -3.129 0.001752 ** 
KCal            -1.092e-04  7.306e-05  -1.495 0.135044    
CVDYes          -1.994e-01  1.157e-01  -1.722 0.085002 .  
Chol             9.577e-02  4.290e-02   2.232 0.025597 *  
OMAP             1.457e-02  3.767e-03   3.869 0.000109 ***
Med_HTYes        4.078e-01  9.238e-02   4.414 1.01e-05 ***
Med_LPYes        6.212e-01  1.076e-01   5.774 7.75e-09 ***
Sugar           -3.767e-03  5.763e-03  -0.654 0.513348    
B1_VD1No        -5.004e-01  9.011e-02  -5.553 2.80e-08 ***
B1_VD1Unknow    -3.051e-01  1.245e-01  -2.450 0.014305 *  
EducationMedium -2.258e-02  1.053e-01  -0.214 0.830219    
EducationHigh   -6.935e-02  9.790e-02  -0.708 0.478690    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 4800.6  on 4888  degrees of freedom
Residual deviance: 4151.3  on 4867  degrees of freedom
AIC: 4195.3

Number of Fisher Scoring iterations: 5</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb15" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb15-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">logistic.display</span>(prs3_bl_pre)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
Logistic regression predicting Diabetes 
 
                       crude OR(95%CI)         adj. OR(95%CI)         
PRS: ref.=Low                                                         
   Medium              1.36 (1.14,1.62)        1.35 (1.12,1.63)       
   High                1.58 (1.33,1.89)        1.55 (1.28,1.87)       
                                                                      
Age (cont. var.)       1.06 (1.06,1.07)        1.05 (1.04,1.06)       
                                                                      
Sex: Female vs Male    0.62 (0.54,0.72)        0.76 (0.64,0.92)       
                                                                      
BMI (cont. var.)       1.16 (1.14,1.18)        1.12 (1.09,1.14)       
                                                                      
Alcohol (cont. var.)   1.0125 (1.0073,1.0176)  1.0027 (0.9963,1.0091) 
                                                                      
Smoking: ref.=Never                                                   
   Former              1.52 (1.3,1.77)         1.1 (0.93,1.31)        
   Current             1.17 (0.92,1.5)         0.96 (0.73,1.26)       
                                                                      
Step_wake (cont. var.) 0.9939 (0.992,0.9958)   0.9982 (0.9961,1.0003) 
                                                                      
DHD (cont. var.)       0.9869 (0.9824,0.9915)  0.9908 (0.985,0.9965)  
                                                                      
KCal (cont. var.)      1 (0.9998,1.0001)       0.9999 (0.9997,1)      
                                                                      
CVD: Yes vs No         1.53 (1.27,1.86)        0.82 (0.65,1.03)       
                                                                      
Chol (cont. var.)      0.93 (0.86,0.99)        1.1 (1.01,1.2)         
                                                                      
OMAP (cont. var.)      1.03 (1.03,1.04)        1.01 (1.01,1.02)       
                                                                      
Med_HT: Yes vs No      2.99 (2.58,3.47)        1.5 (1.25,1.8)         
                                                                      
Med_LP: Yes vs No      2.92 (2.49,3.43)        1.86 (1.51,2.3)        
                                                                      
Sugar (cont. var.)     0.9994 (0.9893,1.0096)  0.9962 (0.985,1.0076)  
                                                                      
B1_VD1: ref.=Yes                                                      
   No                  0.6 (0.51,0.7)          0.61 (0.51,0.72)       
   Unknow              0.78 (0.62,0.97)        0.74 (0.58,0.94)       
                                                                      
Education: ref.=Low                                                   
   Medium              0.62 (0.51,0.74)        0.98 (0.8,1.2)         
   High                0.58 (0.49,0.68)        0.93 (0.77,1.13)       
                                                                      
                       P(Wald's test) P(LR-test)
PRS: ref.=Low                         &lt; 0.001   
   Medium              0.002                    
   High                &lt; 0.001                  
                                                
Age (cont. var.)       &lt; 0.001        &lt; 0.001   
                                                
Sex: Female vs Male    0.005          0.005     
                                                
BMI (cont. var.)       &lt; 0.001        &lt; 0.001   
                                                
Alcohol (cont. var.)   0.407          0.409     
                                                
Smoking: ref.=Never                   0.377     
   Former              0.251                    
   Current             0.766                    
                                                
Step_wake (cont. var.) 0.09           0.089     
                                                
DHD (cont. var.)       0.002          0.002     
                                                
KCal (cont. var.)      0.135          0.134     
                                                
CVD: Yes vs No         0.085          0.082     
                                                
Chol (cont. var.)      0.026          0.026     
                                                
OMAP (cont. var.)      &lt; 0.001        &lt; 0.001   
                                                
Med_HT: Yes vs No      &lt; 0.001        &lt; 0.001   
                                                
Med_LP: Yes vs No      &lt; 0.001        &lt; 0.001   
                                                
Sugar (cont. var.)     0.513          0.51      
                                                
B1_VD1: ref.=Yes                      &lt; 0.001   
   No                  &lt; 0.001                  
   Unknow              0.014                    
                                                
Education: ref.=Low                   0.768     
   Medium              0.83                     
   High                0.479                    
                                                
Log-likelihood = -2075.635
No. of observations = 4889
AIC value = 4195.2701</code></pre>
</div>
</div>
</section>
<section id="ngm-vs.-t2dm" class="level4" data-number="4.2.1.2">
<h4 data-number="4.2.1.2" class="anchored" data-anchor-id="ngm-vs.-t2dm"><span class="header-section-number">4.2.1.2</span> NGM vs.&nbsp;T2DM</h4>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb17" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb17-1">t2dm <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> diabetes <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;">filter</span>(Diabetes <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%in%</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;">"NGM"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>))</span>
<span id="cb17-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dim</span>(t2dm)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 5279   20</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb19" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb19-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">table</span>(t2dm<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
 NGM  Pre T2DM 
3944    0 1335 </code></pre>
</div>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb21" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb21-1">prs3_bl_t2dm <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;">glm</span>(prs3, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">family =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">binomial</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">link =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"logit"</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> t2dm)</span>
<span id="cb21-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summary</span>(prs3_bl_t2dm)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
Call:
glm(formula = prs3, family = binomial(link = "logit"), data = t2dm)

Coefficients:
                  Estimate Std. Error z value Pr(&gt;|z|)    
(Intercept)     -7.540e+00  8.516e-01  -8.854  &lt; 2e-16 ***
PRSMedium        8.101e-01  1.240e-01   6.531 6.53e-11 ***
PRSHigh          1.198e+00  1.215e-01   9.860  &lt; 2e-16 ***
Age              5.366e-02  6.552e-03   8.189 2.63e-16 ***
SexFemale       -8.024e-01  1.156e-01  -6.942 3.87e-12 ***
BMI              1.741e-01  1.239e-02  14.055  &lt; 2e-16 ***
Alcohol         -7.559e-03  3.878e-03  -1.949 0.051299 .  
SmokingFormer    1.074e-01  1.051e-01   1.022 0.306925    
SmokingCurrent   3.982e-01  1.571e-01   2.534 0.011270 *  
Step_wake       -6.260e-03  1.294e-03  -4.836 1.33e-06 ***
DHD             -1.135e-02  3.545e-03  -3.202 0.001363 ** 
KCal            -7.423e-05  8.491e-05  -0.874 0.382003    
CVDYes          -4.544e-01  1.250e-01  -3.636 0.000277 ***
Chol            -4.487e-01  5.425e-02  -8.270  &lt; 2e-16 ***
OMAP             2.329e-02  4.630e-03   5.030 4.90e-07 ***
Med_HTYes        7.470e-01  1.046e-01   7.141 9.28e-13 ***
Med_LPYes        1.473e+00  1.128e-01  13.058  &lt; 2e-16 ***
Sugar           -4.791e-02  8.685e-03  -5.516 3.47e-08 ***
B1_VD1No        -1.620e+00  1.055e-01 -15.353  &lt; 2e-16 ***
B1_VD1Unknow    -1.023e+00  1.399e-01  -7.317 2.54e-13 ***
EducationMedium -1.917e-02  1.203e-01  -0.159 0.873423    
EducationHigh   -2.835e-01  1.187e-01  -2.388 0.016922 *  
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 5970.4  on 5278  degrees of freedom
Residual deviance: 3007.7  on 5257  degrees of freedom
AIC: 3051.7

Number of Fisher Scoring iterations: 6</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb23" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb23-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">logistic.display</span>(prs3_bl_t2dm)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
Logistic regression predicting Diabetes 
 
                       crude OR(95%CI)         adj. OR(95%CI)         
PRS: ref.=Low                                                         
   Medium              2.41 (2.02,2.86)        2.25 (1.76,2.87)       
   High                3.49 (2.95,4.12)        3.31 (2.61,4.2)        
                                                                      
Age (cont. var.)       1.08 (1.07,1.09)        1.06 (1.04,1.07)       
                                                                      
Sex: Female vs Male    0.34 (0.3,0.38)         0.45 (0.36,0.56)       
                                                                      
BMI (cont. var.)       1.28 (1.26,1.31)        1.19 (1.16,1.22)       
                                                                      
Alcohol (cont. var.)   0.9985 (0.9936,1.0033)  0.9925 (0.985,1)       
                                                                      
Smoking: ref.=Never                                                   
   Former              1.72 (1.49,1.97)        1.11 (0.91,1.37)       
   Current             1.68 (1.37,2.05)        1.49 (1.09,2.03)       
                                                                      
Step_wake (cont. var.) 0.9836 (0.9818,0.9854)  0.9938 (0.9912,0.9963) 
                                                                      
DHD (cont. var.)       0.98 (0.97,0.98)        0.99 (0.98,1)          
                                                                      
KCal (cont. var.)      0.9999 (0.9998,1)       0.9999 (0.9998,1.0001) 
                                                                      
CVD: Yes vs No         2.71 (2.33,3.16)        0.63 (0.5,0.81)        
                                                                      
Chol (cont. var.)      0.35 (0.33,0.38)        0.64 (0.57,0.71)       
                                                                      
OMAP (cont. var.)      1.05 (1.04,1.05)        1.02 (1.01,1.03)       
                                                                      
Med_HT: Yes vs No      8.82 (7.67,10.15)       2.11 (1.72,2.59)       
                                                                      
Med_LP: Yes vs No      14.31 (12.35,16.59)     4.36 (3.5,5.44)        
                                                                      
Sugar (cont. var.)     0.97 (0.95,0.98)        0.95 (0.94,0.97)       
                                                                      
B1_VD1: ref.=Yes                                                      
   No                  0.19 (0.16,0.22)        0.2 (0.16,0.24)        
   Unknow              0.41 (0.34,0.5)         0.36 (0.27,0.47)       
                                                                      
Education: ref.=Low                                                   
   Medium              0.57 (0.49,0.67)        0.98 (0.77,1.24)       
   High                0.36 (0.31,0.42)        0.75 (0.6,0.95)        
                                                                      
                       P(Wald's test) P(LR-test)
PRS: ref.=Low                         &lt; 0.001   
   Medium              &lt; 0.001                  
   High                &lt; 0.001                  
                                                
Age (cont. var.)       &lt; 0.001        &lt; 0.001   
                                                
Sex: Female vs Male    &lt; 0.001        &lt; 0.001   
                                                
BMI (cont. var.)       &lt; 0.001        &lt; 0.001   
                                                
Alcohol (cont. var.)   0.051          0.05      
                                                
Smoking: ref.=Never                   0.041     
   Former              0.307                    
   Current             0.011                    
                                                
Step_wake (cont. var.) &lt; 0.001        &lt; 0.001   
                                                
DHD (cont. var.)       0.001          0.001     
                                                
KCal (cont. var.)      0.382          0.382     
                                                
CVD: Yes vs No         &lt; 0.001        &lt; 0.001   
                                                
Chol (cont. var.)      &lt; 0.001        &lt; 0.001   
                                                
OMAP (cont. var.)      &lt; 0.001        &lt; 0.001   
                                                
Med_HT: Yes vs No      &lt; 0.001        &lt; 0.001   
                                                
Med_LP: Yes vs No      &lt; 0.001        &lt; 0.001   
                                                
Sugar (cont. var.)     &lt; 0.001        &lt; 0.001   
                                                
B1_VD1: ref.=Yes                      &lt; 0.001   
   No                  &lt; 0.001                  
   Unknow              &lt; 0.001                  
                                                
Education: ref.=Low                   0.03      
   Medium              0.873                    
   High                0.017                    
                                                
Log-likelihood = -1503.8424
No. of observations = 5279
AIC value = 3051.6849</code></pre>
</div>
</div>
</section>
</section>
<section id="multinomial-logistic-regression" class="level3" data-number="4.2.2">
<h3 data-number="4.2.2" class="anchored" data-anchor-id="multinomial-logistic-regression"><span class="header-section-number">4.2.2</span> Multinomial logistic regression</h3>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb25" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb25-1">prs3_ml <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;">multinom</span>(prs3, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  69 (44 variable)
initial  value 6837.762885 
iter  10 value 5215.529946
iter  20 value 4639.168406
iter  30 value 4273.319863
iter  40 value 4017.408486
iter  50 value 3983.845642
final  value 3983.621664 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb27" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb27-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summary</span>(prs3_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Call:
multinom(formula = prs3, data = diabetes)

Coefficients:
     (Intercept) PRSMedium   PRSHigh        Age SexFemale       BMI
Pre    -7.993443 0.3048323 0.4590396 0.04691694 -0.269743 0.1105872
T2DM   -7.530014 0.8205179 1.1457251 0.04937704 -0.845876 0.1727318
          Alcohol SmokingFormer SmokingCurrent    Step_wake          DHD
Pre   0.003132189     0.1205212     0.03541554 -0.001591920 -0.008673513
T2DM -0.008483711     0.1014127     0.28413325 -0.007081803 -0.008881605
              KCal     CVDYes        Chol       OMAP Med_HTYes Med_LPYes
Pre  -1.252987e-04 -0.2092194  0.09181539 0.01470355 0.4051368  0.647377
T2DM -8.870268e-05 -0.5104388 -0.41867134 0.02422280 0.7199281  1.508455
            Sugar   B1_VD1No B1_VD1Unknow EducationMedium EducationHigh
Pre  -0.004413489 -0.4966035   -0.3253156     -0.06624586     -0.107326
T2DM -0.044371036 -1.6066637   -0.9962776      0.04357004     -0.277215

Std. Errors:
     (Intercept)  PRSMedium    PRSHigh         Age  SexFemale         BMI
Pre  0.005541274 0.08199097 0.08180552 0.004718533 0.08838194 0.009288211
T2DM 0.004586410 0.06104669 0.06058859 0.005198003 0.09790667 0.010027835
         Alcohol SmokingFormer SmokingCurrent   Step_wake         DHD
Pre  0.003071018    0.07749479     0.09140973 0.001011571 0.002726991
T2DM 0.003585977    0.08396675     0.07539267 0.001174780 0.003033971
             KCal     CVDYes       Chol        OMAP  Med_HTYes  Med_LPYes
Pre  6.883390e-05 0.07184194 0.03926264 0.003353974 0.07653429 0.07178370
T2DM 7.598204e-05 0.06452109 0.04711608 0.003757188 0.07818381 0.06507821
           Sugar  B1_VD1No B1_VD1Unknow EducationMedium EducationHigh
Pre  0.005542964 0.0740401   0.08135444      0.07884324    0.07481118
T2DM 0.008251040 0.0811196   0.07534407      0.07216372    0.07256924

Residual Deviance: 7967.243 
AIC: 8055.243 </code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb29" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb29-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mlogit.display</span>(prs3_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
Outcome =Diabetes; Referent group = NGM 
                Pre                            T2DM                          
                Coeff./SE      RRR(95%CI)      Coeff./SE      RRR(95%CI)     
(Intercept)     -7.99/0.006NA  -               -7.53/0.005NA  -              
PRSMedium       0.3/0.082***   1.36(1.16,1.59) 0.82/0.061***  2.27(2.02,2.56)
PRSHigh         0.46/0.082***  1.58(1.35,1.86) 1.15/0.061***  3.14(2.79,3.54)
Age             0.05/0.005***  1.05(1.04,1.06) 0.05/0.005***  1.05(1.04,1.06)
SexFemale       -0.27/0.088**  0.76(0.64,0.91) -0.85/0.098*** 0.43(0.35,0.52)
BMI             0.11/0.009***  1.12(1.1,1.14)  0.17/0.01***   1.19(1.17,1.21)
Alcohol         0/0.003        1(1,1.01)       -0.01/0.004*   0.99(0.98,1)   
SmokingFormer   0.12/0.077     1.13(0.97,1.31) 0.1/0.084      1.11(0.94,1.3) 
SmokingCurrent  0.04/0.091     1.04(0.87,1.24) 0.28/0.075***  1.33(1.15,1.54)
Step_wake       0/0.001        1(1,1)          -0.01/0.001*** 0.99(0.99,1)   
DHD             -0.01/0.003**  0.99(0.99,1)    -0.01/0.003**  0.99(0.99,1)   
KCal            0/0            1(1,1)          0/0            1(1,1)         
CVDYes          -0.21/0.072**  0.81(0.7,0.93)  -0.51/0.065*** 0.6(0.53,0.68) 
Chol            0.09/0.039*    1.1(1.01,1.18)  -0.42/0.047*** 0.66(0.6,0.72) 
OMAP            0.01/0.003***  1.01(1.01,1.02) 0.02/0.004***  1.02(1.02,1.03)
Med_HTYes       0.41/0.077***  1.5(1.29,1.74)  0.72/0.078***  2.05(1.76,2.39)
Med_LPYes       0.65/0.072***  1.91(1.66,2.2)  1.51/0.065***  4.52(3.98,5.13)
Sugar           0/0.006        1(0.98,1.01)    -0.04/0.008*** 0.96(0.94,0.97)
B1_VD1No        -0.5/0.074***  0.61(0.53,0.7)  -1.61/0.081*** 0.2(0.17,0.24) 
B1_VD1Unknow    -0.33/0.081*** 0.72(0.62,0.85) -1/0.075***    0.37(0.32,0.43)
EducationMedium -0.07/0.079    0.94(0.8,1.09)  0.04/0.072     1.04(0.91,1.2) 
EducationHigh   -0.11/0.075    0.9(0.78,1.04)  -0.28/0.073*** 0.76(0.66,0.87)

Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1  

Residual Deviance: 7967.24 
AIC = 8055.24 </code></pre>
</div>
</div>
<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>Intermediate comparison
</div>
</div>
<div class="callout-body-container callout-body">
<p>In this dataset, the estimated PRS associations from the multinomial model were similar to those obtained from the two separate binary models. This was a descriptive implementation check and does not establish that the approaches are generally equivalent. The binary models use different outcome-specific subsets, whereas the multinomial model represents all three outcome categories within one model. The subsequent working tables therefore use the multinomial implementation.</p>
</div>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb31" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb31-1">prs1_ml <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;">multinom</span>(prs1, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  18 (10 variable)
initial  value 6837.762885 
iter  10 value 5404.157593
final  value 5164.014496 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb33" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb33-1">prs2_ml <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;">multinom</span>(prs2, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  39 (24 variable)
initial  value 6837.762885 
iter  10 value 5290.331013
iter  20 value 4842.276842
iter  30 value 4605.592708
final  value 4605.590003 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb35" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb35-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lrtest</span>(prs1_ml, prs2_ml, prs3_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Likelihood ratio test

Model 1: Diabetes ~ PRS + Age + Sex
Model 2: Diabetes ~ PRS + Age + Sex + BMI + Alcohol + Smoking + Step_wake + 
    DHD + KCal
Model 3: Diabetes ~ PRS + Age + Sex + BMI + Alcohol + Smoking + Step_wake + 
    DHD + KCal + CVD + Chol + OMAP + Med_HT + Med_LP + Sugar + 
    B1_VD1 + Education
  #Df  LogLik Df  Chisq Pr(&gt;Chisq)    
1  10 -5164.0                         
2  24 -4605.6 14 1116.8  &lt; 2.2e-16 ***
3  44 -3983.6 20 1243.9  &lt; 2.2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1</code></pre>
</div>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb37" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb37-1">get_OR_CI <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(multi_model, DV_level, EV_level, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">alpha =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.05</span>) {</span>
<span id="cb37-2">  esti <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;">coef</span>(multi_model)[DV_level, , drop <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>]</span>
<span id="cb37-3">  .cov_mat <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;">vcov</span>(multi_model)</span>
<span id="cb37-4">  .select_variable <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;">str_detect</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">colnames</span>(.cov_mat), DV_level)</span>
<span id="cb37-5">  cov_mat <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> .cov_mat[.select_variable, .select_variable]</span>
<span id="cb37-6">  </span>
<span id="cb37-7">  cont <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;">matrix</span>(multi_model<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>coefnames <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%in%</span> EV_level, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">nrow =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb37-8">  l <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> cont <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>(esti)</span>
<span id="cb37-9">  OR <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;">exp</span>(l) <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;">round</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb37-10">  SE <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;">sqrt</span>(cont <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%*%</span> cov_mat <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>(cont))</span>
<span id="cb37-11">  lower_CI <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;">exp</span>(l <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;">qnorm</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>alpha<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> SE) <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;">round</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb37-12">  upper_CI <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;">exp</span>(l <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;">qnorm</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>alpha<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> SE) <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;">round</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb37-13">  </span>
<span id="cb37-14">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">str_glue</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"{OR} &lt;br&gt; ({lower_CI}, {upper_CI})"</span>)</span>
<span id="cb37-15">}</span></code></pre></div></div>
</details>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb38" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb38-1">levels <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;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Low"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Medium"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"High"</span>) </span>
<span id="cb38-2">PRSlevels <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;">str_glue</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PRS{levels}"</span>)</span>
<span id="cb38-3"></span>
<span id="cb38-4">prs_OR_table <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="cb38-5">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">level =</span> levels ,</span>
<span id="cb38-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_prs1 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(PRSlevels, <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;">get_OR_CI</span>(prs1_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, .)),</span>
<span id="cb38-7">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_prs2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(PRSlevels, <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;">get_OR_CI</span>(prs2_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, .)),</span>
<span id="cb38-8">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_prs3 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(PRSlevels, <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;">get_OR_CI</span>(prs3_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, .)),</span>
<span id="cb38-9">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_prs1 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(PRSlevels, <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;">get_OR_CI</span>(prs1_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, .)),</span>
<span id="cb38-10">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_prs2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(PRSlevels, <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;">get_OR_CI</span>(prs2_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, .)),</span>
<span id="cb38-11">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_prs3 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(PRSlevels, <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;">get_OR_CI</span>(prs3_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, .)))</span>
<span id="cb38-12"></span>
<span id="cb38-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(prs_OR_table, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rowname_col =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"level"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb38-14">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_stubhead</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;">"PRS"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb38-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_spanner</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;">"Pre"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</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;">"Pre"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb38-16">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_spanner</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;">"T2DM"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</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;">"T2DM"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb38-17">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cols_label</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"1"</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;">"M1"</span>,</span>
<span id="cb38-18">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</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;">~</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"M2"</span>,</span>
<span id="cb38-19">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"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;">"M3"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb38-20">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>()</span></code></pre></div></div>
</details>
<div id="tbl-prs-effect" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-prs-effect-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;2: Association between PRS and prediabetes/T2DM
</figcaption>
<div aria-describedby="tbl-prs-effect-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="wxumtucdbn" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#wxumtucdbn table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#wxumtucdbn thead, #wxumtucdbn tbody, #wxumtucdbn tfoot, #wxumtucdbn tr, #wxumtucdbn td, #wxumtucdbn th {
  border-style: none;
}

#wxumtucdbn p {
  margin: 0;
  padding: 0;
}

#wxumtucdbn .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#wxumtucdbn .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#wxumtucdbn .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#wxumtucdbn .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#wxumtucdbn .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#wxumtucdbn .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wxumtucdbn .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#wxumtucdbn .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#wxumtucdbn .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#wxumtucdbn .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#wxumtucdbn .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#wxumtucdbn .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#wxumtucdbn .gt_spanner_row {
  border-bottom-style: hidden;
}

#wxumtucdbn .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#wxumtucdbn .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#wxumtucdbn .gt_from_md > :first-child {
  margin-top: 0;
}

#wxumtucdbn .gt_from_md > :last-child {
  margin-bottom: 0;
}

#wxumtucdbn .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#wxumtucdbn .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#wxumtucdbn .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#wxumtucdbn .gt_row_group_first td {
  border-top-width: 2px;
}

#wxumtucdbn .gt_row_group_first th {
  border-top-width: 2px;
}

#wxumtucdbn .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#wxumtucdbn .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#wxumtucdbn .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#wxumtucdbn .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wxumtucdbn .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#wxumtucdbn .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#wxumtucdbn .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#wxumtucdbn .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#wxumtucdbn .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#wxumtucdbn .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#wxumtucdbn .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#wxumtucdbn .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#wxumtucdbn .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#wxumtucdbn .gt_left {
  text-align: left;
}

#wxumtucdbn .gt_center {
  text-align: center;
}

#wxumtucdbn .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#wxumtucdbn .gt_font_normal {
  font-weight: normal;
}

#wxumtucdbn .gt_font_bold {
  font-weight: bold;
}

#wxumtucdbn .gt_font_italic {
  font-style: italic;
}

#wxumtucdbn .gt_super {
  font-size: 65%;
}

#wxumtucdbn .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#wxumtucdbn .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#wxumtucdbn .gt_indent_1 {
  text-indent: 5px;
}

#wxumtucdbn .gt_indent_2 {
  text-indent: 10px;
}

#wxumtucdbn .gt_indent_3 {
  text-indent: 15px;
}

#wxumtucdbn .gt_indent_4 {
  text-indent: 20px;
}

#wxumtucdbn .gt_indent_5 {
  text-indent: 25px;
}

#wxumtucdbn .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#wxumtucdbn div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
</colgroup>
<thead>
<tr class="gt_col_headings gt_spanner_row header">
<th rowspan="2" id="a::stub" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">PRS</th>
<th colspan="3" id="Pre" class="gt_center gt_columns_top_border gt_column_spanner_outer" data-quarto-table-cell-role="th" scope="colgroup"><div class="gt_column_spanner">
Pre
</div></th>
<th colspan="3" id="T2DM" class="gt_center gt_columns_top_border gt_column_spanner_outer" data-quarto-table-cell-role="th" scope="colgroup"><div class="gt_column_spanner">
T2DM
</div></th>
</tr>
<tr class="gt_col_headings even">
<th id="Pre_prs1" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M1</th>
<th id="Pre_prs2" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M2</th>
<th id="Pre_prs3" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M3</th>
<th id="T2DM_prs1" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M1</th>
<th id="T2DM_prs2" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M2</th>
<th id="T2DM_prs3" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M3</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<th id="stub_1_1" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Low</th>
<td class="gt_row gt_left" headers="stub_1_1 Pre_prs1">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 Pre_prs2">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 Pre_prs3">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 T2DM_prs1">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 T2DM_prs2">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 T2DM_prs3">1 <br> (1, 1)</td>
</tr>
<tr class="even">
<th id="stub_1_2" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Medium</th>
<td class="gt_row gt_left" headers="stub_1_2 Pre_prs1">1.38 <br> (1.15, 1.65)</td>
<td class="gt_row gt_left" headers="stub_1_2 Pre_prs2">1.4 <br> (1.21, 1.62)</td>
<td class="gt_row gt_left" headers="stub_1_2 Pre_prs3">1.36 <br> (1.16, 1.59)</td>
<td class="gt_row gt_left" headers="stub_1_2 T2DM_prs1">2.45 <br> (2.05, 2.94)</td>
<td class="gt_row gt_left" headers="stub_1_2 T2DM_prs2">2.54 <br> (2.26, 2.86)</td>
<td class="gt_row gt_left" headers="stub_1_2 T2DM_prs3">2.27 <br> (2.02, 2.56)</td>
</tr>
<tr class="odd">
<th id="stub_1_3" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">High</th>
<td class="gt_row gt_left" headers="stub_1_3 Pre_prs1">1.66 <br> (1.39, 1.99)</td>
<td class="gt_row gt_left" headers="stub_1_3 Pre_prs2">1.74 <br> (1.5, 2.01)</td>
<td class="gt_row gt_left" headers="stub_1_3 Pre_prs3">1.58 <br> (1.35, 1.86)</td>
<td class="gt_row gt_left" headers="stub_1_3 T2DM_prs1">3.76 <br> (3.16, 4.49)</td>
<td class="gt_row gt_left" headers="stub_1_3 T2DM_prs2">4.18 <br> (3.72, 4.7)</td>
<td class="gt_row gt_left" headers="stub_1_3 T2DM_prs3">3.14 <br> (2.79, 3.54)</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
</section>
<section id="coffee-association-working-table-reproduction" class="level2" data-number="4.3">
<h2 data-number="4.3" class="anchored" data-anchor-id="coffee-association-working-table-reproduction"><span class="header-section-number">4.3</span> Coffee association: working table reproduction</h2>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb39" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb39-1">cof1_ml <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;">multinom</span>(cof1, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  24 (14 variable)
initial  value 6837.762885 
iter  10 value 5398.637887
iter  20 value 5159.349831
final  value 5159.349135 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb41" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb41-1">cof2_ml <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;">multinom</span>(cof2, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  45 (28 variable)
initial  value 6837.762885 
iter  10 value 5290.261102
iter  20 value 4845.902793
iter  30 value 4641.391553
final  value 4601.460847 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb43" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb43-1">cof3_ml <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;">multinom</span>(cof3, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  75 (48 variable)
initial  value 6837.762885 
iter  10 value 5215.456459
iter  20 value 4635.906609
iter  30 value 4251.564367
iter  40 value 4014.806998
iter  50 value 3985.463039
final  value 3978.814138 
converged</code></pre>
</div>
</div>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb45" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb45-1">Coflevels <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;">str_glue</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Coffee{levels}"</span>)</span>
<span id="cb45-2"></span>
<span id="cb45-3">cof_OR_table <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="cb45-4">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">level =</span> levels ,</span>
<span id="cb45-5">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_cof1 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(Coflevels, <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;">get_OR_CI</span>(cof1_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, .)),</span>
<span id="cb45-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_cof2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(Coflevels, <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;">get_OR_CI</span>(cof2_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, .)),</span>
<span id="cb45-7">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_cof3 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(Coflevels, <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;">get_OR_CI</span>(cof3_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, .)),</span>
<span id="cb45-8">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_cof1 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(Coflevels, <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;">get_OR_CI</span>(cof1_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, .)),</span>
<span id="cb45-9">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_cof2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(Coflevels, <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;">get_OR_CI</span>(cof2_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, .)),</span>
<span id="cb45-10">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_cof3 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map_chr</span>(Coflevels, <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;">get_OR_CI</span>(cof3_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, .)))</span>
<span id="cb45-11"></span>
<span id="cb45-12"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(cof_OR_table, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rowname_col =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"level"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb45-13">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_stubhead</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;">"Coffee"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb45-14">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_spanner</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;">"Pre"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</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;">"Pre"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb45-15">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_spanner</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;">"T2DM"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</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;">"T2DM"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb45-16">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cols_label</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"1"</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;">"M1"</span>,</span>
<span id="cb45-17">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</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;">~</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"M2"</span>,</span>
<span id="cb45-18">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"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;">"M3"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb45-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>()</span></code></pre></div></div>
</details>
<div id="tbl-cof-effect" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-cof-effect-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;3: Association between coffee consumption and prediabetes/T2DM
</figcaption>
<div aria-describedby="tbl-cof-effect-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="cqoanankmo" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#cqoanankmo table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#cqoanankmo thead, #cqoanankmo tbody, #cqoanankmo tfoot, #cqoanankmo tr, #cqoanankmo td, #cqoanankmo th {
  border-style: none;
}

#cqoanankmo p {
  margin: 0;
  padding: 0;
}

#cqoanankmo .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#cqoanankmo .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#cqoanankmo .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#cqoanankmo .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#cqoanankmo .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#cqoanankmo .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#cqoanankmo .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#cqoanankmo .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#cqoanankmo .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#cqoanankmo .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#cqoanankmo .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#cqoanankmo .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#cqoanankmo .gt_spanner_row {
  border-bottom-style: hidden;
}

#cqoanankmo .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#cqoanankmo .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#cqoanankmo .gt_from_md > :first-child {
  margin-top: 0;
}

#cqoanankmo .gt_from_md > :last-child {
  margin-bottom: 0;
}

#cqoanankmo .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#cqoanankmo .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#cqoanankmo .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#cqoanankmo .gt_row_group_first td {
  border-top-width: 2px;
}

#cqoanankmo .gt_row_group_first th {
  border-top-width: 2px;
}

#cqoanankmo .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#cqoanankmo .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#cqoanankmo .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#cqoanankmo .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#cqoanankmo .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#cqoanankmo .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#cqoanankmo .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#cqoanankmo .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#cqoanankmo .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#cqoanankmo .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#cqoanankmo .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#cqoanankmo .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#cqoanankmo .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#cqoanankmo .gt_left {
  text-align: left;
}

#cqoanankmo .gt_center {
  text-align: center;
}

#cqoanankmo .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#cqoanankmo .gt_font_normal {
  font-weight: normal;
}

#cqoanankmo .gt_font_bold {
  font-weight: bold;
}

#cqoanankmo .gt_font_italic {
  font-style: italic;
}

#cqoanankmo .gt_super {
  font-size: 65%;
}

#cqoanankmo .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#cqoanankmo .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#cqoanankmo .gt_indent_1 {
  text-indent: 5px;
}

#cqoanankmo .gt_indent_2 {
  text-indent: 10px;
}

#cqoanankmo .gt_indent_3 {
  text-indent: 15px;
}

#cqoanankmo .gt_indent_4 {
  text-indent: 20px;
}

#cqoanankmo .gt_indent_5 {
  text-indent: 25px;
}

#cqoanankmo .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#cqoanankmo div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
<col style="width: 14%">
</colgroup>
<thead>
<tr class="gt_col_headings gt_spanner_row header">
<th rowspan="2" id="a::stub" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">Coffee</th>
<th colspan="3" id="Pre" class="gt_center gt_columns_top_border gt_column_spanner_outer" data-quarto-table-cell-role="th" scope="colgroup"><div class="gt_column_spanner">
Pre
</div></th>
<th colspan="3" id="T2DM" class="gt_center gt_columns_top_border gt_column_spanner_outer" data-quarto-table-cell-role="th" scope="colgroup"><div class="gt_column_spanner">
T2DM
</div></th>
</tr>
<tr class="gt_col_headings even">
<th id="Pre_cof1" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M1</th>
<th id="Pre_cof2" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M2</th>
<th id="Pre_cof3" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M3</th>
<th id="T2DM_cof1" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M1</th>
<th id="T2DM_cof2" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M2</th>
<th id="T2DM_cof3" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M3</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="odd">
<th id="stub_1_1" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Low</th>
<td class="gt_row gt_left" headers="stub_1_1 Pre_cof1">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 Pre_cof2">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 Pre_cof3">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 T2DM_cof1">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 T2DM_cof2">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="stub_1_1 T2DM_cof3">1 <br> (1, 1)</td>
</tr>
<tr class="even">
<th id="stub_1_2" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Medium</th>
<td class="gt_row gt_left" headers="stub_1_2 Pre_cof1">0.81 <br> (0.68, 0.97)</td>
<td class="gt_row gt_left" headers="stub_1_2 Pre_cof2">0.8 <br> (0.7, 0.92)</td>
<td class="gt_row gt_left" headers="stub_1_2 Pre_cof3">0.8 <br> (0.69, 0.92)</td>
<td class="gt_row gt_left" headers="stub_1_2 T2DM_cof1">0.82 <br> (0.7, 0.97)</td>
<td class="gt_row gt_left" headers="stub_1_2 T2DM_cof2">0.83 <br> (0.73, 0.94)</td>
<td class="gt_row gt_left" headers="stub_1_2 T2DM_cof3">0.8 <br> (0.7, 0.91)</td>
</tr>
<tr class="odd">
<th id="stub_1_3" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">High</th>
<td class="gt_row gt_left" headers="stub_1_3 Pre_cof1">0.9 <br> (0.75, 1.08)</td>
<td class="gt_row gt_left" headers="stub_1_3 Pre_cof2">0.85 <br> (0.74, 0.97)</td>
<td class="gt_row gt_left" headers="stub_1_3 Pre_cof3">0.83 <br> (0.72, 0.96)</td>
<td class="gt_row gt_left" headers="stub_1_3 T2DM_cof1">0.97 <br> (0.82, 1.14)</td>
<td class="gt_row gt_left" headers="stub_1_3 T2DM_cof2">0.87 <br> (0.76, 0.99)</td>
<td class="gt_row gt_left" headers="stub_1_3 T2DM_cof3">0.8 <br> (0.7, 0.91)</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="coffee-by-prs-interaction-working-table-reproduction" class="level2" data-number="4.4">
<h2 data-number="4.4" class="anchored" data-anchor-id="coffee-by-prs-interaction-working-table-reproduction"><span class="header-section-number">4.4</span> Coffee-by-PRS interaction: working table reproduction</h2>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb46" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb46-1">prs_cof1_ml <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;">multinom</span>(prs_cof1, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  24 (14 variable)
initial  value 6837.762885 
iter  10 value 5398.637887
iter  20 value 5159.349831
final  value 5159.349135 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb48" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb48-1">prs_cof_i1_ml <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;">multinom</span>(prs_cof_i1, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  36 (22 variable)
initial  value 6837.762885 
iter  10 value 5465.181242
iter  20 value 5199.344506
iter  30 value 5154.011791
iter  30 value 5154.011788
iter  30 value 5154.011788
final  value 5154.011788 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb50" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb50-1">prs_cof1_ml</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Call:
multinom(formula = prs_cof1, data = diabetes)

Coefficients:
     (Intercept) CoffeeMedium  CoffeeHigh PRSMedium   PRSHigh        Age
Pre    -5.127968   -0.2087765 -0.10369891 0.3228881 0.5081659 0.06163677
T2DM   -5.901011   -0.1941127 -0.03432375 0.8988806 1.3236497 0.07414162
      SexFemale
Pre  -0.3943786
T2DM -1.0023219

Residual Deviance: 10318.7 
AIC: 10346.7 </code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb52" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb52-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mlogit.display</span>(prs_cof1_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
Outcome =Diabetes; Referent group = NGM 
             Pre                            T2DM                         
             Coeff./SE      RRR(95%CI)      Coeff./SE     RRR(95%CI)     
(Intercept)  -5.13/0.305*** -               -5.9/0.29***  -              
CoffeeMedium -0.21/0.089*   0.81(0.68,0.97) -0.19/0.083*  0.82(0.7,0.97) 
CoffeeHigh   -0.1/0.091     0.9(0.75,1.08)  -0.03/0.083   0.97(0.82,1.14)
PRSMedium    0.32/0.092***  1.38(1.15,1.65) 0.9/0.092***  2.46(2.05,2.94)
PRSHigh      0.51/0.091***  1.66(1.39,1.99) 1.32/0.09***  3.76(3.15,4.48)
Age          0.06/0.005***  1.06(1.05,1.07) 0.07/0.004*** 1.08(1.07,1.09)
SexFemale    -0.39/0.075*** 0.67(0.58,0.78) -1/0.071***   0.37(0.32,0.42)

Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1  

Residual Deviance: 10318.7 
AIC = 10346.7 </code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb54" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb54-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">mlogit.display</span>(prs_cof_i1_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>
Outcome =Diabetes; Referent group = NGM 
                       Pre                            T2DM          
                       Coeff./SE      RRR(95%CI)      Coeff./SE     
(Intercept)            -5.13/0.311*** -               -5.75/0.297***
CoffeeMedium           -0.31/0.159*   0.73(0.53,1)    -0.5/0.174**  
CoffeeHigh             -0.01/0.158    0.99(0.72,1.34) -0.26/0.174   
PRSMedium              0.28/0.148     1.32(0.99,1.76) 0.76/0.146*** 
PRSHigh                0.52/0.144***  1.68(1.27,2.23) 1.06/0.142*** 
Age                    0.06/0.005***  1.06(1.05,1.07) 0.07/0.004*** 
SexFemale              -0.39/0.075*** 0.67(0.58,0.78) -1/0.071***   
CoffeeMedium:PRSMedium 0.14/0.221     1.16(0.75,1.78) 0.24/0.222    
CoffeeHigh:PRSMedium   0/0.222        1(0.65,1.54)    0.23/0.222    
CoffeeMedium:PRSHigh   0.19/0.219     1.21(0.79,1.86) 0.54/0.217*   
CoffeeHigh:PRSHigh     -0.24/0.221    0.79(0.51,1.21) 0.33/0.215    
                                      
                       RRR(95%CI)     
(Intercept)            -              
CoffeeMedium           0.61(0.43,0.85)
CoffeeHigh             0.77(0.55,1.08)
PRSMedium              2.13(1.6,2.84) 
PRSHigh                2.88(2.18,3.8) 
Age                    1.08(1.07,1.09)
SexFemale              0.37(0.32,0.42)
CoffeeMedium:PRSMedium 1.27(0.82,1.97)
CoffeeHigh:PRSMedium   1.26(0.81,1.94)
CoffeeMedium:PRSHigh   1.71(1.12,2.61)
CoffeeHigh:PRSHigh     1.4(0.92,2.13) 

Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1  

Residual Deviance: 10308.02 
AIC = 10352.02 </code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb56" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb56-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lrtest</span>(prs_cof1_ml, prs_cof_i1_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Likelihood ratio test

Model 1: Diabetes ~ Coffee + PRS + Age + Sex
Model 2: Diabetes ~ Coffee + PRS + Age + Sex + PRS:Coffee
  #Df  LogLik Df  Chisq Pr(&gt;Chisq)
1  14 -5159.3                     
2  22 -5154.0  8 10.675     0.2208</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb58" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb58-1">prs_cof2_ml <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;">multinom</span>(prs_cof2, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  45 (28 variable)
initial  value 6837.762885 
iter  10 value 5290.261102
iter  20 value 4845.902793
iter  30 value 4641.391553
final  value 4601.460847 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb60" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb60-1">prs_cof_i2_ml <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;">multinom</span>(prs_cof_i2, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  57 (36 variable)
initial  value 6837.762885 
iter  10 value 5289.996854
iter  20 value 4847.821699
iter  30 value 4690.907647
iter  40 value 4596.380913
final  value 4595.158389 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb62" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb62-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lrtest</span>(prs_cof2_ml, prs_cof_i2_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Likelihood ratio test

Model 1: Diabetes ~ Coffee + PRS + Age + Sex + BMI + Alcohol + Smoking + 
    Step_wake + DHD + KCal
Model 2: Diabetes ~ Coffee + PRS + Age + Sex + BMI + Alcohol + Smoking + 
    Step_wake + DHD + KCal + PRS:Coffee
  #Df  LogLik Df  Chisq Pr(&gt;Chisq)
1  28 -4601.5                     
2  36 -4595.2  8 12.605     0.1262</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb64" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb64-1">prs_cof3_ml <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;">multinom</span>(prs_cof3, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  75 (48 variable)
initial  value 6837.762885 
iter  10 value 5215.456459
iter  20 value 4635.906609
iter  30 value 4251.564367
iter  40 value 4014.806998
iter  50 value 3985.463039
final  value 3978.814138 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb66" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb66-1">prs_cof_i3_ml <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;">multinom</span>(prs_cof_i3, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> diabetes)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code># weights:  87 (56 variable)
initial  value 6837.762885 
iter  10 value 5215.195654
iter  20 value 4636.177404
iter  30 value 4155.562209
iter  40 value 4066.224939
iter  50 value 3998.661572
iter  60 value 3975.634350
final  value 3973.411479 
converged</code></pre>
</div>
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb68" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb68-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lrtest</span>(prs_cof3_ml, prs_cof_i3_ml)</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Likelihood ratio test

Model 1: Diabetes ~ Coffee + PRS + Age + Sex + BMI + Alcohol + Smoking + 
    Step_wake + DHD + KCal + CVD + Chol + OMAP + Med_HT + Med_LP + 
    Sugar + B1_VD1 + Education
Model 2: Diabetes ~ Coffee + PRS + Age + Sex + BMI + Alcohol + Smoking + 
    Step_wake + DHD + KCal + CVD + Chol + OMAP + Med_HT + Med_LP + 
    Sugar + B1_VD1 + Education + PRS:Coffee
  #Df  LogLik Df  Chisq Pr(&gt;Chisq)
1  48 -3978.8                     
2  56 -3973.4  8 10.805      0.213</code></pre>
</div>
</div>
<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>Working decision on interaction terms
</div>
</div>
<div class="callout-body-container callout-body">
<p>For the candidate models shown above, the likelihood-ratio tests did not provide evidence that adding the categorical coffee-by-PRS interaction terms improved model fit. The corresponding main-effects models (<code>prs_cof1</code>, <code>prs_cof2</code>, and <code>prs_cof3</code>) were therefore retained for the working association tables. This decision should not be interpreted as proof that interaction is absent; the published article reports the final interaction analysis and its interpretation.</p>
</div>
</div>
<p>The next section reconstructs a working joint-category table considered during manuscript preparation. Model <code>prs_cof1</code> includes categorical indicators for coffee consumption and PRS, with low coffee consumption and low PRS as the reference combination. For prediabetes versus NGM, its linear predictor is</p>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cln%5Cleft(%5Cfrac%7Bp_%7B%5Ctext%7BPre%7D%7D%7D%7Bp_%7B%5Ctext%7BNGM%7D%7D%7D%20%5Cright)%20=%20%5Calpha_%7B11%7D%20+%20%5Cbeta_%7B11%7D%20%5Ctext%7BCoffeeMedium%7D%20+%20%5Cbeta_%7B12%7D%20%5Ctext%7BCoffeeHigh%7D%20+%20%5Cbeta_%7B13%7D%20%5Ctext%7BPRSMedium%7D%20+%20%5Cbeta_%7B14%7D%20%5Ctext%7BPRSHigh%7D%20+%20%5Cgamma_%7B11%7D%20%5Ctext%7BAge%7D%20+%20%5Cgamma_%7B12%7D%20%5Ctext%7BSexFemale%7D%0A"></p>
<p>For either outcome contrast <img src="https://latex.codecogs.com/png.latex?j">, let <img src="https://latex.codecogs.com/png.latex?%5Cmathbf%7Bc%7D_%7Bc,p%7D"> select the coefficients needed to compare coffee category <img src="https://latex.codecogs.com/png.latex?c"> and PRS category <img src="https://latex.codecogs.com/png.latex?p"> with the low-coffee, low-PRS reference combination while holding covariates fixed. The estimated log odds ratio is</p>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cwidehat%7B%5Cell%7D_%7Bj,c,p%7D%0A=%20%5Cmathbf%7Bc%7D_%7Bc,p%7D%5E%7B%5Cmathsf%20T%7D%5Cwidehat%7B%5Cboldsymbol%7B%5Cbeta%7D%7D_j,%0A"></p>
<p>and the corresponding odds ratio is</p>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cwidehat%7B%5Coperatorname%7BOR%7D%7D_%7Bj,c,p%7D%0A=%20%5Cexp%5Cleft(%5Cwidehat%7B%5Cell%7D_%7Bj,c,p%7D%5Cright).%0A"></p>
<p>Its estimated variance and 95% Wald confidence interval are</p>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cwidehat%7B%5Coperatorname%7BVar%7D%7D%5Cleft(%5Cwidehat%7B%5Cell%7D_%7Bj,c,p%7D%5Cright)%0A=%20%5Cmathbf%7Bc%7D_%7Bc,p%7D%5E%7B%5Cmathsf%20T%7D%0A%20%20%5Cwidehat%7B%5Coperatorname%7BVar%7D%7D%5Cleft(%5Cwidehat%7B%5Cboldsymbol%7B%5Cbeta%7D%7D_j%5Cright)%0A%20%20%5Cmathbf%7Bc%7D_%7Bc,p%7D,%0A"></p>
<p><img src="https://latex.codecogs.com/png.latex?%0A95%5C%25%5C%20%5Coperatorname%7BCI%7D%0A=%20%5Cexp%5Cleft%5B%0A%20%20%5Cwidehat%7B%5Cell%7D_%7Bj,c,p%7D%0A%20%20%5Cmathbin%7B%5Cpm%7D%20z_%7B.975%7D%0A%20%20%5Csqrt%7B%5Cwidehat%7B%5Coperatorname%7BVar%7D%7D%5Cleft(%5Cwidehat%7B%5Cell%7D_%7Bj,c,p%7D%5Cright)%7D%0A%5Cright%5D.%0A"></p>
<p>For example, the medium-coffee, high-PRS contrast under this main-effects model is</p>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cwidehat%7B%5Cell%7D_%7Bj,M,H%7D%0A=%20%5Cwidehat%7B%5Cbeta%7D_%7Bj,%5Ctext%7BCoffeeMedium%7D%7D%0A+%20%5Cwidehat%7B%5Cbeta%7D_%7Bj,%5Ctext%7BPRSHigh%7D%7D,%0A"></p>
<p>so that</p>
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cwidehat%7B%5Coperatorname%7BOR%7D%7D_%7Bj,M,H%7D%0A=%20%5Cexp%5Cleft(%0A%20%20%5Cwidehat%7B%5Cbeta%7D_%7Bj,%5Ctext%7BCoffeeMedium%7D%7D%0A%20%20+%20%5Cwidehat%7B%5Cbeta%7D_%7Bj,%5Ctext%7BPRSHigh%7D%7D%0A%5Cright).%0A"></p>
<p>The variance of this sum includes both coefficient variances and twice their covariance. Because this working model contains no coffee-by-PRS interaction, effects combine additively on the log-odds scale and multiplicatively on the odds scale for each outcome contrast. This is a model-based association, not a causal effect.</p>
<div class="cell">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb70" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb70-1">PRSlevels <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;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PRS"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(levels, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">times =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>))</span>
<span id="cb70-2">Coflevels <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;">paste0</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Coffee"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(levels, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">each =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>))</span>
<span id="cb70-3"></span>
<span id="cb70-4">prs_cof_OR_table <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="cb70-5">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Cof_levels =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(levels, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">each =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>),</span>
<span id="cb70-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">PRS_levels =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">rep</span>(levels, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">times =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>),</span>
<span id="cb70-7">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_prs_cof1 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2_chr</span>(PRSlevels, Coflevels, <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;">get_OR_CI</span>(prs_cof1_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.x, .y))),</span>
<span id="cb70-8">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_prs_cof2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2_chr</span>(PRSlevels, Coflevels, <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;">get_OR_CI</span>(prs_cof2_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.x, .y))),</span>
<span id="cb70-9">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">Pre_prs_cof3 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2_chr</span>(PRSlevels, Coflevels, <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;">get_OR_CI</span>(prs_cof3_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.x, .y))),</span>
<span id="cb70-10">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_prs_cof1 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2_chr</span>(PRSlevels, Coflevels, <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;">get_OR_CI</span>(prs_cof1_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.x, .y))),</span>
<span id="cb70-11">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_prs_cof2 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2_chr</span>(PRSlevels, Coflevels, <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;">get_OR_CI</span>(prs_cof2_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.x, .y))),</span>
<span id="cb70-12">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">T2DM_prs_cof3 =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map2_chr</span>(PRSlevels, Coflevels, <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;">get_OR_CI</span>(prs_cof3_ml, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"T2DM"</span>, <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(.x, .y))))</span>
<span id="cb70-13"></span>
<span id="cb70-14"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">gt</span>(prs_cof_OR_table,</span>
<span id="cb70-15">   <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rowname_col =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PRS_levels"</span>,</span>
<span id="cb70-16">   <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">groupname_col =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Cof_levels"</span>, </span>
<span id="cb70-17">   <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">row_group_as_column =</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="cb70-18">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_stubhead</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">label =</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;">"Coffee"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PRS"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb70-19">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_spanner</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;">"Pre"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</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;">"Pre"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb70-20">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">tab_spanner</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;">"T2DM"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">columns =</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;">"T2DM"</span>)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb70-21">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cols_label</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"1"</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;">"M1"</span>,</span>
<span id="cb70-22">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</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;">~</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"M2"</span>,</span>
<span id="cb70-23">             <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ends_with</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"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;">"M3"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|&gt;</span></span>
<span id="cb70-24">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">fmt_markdown</span>()</span></code></pre></div></div>
</details>
<div id="tbl-pre-cof-effect" class="cell quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-pre-cof-effect-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;4: Joint associations of PRS and coffee consumption with prediabetes/T2DM
</figcaption>
<div aria-describedby="tbl-pre-cof-effect-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output-display">
<div id="itqsdcdghr" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#itqsdcdghr table {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#itqsdcdghr thead, #itqsdcdghr tbody, #itqsdcdghr tfoot, #itqsdcdghr tr, #itqsdcdghr td, #itqsdcdghr th {
  border-style: none;
}

#itqsdcdghr p {
  margin: 0;
  padding: 0;
}

#itqsdcdghr .gt_table {
  display: table;
  border-collapse: collapse;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  background-color: #FFFFFF;
  width: auto;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #A8A8A8;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #A8A8A8;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
}

#itqsdcdghr .gt_caption {
  padding-top: 4px;
  padding-bottom: 4px;
}

#itqsdcdghr .gt_title {
  color: #333333;
  font-size: 125%;
  font-weight: initial;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-color: #FFFFFF;
  border-bottom-width: 0;
}

#itqsdcdghr .gt_subtitle {
  color: #333333;
  font-size: 85%;
  font-weight: initial;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-color: #FFFFFF;
  border-top-width: 0;
}

#itqsdcdghr .gt_heading {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom-color: #FFFFFF;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#itqsdcdghr .gt_bottom_border {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#itqsdcdghr .gt_col_headings {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
}

#itqsdcdghr .gt_col_heading {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  overflow-x: hidden;
}

#itqsdcdghr .gt_column_spanner_outer {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: normal;
  text-transform: inherit;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
}

#itqsdcdghr .gt_column_spanner_outer:first-child {
  padding-left: 0;
}

#itqsdcdghr .gt_column_spanner_outer:last-child {
  padding-right: 0;
}

#itqsdcdghr .gt_column_spanner {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: bottom;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow-x: hidden;
  display: inline-block;
  width: 100%;
}

#itqsdcdghr .gt_spanner_row {
  border-bottom-style: hidden;
}

#itqsdcdghr .gt_group_heading {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  text-align: left;
}

#itqsdcdghr .gt_empty_group_heading {
  padding: 0.5px;
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  vertical-align: middle;
}

#itqsdcdghr .gt_from_md > :first-child {
  margin-top: 0;
}

#itqsdcdghr .gt_from_md > :last-child {
  margin-bottom: 0;
}

#itqsdcdghr .gt_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 10px;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 1px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 1px;
  border-right-color: #D3D3D3;
  vertical-align: middle;
  overflow-x: hidden;
}

#itqsdcdghr .gt_stub {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
}

#itqsdcdghr .gt_stub_row_group {
  color: #333333;
  background-color: #FFFFFF;
  font-size: 100%;
  font-weight: initial;
  text-transform: inherit;
  border-right-style: solid;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

#itqsdcdghr .gt_row_group_first td {
  border-top-width: 2px;
}

#itqsdcdghr .gt_row_group_first th {
  border-top-width: 2px;
}

#itqsdcdghr .gt_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#itqsdcdghr .gt_first_summary_row {
  border-top-style: solid;
  border-top-color: #D3D3D3;
}

#itqsdcdghr .gt_first_summary_row.thick {
  border-top-width: 2px;
}

#itqsdcdghr .gt_last_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#itqsdcdghr .gt_grand_summary_row {
  color: #333333;
  background-color: #FFFFFF;
  text-transform: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}

#itqsdcdghr .gt_first_grand_summary_row {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-top-style: double;
  border-top-width: 6px;
  border-top-color: #D3D3D3;
}

#itqsdcdghr .gt_last_grand_summary_row_top {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom-style: double;
  border-bottom-width: 6px;
  border-bottom-color: #D3D3D3;
}

#itqsdcdghr .gt_striped {
  background-color: rgba(128, 128, 128, 0.05);
}

#itqsdcdghr .gt_table_body {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #D3D3D3;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
}

#itqsdcdghr .gt_footnotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#itqsdcdghr .gt_footnote {
  margin: 0px;
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#itqsdcdghr .gt_sourcenotes {
  color: #333333;
  background-color: #FFFFFF;
  border-bottom-style: none;
  border-bottom-width: 2px;
  border-bottom-color: #D3D3D3;
  border-left-style: none;
  border-left-width: 2px;
  border-left-color: #D3D3D3;
  border-right-style: none;
  border-right-width: 2px;
  border-right-color: #D3D3D3;
}

#itqsdcdghr .gt_sourcenote {
  font-size: 90%;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
}

#itqsdcdghr .gt_left {
  text-align: left;
}

#itqsdcdghr .gt_center {
  text-align: center;
}

#itqsdcdghr .gt_right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#itqsdcdghr .gt_font_normal {
  font-weight: normal;
}

#itqsdcdghr .gt_font_bold {
  font-weight: bold;
}

#itqsdcdghr .gt_font_italic {
  font-style: italic;
}

#itqsdcdghr .gt_super {
  font-size: 65%;
}

#itqsdcdghr .gt_footnote_marks {
  font-size: 75%;
  vertical-align: 0.4em;
  position: initial;
}

#itqsdcdghr .gt_asterisk {
  font-size: 100%;
  vertical-align: 0;
}

#itqsdcdghr .gt_indent_1 {
  text-indent: 5px;
}

#itqsdcdghr .gt_indent_2 {
  text-indent: 10px;
}

#itqsdcdghr .gt_indent_3 {
  text-indent: 15px;
}

#itqsdcdghr .gt_indent_4 {
  text-indent: 20px;
}

#itqsdcdghr .gt_indent_5 {
  text-indent: 25px;
}

#itqsdcdghr .katex-display {
  display: inline-flex !important;
  margin-bottom: 0.75em !important;
}

#itqsdcdghr div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
  height: 0px !important;
}
</style>

<table class="gt_table cell caption-top table table-sm table-striped small" data-quarto-bootstrap="false">
<colgroup>
<col style="width: 12%">
<col style="width: 12%">
<col style="width: 12%">
<col style="width: 12%">
<col style="width: 12%">
<col style="width: 12%">
<col style="width: 12%">
<col style="width: 12%">
</colgroup>
<thead>
<tr class="gt_col_headings gt_spanner_row header">
<th colspan="2" rowspan="2" id="a::stub" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="colgroup">Coffee</th>
<th colspan="3" id="Pre" class="gt_center gt_columns_top_border gt_column_spanner_outer" data-quarto-table-cell-role="th" scope="colgroup"><div class="gt_column_spanner">
Pre
</div></th>
<th colspan="3" id="T2DM" class="gt_center gt_columns_top_border gt_column_spanner_outer" data-quarto-table-cell-role="th" scope="colgroup"><div class="gt_column_spanner">
T2DM
</div></th>
</tr>
<tr class="gt_col_headings even">
<th id="Pre_prs_cof1" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M1</th>
<th id="Pre_prs_cof2" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M2</th>
<th id="Pre_prs_cof3" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M3</th>
<th id="T2DM_prs_cof1" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M1</th>
<th id="T2DM_prs_cof2" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M2</th>
<th id="T2DM_prs_cof3" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">M3</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr class="gt_row_group_first odd">
<td rowspan="3" class="gt_row gt_left gt_stub_row_group" headers="Low stub_2_1 stub_1">Low</td>
<th id="stub_2_1" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Low</th>
<td class="gt_row gt_left" headers="Low stub_2_1 Pre_prs_cof1">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="Low stub_2_1 Pre_prs_cof2">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="Low stub_2_1 Pre_prs_cof3">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="Low stub_2_1 T2DM_prs_cof1">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="Low stub_2_1 T2DM_prs_cof2">1 <br> (1, 1)</td>
<td class="gt_row gt_left" headers="Low stub_2_1 T2DM_prs_cof3">1 <br> (1, 1)</td>
</tr>
<tr class="even">
<th id="stub_2_2" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Medium</th>
<td class="gt_row gt_left" headers="Low stub_2_2 Pre_prs_cof1">1.38 <br> (1.15, 1.65)</td>
<td class="gt_row gt_left" headers="Low stub_2_2 Pre_prs_cof2">1.4 <br> (1.21, 1.63)</td>
<td class="gt_row gt_left" headers="Low stub_2_2 Pre_prs_cof3">1.36 <br> (1.16, 1.59)</td>
<td class="gt_row gt_left" headers="Low stub_2_2 T2DM_prs_cof1">2.46 <br> (2.05, 2.94)</td>
<td class="gt_row gt_left" headers="Low stub_2_2 T2DM_prs_cof2">2.55 <br> (2.26, 2.87)</td>
<td class="gt_row gt_left" headers="Low stub_2_2 T2DM_prs_cof3">2.28 <br> (2.02, 2.57)</td>
</tr>
<tr class="odd">
<th id="stub_2_3" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">High</th>
<td class="gt_row gt_left" headers="Low stub_2_3 Pre_prs_cof1">1.66 <br> (1.39, 1.99)</td>
<td class="gt_row gt_left" headers="Low stub_2_3 Pre_prs_cof2">1.74 <br> (1.5, 2.01)</td>
<td class="gt_row gt_left" headers="Low stub_2_3 Pre_prs_cof3">1.58 <br> (1.35, 1.86)</td>
<td class="gt_row gt_left" headers="Low stub_2_3 T2DM_prs_cof1">3.76 <br> (3.15, 4.48)</td>
<td class="gt_row gt_left" headers="Low stub_2_3 T2DM_prs_cof2">4.19 <br> (3.73, 4.71)</td>
<td class="gt_row gt_left" headers="Low stub_2_3 T2DM_prs_cof3">3.16 <br> (2.8, 3.56)</td>
</tr>
<tr class="gt_row_group_first even">
<td rowspan="3" class="gt_row gt_left gt_stub_row_group" headers="Medium stub_2_4 stub_1">Medium</td>
<th id="stub_2_4" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Low</th>
<td class="gt_row gt_left" headers="Medium stub_2_4 Pre_prs_cof1">0.81 <br> (0.68, 0.97)</td>
<td class="gt_row gt_left" headers="Medium stub_2_4 Pre_prs_cof2">0.8 <br> (0.7, 0.92)</td>
<td class="gt_row gt_left" headers="Medium stub_2_4 Pre_prs_cof3">0.8 <br> (0.69, 0.92)</td>
<td class="gt_row gt_left" headers="Medium stub_2_4 T2DM_prs_cof1">0.82 <br> (0.7, 0.97)</td>
<td class="gt_row gt_left" headers="Medium stub_2_4 T2DM_prs_cof2">0.83 <br> (0.73, 0.94)</td>
<td class="gt_row gt_left" headers="Medium stub_2_4 T2DM_prs_cof3">0.8 <br> (0.7, 0.91)</td>
</tr>
<tr class="odd">
<th id="stub_2_5" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Medium</th>
<td class="gt_row gt_left" headers="Medium stub_2_5 Pre_prs_cof1">1.12 <br> (0.87, 1.44)</td>
<td class="gt_row gt_left" headers="Medium stub_2_5 Pre_prs_cof2">1.13 <br> (0.93, 1.37)</td>
<td class="gt_row gt_left" headers="Medium stub_2_5 Pre_prs_cof3">1.08 <br> (0.88, 1.34)</td>
<td class="gt_row gt_left" headers="Medium stub_2_5 T2DM_prs_cof1">2.02 <br> (1.59, 2.57)</td>
<td class="gt_row gt_left" headers="Medium stub_2_5 T2DM_prs_cof2">2.11 <br> (1.78, 2.51)</td>
<td class="gt_row gt_left" headers="Medium stub_2_5 T2DM_prs_cof3">1.82 <br> (1.52, 2.17)</td>
</tr>
<tr class="even">
<th id="stub_2_6" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">High</th>
<td class="gt_row gt_left" headers="Medium stub_2_6 Pre_prs_cof1">1.35 <br> (1.05, 1.73)</td>
<td class="gt_row gt_left" headers="Medium stub_2_6 Pre_prs_cof2">1.4 <br> (1.15, 1.7)</td>
<td class="gt_row gt_left" headers="Medium stub_2_6 Pre_prs_cof3">1.26 <br> (1.02, 1.56)</td>
<td class="gt_row gt_left" headers="Medium stub_2_6 T2DM_prs_cof1">3.09 <br> (2.44, 3.93)</td>
<td class="gt_row gt_left" headers="Medium stub_2_6 T2DM_prs_cof2">3.47 <br> (2.92, 4.13)</td>
<td class="gt_row gt_left" headers="Medium stub_2_6 T2DM_prs_cof3">2.51 <br> (2.1, 3.01)</td>
</tr>
<tr class="gt_row_group_first odd">
<td rowspan="3" class="gt_row gt_left gt_stub_row_group" headers="High stub_2_7 stub_1">High</td>
<th id="stub_2_7" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Low</th>
<td class="gt_row gt_left" headers="High stub_2_7 Pre_prs_cof1">0.9 <br> (0.75, 1.08)</td>
<td class="gt_row gt_left" headers="High stub_2_7 Pre_prs_cof2">0.85 <br> (0.74, 0.97)</td>
<td class="gt_row gt_left" headers="High stub_2_7 Pre_prs_cof3">0.83 <br> (0.72, 0.96)</td>
<td class="gt_row gt_left" headers="High stub_2_7 T2DM_prs_cof1">0.97 <br> (0.82, 1.14)</td>
<td class="gt_row gt_left" headers="High stub_2_7 T2DM_prs_cof2">0.87 <br> (0.76, 0.99)</td>
<td class="gt_row gt_left" headers="High stub_2_7 T2DM_prs_cof3">0.8 <br> (0.7, 0.91)</td>
</tr>
<tr class="even">
<th id="stub_2_8" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">Medium</th>
<td class="gt_row gt_left" headers="High stub_2_8 Pre_prs_cof1">1.25 <br> (0.97, 1.6)</td>
<td class="gt_row gt_left" headers="High stub_2_8 Pre_prs_cof2">1.19 <br> (0.97, 1.45)</td>
<td class="gt_row gt_left" headers="High stub_2_8 Pre_prs_cof3">1.13 <br> (0.91, 1.39)</td>
<td class="gt_row gt_left" headers="High stub_2_8 T2DM_prs_cof1">2.37 <br> (1.87, 3.02)</td>
<td class="gt_row gt_left" headers="High stub_2_8 T2DM_prs_cof2">2.22 <br> (1.86, 2.64)</td>
<td class="gt_row gt_left" headers="High stub_2_8 T2DM_prs_cof3">1.82 <br> (1.53, 2.18)</td>
</tr>
<tr class="odd">
<th id="stub_2_9" class="gt_row gt_left gt_stub" data-quarto-table-cell-role="th" scope="row">High</th>
<td class="gt_row gt_left" headers="High stub_2_9 Pre_prs_cof1">1.5 <br> (1.17, 1.92)</td>
<td class="gt_row gt_left" headers="High stub_2_9 Pre_prs_cof2">1.47 <br> (1.21, 1.79)</td>
<td class="gt_row gt_left" headers="High stub_2_9 Pre_prs_cof3">1.31 <br> (1.06, 1.62)</td>
<td class="gt_row gt_left" headers="High stub_2_9 T2DM_prs_cof1">3.63 <br> (2.86, 4.6)</td>
<td class="gt_row gt_left" headers="High stub_2_9 T2DM_prs_cof2">3.64 <br> (3.07, 4.32)</td>
<td class="gt_row gt_left" headers="High stub_2_9 T2DM_prs_cof3">2.53 <br> (2.12, 3.01)</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
</figure>
</div>
</div>
<p>These joint-category contrasts can be calculated from a single multinomial model; separate stratification of the dataset is not required for this table.</p>
</section>
</section>
<section id="relation-to-the-published-article" class="level1" data-number="5">
<h1 data-number="5"><span class="header-section-number">5</span> Relation to the published article</h1>
<p>This page preserves a subset of the analyses and decisions considered during manuscript preparation. It is an analytical record rather than a reconstruction of every final analysis, and the published article is the definitive source for the study methods, results, and interpretation.</p>
<p>Several features of the final analysis are important when reading this record:</p>
<ol type="1">
<li>The published article reports an included sample of 7,668 and labels its main association table as <img src="https://latex.codecogs.com/png.latex?n%20=%207%7B,%7D668">, whereas the complete-case working models on this page use 6,224 participants. The available record does not reconcile this difference.</li>
<li>The final article used multinomial logistic regression with NGM as the reference outcome and reported three sequential covariate-adjustment sets.</li>
<li>Education was included in Model 1 of the published analysis. By contrast, the working candidate formulas preserved above add <code>Education</code> in the third covariate set.</li>
<li>The final categorical coffee-by-PRS interaction was evaluated in the fully adjusted model using a likelihood-ratio test. The reported <img src="https://latex.codecogs.com/png.latex?p"> value was .21, providing no evidence of multiplicative interaction in that analysis.</li>
<li>The published work additionally examined coffee consumption using restricted cubic splines and conducted sensitivity analyses focused on newly diagnosed diabetes and recruitment period. Those analyses are not reproduced on this page.</li>
</ol>
<p>In the final results, medium and high coffee-consumption categories were associated with lower odds of prevalent prediabetes and T2DM, whereas higher PRS categories were associated with higher odds. The dose-response analysis suggested a potentially U-shaped association between coffee consumption and both outcomes. These cross-sectional associations should not be interpreted as evidence that coffee consumption causes a reduction in diabetes risk.</p>
<p>For the complete methods, results, sensitivity analyses, and interpretation, see <a href="https://doi.org/10.1007/s00394-025-03782-y">Rao et al.&nbsp;(2025), <em>Interaction between coffee consumption and polygenic risk score in relation to diabetes: insights from the Maastricht study</em></a>.</p>


<!-- -->

</section>

 ]]></description>
  <category>r</category>
  <category>statistics</category>
  <category>research notes</category>
  <guid>https://tzuyaolin.com/posts/20240918_CDP/</guid>
  <pubDate>Wed, 18 Sep 2024 00:00:00 GMT</pubDate>
  <media:content url="https://tzuyaolin.com/posts/20240918_CDP/CDP.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>Welcome to My Blog</title>
  <dc:creator>Tzu-Yao Lin</dc:creator>
  <link>https://tzuyaolin.com/posts/20230703_welcome/</link>
  <description><![CDATA[ 






<p>Welcome to my blog. I started this space to share updates on my research, notes from what I am reading and learning, and things I discover while working with R, statistics, and psychology. I may also write about personal thoughts and experiences along the way.</p>
<p>Why start a personal blog? The reason is simple: I want to share what I learn instead of keeping it in my own notes.</p>
<blockquote class="blockquote">
<p>When you’ve written the same code 3 times, write a function.</p>
<p>When you’ve given the same in-person advice 3 times, write a blog post.</p>
<p>— David Robinson (<a href="https://x.com/drob/status/928447584712253440">@drob</a>, November 9, 2017)</p>
</blockquote>
<p>I still don’t know exactly what this blog will become, but that is part of the point. I would rather start now and let it take shape over time. Thanks for reading.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://tzuyaolin.com/posts/20230703_welcome/kinderdijk_and_sunrise.jpg" class="img-fluid figure-img"></p>
<figcaption>Sunrise at Kinderdijk, the Netherlands</figcaption>
</figure>
</div>



 ]]></description>
  <category>news</category>
  <guid>https://tzuyaolin.com/posts/20230703_welcome/</guid>
  <pubDate>Mon, 03 Jul 2023 00:00:00 GMT</pubDate>
  <media:content url="https://tzuyaolin.com/posts/20230703_welcome/kinderdijk_and_sunrise.jpg" medium="image" type="image/jpeg"/>
</item>
</channel>
</rss>
