Joseph Casillas
PhD Candidate
Slidify
works in R, so you need to download that if you haven't yet.install.packages("devtools")
install_github('slidify', 'ramnathv')
install_github('slidifyLibraries', 'ramnathv')
setwd("path/here")
)slidify
package with library(slidify)
author('mydeck')
.Rmd
file is the only one you need to work with
.Rmd
file) should look like this...---
title :
subtitle :
author :
job :
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
knit : slidify::knit2slides
---
title, subtitle, author, job
widgets
are also important---
title : Example slidify
subtitle : Subtitle goes here
author : Joseph Casillas
job : PhD Candidate
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [mathjax, quiz, bootstrap] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
knit : slidify::knit2slides
logo : ua.png
biglogo : ua.png
assets : {assets: ../../assets}
---
widgets : [mathjax, quiz, bootstrap]
assets > img
folder
---
and ##
##
## Rmarkdown syntax
---
.class #id
--- .class #id
## RMarkdown syntax
- Markdown syntax is very easy
- You can find the basics [here](http://rmarkdown.rstudio.com)
- The main thing you need to know is that you make new slides using `---` and `##`
### `##`
- The double pound sign (hashtags) create the title of the slide
- The title of this slide was made with `## Rmarkdown syntax`
### `---`
- To end a slide use three dashes
- Importantly after you end a slide, you designate the style of the next one
- The default (what you see here) is `.class #id`
- So I ended this slide using `--- .class #id`
--- .class #id
slidify()
command like this...slidify('index.Rmd')
index.html
file. ```{r}
code here
```
2 + 2
## [1] 4
```{r}
2 + 2
```
plot(cars)
abline(lm(dist ~ speed, data = cars), col = "red")
library(ggplot2)
g <- ggplot(cars, aes(speed, dist))
g + geom_point() +
geom_smooth()
Eleanor scores 680 on the Mathematics part of the SAT. The distribution of SAT scores in a reference population is Normal, with mean 500 and standard deviation 100. Gerald takes the American College Testing (ACT) Mathematics test and scores 27. ACT scores are Normally distributed with mean 18 and standard deviation 6. Assuming that both tests measure the same kind of ability, who did better?
The best way to compare their performance is to calculate their standardized scores.
\[z_E = \frac{680 - 500}{100} = 1.8\] \[z_G = \frac{27 - 18}{6} = 1.5\]
Since, Eleanor has a higher standardized score, we can conclude that Eleanor did better!
Which of these two scatterplots have a higher correlation?
Both have the same correlation.
Linda is 31 years old, single, outspoken, and very bright. She majored in philosophy. As a student, she was deeply concerned with issues of discrimination and social justice, and also participated in anti-nuclear demonstrations.
Which is more probable?
Think about the probabilities of each event, and that of both of them together.
If you chose (2), stop back and think. Suppose we denote the event of Linda being a teller by A and the event she is active in the feminist movement by B, then probabilities in question can be written as.
This is called the conjugacy fallacy that occurs when it is assumed that specific conditions are more probable than a single general one.
The length of human pregnancies from conception to birth varies according to a distribution that is approximately Normal with mean 266 days and standard deviation 16 days.
This is a hint
What is the sample space for this experiment?
Submit and Compare ClearThe solid curve represents the distribution of heights of all males in the US. The dotted curve represents the distribution of heights reported by males on OkCupid, an online dating website.
HTML widgets are interactive graphics made for the web. These are the main libraries available: