I'm trying to write a
xaringan presentation that has some latex equations. This is what I wrote:
--- output: xaringan::moon_reader: lib_dir: libs nature: highlightStyle: github highlightLines: true highlightSpans: true countIncrementalSlides: false ratio: "16:9" --- # Model without clusters Let $y_i$ be the standardized outcome for student $i$: $$ y_i \sim N(\mu_i,\sigma) \\ \sigma \sim N^+(0,1) \\ \mu_i = \alpha + \eta T_i + \beta X_i \\ \eta \sim N(0,1) \\ \beta \sim N(0,1) $$
\\ is not recognized as a line break so I end up with this:
What am I doing wrong?