This should cover 99% of your Markdown needs !
This is a section.
And this is a nother one !
This is a subsection.
This is a sub-subsection.
This is a nother sub-subsection !
For a line break, you have to add two or more blank spaces at the end of the line.
For example, this is a new line. (But this is not !)
This is a paragraph. It has two sentences.
This is another paragraph. It also has two sentences.
Paragraphs should be separated by one or more blank lines between them.
Italic, Italic, Bold, Bold, Bold and Italic, Bold and Italic
The following paragraph is quoted from another source:
We were spending too much time on the logistics of sharing our results.
— Julia Silge, data scientist at Stack Overflow
An Markdown document can also include
Links like this Rmarkdown reference, this Markdown Guide , and this Rmarkdown Rstudio.
Images like this one
To write an inline code like this one 1+1, put it inside two backticks. A backtick is a special character you might not have seen before. If this is the case then check this or this to get some help.
A code chunk is specified by three backticks:
1 + 1
Here is an example of a code chunk in python and r:
x = 1 + 1
def foo():
print('foo is a function')
a <- rnorm(10, 5, 2)
for (i in 1:10) {
print(a[1])
}
You can also write a table like this
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| a1 | b1 | c1 |
| a2 | b2 | c2 |
This table | is | very simple but coll
In you need help, you may use this tool Online Markdown table generator
You can use mathematical notation if you surround your text by dollar signs $ for inline mathematics and $$ for displayed equations. Do not leave a space between the $ and your mathematical notation.
Exemple: $\sum_{n=1}^{10} n^2$ is rendered as \(\sum_{n=1}^{10} n^2\) and $$\sum_{n=1}^{10} n^2$$ is rendered as \[
\sum_{n=1}^{10} n^2
\]
The mathematical typesetting is based on LaTeX, so if you need to search for the way to make a particular symbol, include latex in your search.
Here are some common mathematical things you might use in statistics
| Output | LaTeX |
|---|---|
| \(x = y\) | $x = y$ |
| \(x < y\) | $x < y$ |
| \(x \le y\) | $x \leq y$ |
| \(x \ge y\) | $x \geq y$ |
| \(x \neq y\) | $x \neq y$ |
| \(\bar{x}\) | $\bar{x}$ |
| \(\hat{x}\) | $\hat{x}$ |
| \(x^{n}\) | $x^{n}$ |
| \(x_{n}\) | $x^{n}$ |
| \(\frac{a}{b}\) | $\frac{a}{b}$ |
| \(X \sim \text{Normal}(\mu, \sigma)\) | $X \sim \text{Normal}(\mu, \sigma)$ |
| \(\sum_{x = a}^{b} f(x)\) | $\sum_{x = a}^{b} f(x)$ |
| \(\int_{-\infty}^{b} f(x) dx\) | $\int_{-\infty}^{b} f(x) dx$ |
| \(\prod_{x = a}^{b} f(x)\) | $\prod_{x = a}^{b} f(x)$ |
| \(\lim_{x \to \infty} f(x)\) | $\lim_{x \to \infty} f(x)$ |
| \(\alpha\) | $\alpha $ |
| \(\beta\) | $\beta $ |
| \(\theta\) | $\theta$ |
| \(\gamma\) | $\gamma$ |
For more about writing Math visit https://en.wikibooks.org/wiki/LaTeX/Mathematics, https://www.tutorialspoint.com/latex_equation_editor.htm, and https://www.latex4technics.com/.