Given a kernel estimate of a probability density, compute quantiles.
1 2 3
Object of class
Numeric vector of probabilities for which the quantiles are required.
Logical value indicating whether to attach names (based on
Logical value indicating whether to issue a warning if the
This function calculates quantiles of the probability distribution
whose probability density has been estimated and stored in the object
x. The object
x must belong to the class
and would typically have been obtained from a call to the function
The probability density is first normalised so that the total
probability is equal to 1. A warning is issued if the density
estimate was restricted to an interval (i.e. if
was created by a call to
included either of the arguments
Next, the density estimate is numerically integrated to obtain an estimate of the cumulative distribution function F(x). Then for each desired probability p, the algorithm finds the corresponding quantile q.
The quantile q corresponding to probability p
satisfies F(q) = p up to
the resolution of the grid of values contained in
The quantile is computed from the right, that is,
q is the smallest available value of x such that
F(x) >= p.
A numeric vector containing the quantiles.
Loading required package: nlme Loading required package: rpart spatstat 1.51-0 (nickname: 'Poetic Licence') For an introduction to spatstat, type 'beginner' Note: spatstat version 1.51-0 is out of date by more than 3 months; we recommend upgrading to the latest version. 0% 25% 50% 75% 100% -0.4808121 0.3388859 0.6302478 0.8788766 1.5043334
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.