Welcome to my presentation about presentations and stuff!
This presentation is a short version of part of the SASA 2025 workshop that I’m co-hosting with Johané Nienkemper-Swanepoel and Raeesa Ganey (on behalf of MDAG).
Hit refresh (F5 or Ctrl+r) if nothing is showing.
Think about your own situations. With each example, think about where you might apply these ideas in your own
We could simulate a pair of \(VARIMA_2(1,1,1)-tGARCH(1,1)\) financial time series like so:
The ACTG 315 dataset, available in the ushr R package, includes longitudinal measurements of HIV viral load (log\(_{10}\) RNA copies/mL) over time. It features data on 46 patients, with the longest measurement recorded on Day 196 after baseline (Day 0).
When you want to know whether two population means are different based on independent samples, is it better to
Let’s simulate a few scenarios:
We calculate the power when testing at \(\alpha =\) 0.05 and compare the approaches under each scenario.
Simulation study results
Zoom in to see the ‘difference’.
When is it better to use a table and when is it better to use a plot to present results?
One of the best ways to evaluate the fit of a model is to plot the model and show the data over it. Here we are analysing a reduction in pollution at a dam:
deck <- paste( c(2:10, 'Jack', 'Queen', 'King', 'Ace') |> rep(times=4), 'of',
c('Spades','Diamonds','Clubs','Hearts') |> rep(each=13) )
# To draw a hand of 7 cards:
hand <- deck |> sample(7)
# Shuffling is taking a sample the same size (52) without replacement:
shuffled_deck <- deck |> sample(length(deck))
# To do a bootstrap sample just add: , TRUE
This plot is the basis for my MCMC class:
Perhaps we shall summarise the complete works of Shakespeare in a word cloud?
This presentation was created using the Reveal.js format in Quarto, using the RStudio IDE. Background image created using image editor GIMP by compositing images from CoPilot.
How do you get this power for yourself?
Should you even try to get this power? Isn’t is dangerous?
The biggest downsides are obvious when you try to distribute it:
PDF and HTML are absorbing states, Word nearly so.
The interactivity is brought to you (under the hood) by JavaScript. You do not see it - it is very well hidden, but it is working in the background to display the figures and react to your inputs.
The JavaScript accompanies (or is embedded in) HTML. No, you do not need to know any HTML at all, just like you don’t need to know that a .docx is actually a .zip containing .xml files.
All you need to learn is Markdown and a little of your favourite scripting language (e.g. R).
I do almost all my work directly in markdown
# This is a big heading
, ## This is a smaller heading
, ###### This is a tiny heading
# This is a section slide heading
, ## This is a normal slide heading
<https://www.this_is_a_link.com>
, *This is italics*
, **This is bold**
[This is a fancier link](https://pointing.to.this/)
>
starts a quote, -
creates a bullet, and numbered lists are just 1.
Text with borders, perhaps in columns
Note
A note
Warning
or a warning, perhaps with a highlight
Interactive diagrams are fun, but require detailed specification. Simple diagrams can be done really fast with just basic labels:
flowchart LR A{Is Y continuous?} -->|No| B(Table) A -->|Yes| C{Is X1 continuous?} C -->|No| D[Box plot] C -->|Yes| E[Scatter plot]
```{language options} some code ```
Quarto supports a lot of languages but I typically use R, Stan, CSS, and HTML only for my work.
This presentation was created using the Reveal.js format in Quarto, using the RStudio IDE. Background image created using image editor GIMP by compositing images from CoPilot.
2025/08/22 - Presentations