Robert W. Walker
September 11, 2017
Break down simply into
The empirical rule.
pnorm(2)-pnorm(-2)## [1] 0.9544997
Comparing the deaths to a hypothetical.
Four commands
* rbinom(sample.size, n, p(yes))
* dbinom(x, n, p(yes))
* pbinom(x, n, p(yes))
* qbinom(p, n, p(yes))
Four commands
* rpois(sample.size, lambda)
* dpois(x, lambda)
* ppois(x, lambda
* qpois(p, lambda)
Four commands
* runif(sample.size, a, b)
* dunif(x, a, b)
* punif(x, a, b)
* qunif(p, a, b)
Four commands
* rnorm(sample.size, mu, sig)
* dnorm(x, mu, sig)
* pnorm(x, mu, sig)
* qnorm(p, mu, sig)
plot(density(data)) or hist(data) show samples.
The assignment operator or equals to save samples <- or =
What values can x take? `poss.x <- seq(min.x, max.x, by=units)