Pearson0 | R Documentation |
Density, distribution function, quantile function and random generation for the Pearson type 0 (aka Normal) distribution.
dpearson0(x, mean, sd, params, log = FALSE)
ppearson0(q, mean, sd, params, lower.tail = TRUE, log.p = FALSE)
qpearson0(p, mean, sd, params, lower.tail = TRUE, log.p = FALSE)
rpearson0(n, mean, sd, params)
x , q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of observations. |
mean |
location parameter (and expectation) |
sd |
scale parameter (and standard deviation) |
params |
optional vector/list containing distribution parameters |
log , log.p |
logical; if |
lower.tail |
logical; if |
Distributions of type 0 have been added to the Pearson Distribution system
in order to have the normal distributions not only nested as limits of other
distribution types.
The functions are only wrappers for dnorm
, pnorm
, qnorm
and rnorm
contained in package stats
.
dpearson0
gives the density, ppearson0
gives the distribution
function, qpearson0
gives the quantile function, and rpearson0
generates random deviates.
Martin Becker martin.becker@mx.uni-saarland.de
See the references in Normal
.
Normal
,
PearsonDS-package
,
Pearson
## define Pearson type 0 parameter set with mean=-1, sd=2
p0pars <- list(mean=-1, sd=2)
## calculate probability density function
dpearson0(-4:1,params=p0pars)
## calculate cumulative distribution function
ppearson0(-4:1,params=p0pars)
## calculate quantile function
qpearson0(seq(0.1,0.9,by=0.2),params=p0pars)
## generate random numbers
rpearson0(5,params=p0pars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.