define_latex_stats: Define LaTeX commands for statistical symbols

View source: R/slide_tools.R

define_latex_statsR Documentation

Define LaTeX commands for statistical symbols

Description

Add the definitions for various useful LaTeX equation symbols for statistics to an RMarkdown document.

Usage

define_latex_stats()

Details

Run this function from within a code chunk in a RMarkdown 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⁠.

Value

The function returns NULL invisibly. The command definitions are output as a side effect.

Examples

## Not run: 
# add this code chunk to a RMarkdown document
```{r results = "asis", echo = FALSE}
  define_latex_stats()
```

## End(Not run)


stibu81/ibawds documentation built on April 14, 2025, 12:16 a.m.