Open utterances-bot opened 1 year ago
Responding to your footnote, I recently just figured out how to make a shortcut for the independence symbol in Quarto!
Using a .content-hidden block and some \newcommand statements in LaTeX we can do some LaTeX preamble -like things — for example below I wrote shortcuts for myself to make \E the double-struck E for expectation and \independent to be the usual independent symbol (which I learned an easier way to make from here).
It's not really a pre-amble, though, since we're limited to statements that work in the context of MathJax.
::: {.content-hidden} $$ \newcommand{\E}[0]{\mathbb E}
% create conditionally independent symbol: \newcommand\independent{\perp!!!\perp} $$ :::
However, I also just learned about extensions to MathJax, so while you can't just \usepackage{} in MathJax, in Quarto what you can do is write:
<script>
window.MathJax = {
loader: {load: ['[tex]/cancel']},
tex: {packages: {'[+]': ['cancel']}}
};
</script>
Which I learned from here when I was trying to figure out how to indicate some cancellations yesterday.
Rebecca Barter - Confounding in causal inference: what is it, and what to do about it?
An introduction to the field of causal inference and the issues surrounding confounding.
https://www.rebeccabarter.com/blog/2017-07-05-confounding