R: Statistical Functions - Johns Hopkins Bloomberg School of Public Health
[Pages:40]R: Statistical Functions
140.776 Statistical Computing October 6, 2011
140.776 Statistical Computing
R: Statistical Functions
Probability distributions
R supports a large number of distributions. Usually, four types of functions are provided for each distribution:
d*: density function p*: cumulative distribution function, P(X x) q*: quantile function r*: draw random numbers from the distribution * represents the name of a distribution.
140.776 Statistical Computing
R: Statistical Functions
Probability distributions
140.776 Statistical Computing
R: Statistical Functions
Probability distributions
The distributions supported include continuous distributions: unif: Uniform norm: Normal t: t chisq: Chi-square f: F gamma: Gamma exp: Expomential beta: Beta lnorm: Log-normal
140.776 Statistical Computing
R: Statistical Functions
Probability distributions
As well as discrete ones: binom: Binomial geom: Geometric hyper: Hypergeometric nbinom: Negative binomial pois: Poisson
140.776 Statistical Computing
R: Statistical Functions
Probability distributions
Examples of using these functions: Generate 5 random numbers from N(2, 22).
140.776 Statistical Computing
R: Statistical Functions
Probability distributions
Generate 5 random numbers from N(2, 22)
> rnorm(5, mean=2, sd=2) [1] 5.4293122 -0.6731407 -1.1743455 1.5155376 -0.3100879
140.776 Statistical Computing
R: Statistical Functions
Probability distributions
Obtain 95% quantile for the standard normal distribution
140.776 Statistical Computing
R: Statistical Functions
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- relational algebra ii california institute of technology
- the aggregate production function new york university
- sf simple features for r washington university in st louis
- the microeconomic foundations of aggregate production functions
- sf simple features for r
- sql aggregate functions
- hyperspec work with hyperspectral data i e spectra meta
- package aggregater cran
- package spectacles the comprehensive r archive network
- aggregation edu
Related searches
- illinois department of public health worker registry
- list of public health issues
- illinois department of public health cna
- department of public health complaints
- list of public health laws
- examples of public health issues
- master of public health jobs
- department of public health vaccines
- illinois department of public health license
- department of public health texas
- illinois department of public health forms
- department of public health and environment