2.10 Formulas
Regular Latex-style formulas can be easily written in R markdown. Use single $
for inline expressions and $$
for enclosing standalone expressions.
Examples:
$\beta_0 = 1.0$
for embedded inline formulas like this \(\beta_0 = 1.0\)
$$OR = \frac{Odds_{cases}}{Odds_{controls}}$$
\[OR = \frac{Odds_{cases}}{Odds_{controls}}\]
More details and examples of how to write matrices are available here.