
i
i
“K23166” — 2015/1/28 — 9:35 — page 33 — #59
i
i
i
i
i
i
Chapter 3
Statistical and mathematical
functions
This chapter reviews key statistical, probability, mathematical, and matrix functions.
3.1 Probability distributions and random
number generation
Quantiles and cumulative distribution values can be calculated easily within R. Random
variables are commonly needed for simulation and analysis. These can be generated for a
large number of distributions.
A seed can be specified for the random number generator. This is important to allow
replication of results (e.g., while testing and debugging). Information about random number
seeds can be found in 3.1.3.
Table ...