Deploying to gh-pages from @ agdamsbo/stRoke@079bfa8b33 🚀

This commit is contained in:
agdamsbo 2024-10-25 06:06:23 +00:00
parent 344b101cf1
commit c4d7fe2209
5 changed files with 12 additions and 16 deletions

View File

@ -63,7 +63,7 @@
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Toolbox</h1>
<h4 data-toc-skip class="date">2024-10-24</h4>
<h4 data-toc-skip class="date">2024-10-25</h4>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/stRoke/blob/main/vignettes/toolbox.Rmd" class="external-link"><code>vignettes/toolbox.Rmd</code></a></small>
<div class="d-none name"><code>toolbox.Rmd</code></div>
@ -83,10 +83,6 @@ something like that.</p>
I use regularly in addition to functions that I have written myself to
fill use cases, that I have not been able to find solutions to
elsewhere.</p>
<p>In documenting and testing the package, I have used <a href="https://platform.openai.com/overview" class="external-link">OpenAIs</a> chatgpt with <a href="https://jameshwade.github.io/gpttools/" class="external-link">gpttools</a>. The chatgpt
is an interesting tool, that is in no way perfect, but it helps with
tedious tasks. Both <code>gpttools</code> and <a href="https://michelnivard.github.io/gptstudio/" class="external-link"><code>gptstudio</code></a>
are interesting implementations in R and RStudio.</p>
<div class="section level3">
<h3 id="cpr-intro">CPR manipulations<a class="anchor" aria-label="anchor" href="#cpr-intro"></a>
</h3>
@ -98,7 +94,7 @@ binary gender (not biological sex) dependent on even/uneven as
female/male, and the last for digits are used in a modulus calculation
to verify the validity of the CPR number. Foreigners and unidentified
persons are given temporary CPR numbers including letters.</p>
<p>More information can be found on <a href="https://cpr.dk" class="external-link">cpr.dk</a>.</p>
<p>More information can be found on <a href="https://www.cpr.dk" class="external-link">cpr.dk</a>.</p>
<p>Note, that all CPR numbers used in examples are publicly known or
non-organic.</p>
<div class="section level4">
@ -115,9 +111,9 @@ functions similarly to <code><a href="https://lubridate.tidyverse.org/reference/
<div class="section level4">
<h4 id="cpr_check">cpr_check()<a class="anchor" aria-label="anchor" href="#cpr_check"></a>
</h4>
<p>Checks validity of CPR numbers according to the <a href="https://cpr.dk/cpr-systemet/opbygning-af-cpr-nummeret" class="external-link">modulus 11
rule</a>. Note that due to limitations in the possible available CPR
numbers, this rule <a href="https://cpr.dk/cpr-systemet/personnumre-uden-kontrolciffer-modulus-11-kontrol" class="external-link">does
<p>Checks validity of CPR numbers according to the <a href="https://www.cpr.dk/cpr-systemet/opbygning-af-cpr-nummeret" class="external-link">modulus
11 rule</a>. Note that due to limitations in the possible available CPR
numbers, this rule <a href="https://www.cpr.dk/cpr-systemet/personnumre-uden-kontrolciffer-modulus-11-kontrol" class="external-link">does
not apply to all CPR numbers after 2007</a>.</p>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="../reference/cpr_check.html">cpr_check</a></span><span class="op">(</span></span>
@ -193,7 +189,7 @@ relevant assumptions.</p>
<div class="section level4">
<h4 id="generic_stroke">generic_stroke()<a class="anchor" aria-label="anchor" href="#generic_stroke"></a>
</h4>
<p>For learning purposes. Uses annonymized data from the <a href="https://doi.org/10.1161/STROKEAHA.117.020067" class="external-link">TALOS trial</a> to
<p>For learning purposes. Uses anonymized data from the <a href="https://doi.org/10.1161/STROKEAHA.117.020067" class="external-link">TALOS trial</a> to
output a Table 1 (with <code><a href="https://www.danieldsjoberg.com/gtsummary/reference/tbl_summary.html" class="external-link">gtsummary::tbl_summary()</a></code>), plotting
the so-called grotta-bars based on mRS scores (with
<code><a href="https://rdrr.io/pkg/rankinPlot/man/grottaBar.html" class="external-link">rankinPlot::grottaBar()</a></code>) and a ordinal logistic regression

View File

@ -3,7 +3,7 @@ pkgdown: 2.1.1
pkgdown_sha: ~
articles:
toolbox: toolbox.html
last_built: 2024-10-24T10:09Z
last_built: 2024-10-25T06:06Z
urls:
reference: https://agdamsbo.github.io/stRoke/reference
article: https://agdamsbo.github.io/stRoke/articles

View File

@ -78,15 +78,15 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
<span class="r-in"><span><span class="fu">label_select</span><span class="op">(</span><span class="va">labels_all</span>,<span class="va">vars</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[1]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> hypertension ~ "Known hypertension"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: 0x55c3d0a13968&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: 0x55aed9403ea8&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[2]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> diabetes ~ "Known diabetes"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: 0x55c3d0a13968&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: 0x55aed9403ea8&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[3]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> mrs_1 ~ "One month mRS"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: 0x55c3d0a13968&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: 0x55aed9403ea8&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co">## With gtsummary::tbl_summary()</span></span></span>

View File

@ -54,7 +54,7 @@
</dl></div>
<div class="section level2">
<h2 id="see-also">See also<a class="anchor" aria-label="anchor" href="#see-also"></a></h2>
<div class="dont-index"><p><a href="https://www.project-redcap.org/" class="external-link">https://www.project-redcap.org/</a></p></div>
<div class="dont-index"><p>project-redcap(dot)org (currently the certificate is broken)</p></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>

File diff suppressed because one or more lines are too long