| define_latex_stats | R Documentation |
Add the definitions for various useful LaTeX equation symbols for statistics to an RMarkdown or Quarto document.
define_latex_stats()
Run this function from within a code chunk in a RMarkdown or Quarto document
with options results = "asis" and echo = FALSE (see "Examples").
It only works for pdf output.
It defines the following macros: \E, \P, \Var, \Cov, \Cor,
\SD, \SE, \Xb, \Yb.
The function returns NULL invisibly. The command definitions
are output as a side effect.
## Not run:
# add this code chunk to a RMarkdown or Quarto document
```{r results = "asis", echo = FALSE}
define_latex_stats()
```
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.