How to enter a tilde in formulas in RMarkdown

I am trying to introduce equations on RMarkdown to create a PDF file, and I want to use the tilde, how can I do this. I'm trying to do it but throwing awaypandoc.exe: Error producing PDF from TeX source ....

---
title: "See"
date: "24 September 2016"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

follows a Bernouli distribution 
$$y_i \~ Bernouli(p_i)$$
+6
source share
1 answer

I believe if you do

$$
\sim
$$

This should produce ~what you are trying to fit in the formula.

0
source

Source: https://habr.com/ru/post/1655673/


All Articles