---
theme: gaia
_class: lead
size: 16:9
style: |
  .sm {
    font-size: 0.75rem;
  }
  blockquote:after {
    content: "";
  }
  blockquote:before {
    content: "";
  }
  blockquote {
    border-top: 0.1em solid #555;
    font-size: 60%;
    margin-top: auto;
  }
paginate: true
backgroundColor: #fff
_paginate: false     # no page number on title slide
marp: true
style: |
  pre, code {
    font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", monospace;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: none;
  }
  pre {
    padding: 0.75em 1em;
  }
---

<!-- marp_yaml is defined in ~/.Rprofile -->



<!-- Usage: knitrmd marp-r-template
            marp --html marp-r-template.md

            knitrmd defined in ~/bin does
            Rscript -e "knitr::knit('marp-r-template.Rmd', tangle=FALSE, encoding='utf-8')"

            Make sure the figures subdirectory is available when showing the slides if any R graphics were created.

            One-time: Put the character variable assignment marp_yaml <- '...' (where ... is defined in the last slide)
            into your ~/.Rprofile file.
 -->

# A Template for `marp`

Frank Harrell

<p class="sm">Department of Biostatistics<br>
Vanderbilt University School of Medicine<br>
Nashville Tennessee USA
</p>

<p class="sm">2026-05-28</p>

---

# Slide 1

Biostatistics/Bioinformatics/Data Science needs to be integrated early into

* Study design
* Experimental design
* Measurement selection / outcome variable construction
* Data quality assurance and completeness
* Pre-processing
* Analysis strategy

---

<!-- Be sure to sound intelligent when presenting these points. -->

# Slide 2

* Developed with close collaboration of biostatisticians, bioinformaticists, APS subject matter experts
* Analysis strategies should maximize the extraction of information from the data
* SAPs fully developed and adhered to
* Specific enough to reproduce analyses with minor help
* Expect SAPs to need updating as many envisioned analyses are complex and not everything can be foreseen

> `hbiostat.org/bayes/design`


---

<!-- Footnote starts with >   -->

<!-- Notes for slide 3      -->
<!-- More notes for slide 3
Break here

and here                    -->

# Slide 3

* See below

![plot of chunk ggexample](figures/ggexample-1.svg)

---

# Slide 4

``` r
x <- pi
x
```

```
[1] 3.141593
```

---

# `marp_yaml` as defined in `~/.Rprofile`


```
---
theme: gaia
_class: lead
size: 16:9
style: |
  .sm {
    font-size: 0.75rem;
  }
  blockquote:after {
    content: "";
  }
  blockquote:before {
    content: "";
  }
  blockquote {
    border-top: 0.1em solid #555;
    font-size: 60%;
    margin-top: auto;
  }
paginate: true
backgroundColor: #fff
_paginate: false     # no page number on title slide
marp: true
style: |
  pre, code {
    font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", monospace;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: none;
  }
  pre {
    padding: 0.75em 1em;
  }
---
```

---
