Rebecca C. Steorts

June 12, 2016

- Beka Steorts, Assistant Professor at Duke University.
- Background: Mathematics, Applied Mathematics and CS, and Statistics
- PhD: University of Florida, 2012, Advisor: Malay Ghosh
- Visiting Assiting Professor, Carnegie Mellon University, Mentor: Steve Fienberg
- Research areas: Record linkage, privacy, networks, Bayesian nonparametric clustering models, precision medecine, and small area estiamtion.

Part I: What is RStudio and Markdown

- Integration of computing in your Bayesian course.

Part II: Two sample labs.

- Pretend to be the students.
- Imagine being a graduate student or yet an undergraduate.
- I'm going to walk you through two sample labs I taught at Duke this year in my Bayesian course.

Reproducible research is the idea that data analyses, and more generally, scientific claims, are published with their data and software code so that others may verify the findings and build upon them.

-Johns Hopkins, Coursera

- RStudio is very easy and simple to use. It can be downloaded from R Studio Download.
- RStudio is not R.
- RStudio mediates your interaction with R.

- Markdown is a lightweight markup language for creating HTML, PDF, or other documents.
- Markup languages are designed to produce documents from human readable text.
- This promotes research/materials that are reproducible.
- Also, RStudio integrates with LaTeX.

- It's easy to learn.
- It really pushes at reproducible code

and documentation. - Once this basics are down, you can do things that are more fancy.

- A cheatsheet is given for simple markdown commands R Markdown Cheat Sheet
- Tysetting equations can be slightly different than LaTeX. There are some resources here! LaTeX Typesetting

```
1+6
```

```
[1] 7
```

```
x <- 4
(x + 2)
```

```
[1] 6
```

```
set.seed(738)
```

Let's now go through two labs using RStudio such that we can see how to use this tool with students.

- Lab 1: Binomial-Beta example
- Lab 2: Gibbs sampling