Sample quantiles corresponding to the given probabilities for objects
of class "grouped.data"
.
# S3 method for grouped.data
quantile(x, probs = seq(0, 1, 0.25),
names = TRUE, …)
an object of class "grouped.data"
.
numeric vector of probabilities with values
in
logical; if true, the result has a names
attribute. Set to FALSE
for speedup with many probs
.
further arguments passed to or from other methods.
A numeric vector, named if names
is TRUE
.
The quantile function is the inverse of the ogive, that is a linear interpolation of the empirical quantile function.
The equation of the quantile function is
ogive
for the smoothed empirical distribution of which
quantile.grouped.data
is an inverse;
grouped.data
to create grouped data objects.
# NOT RUN {
data(gdental)
quantile(gdental)
Fn <- ogive(gdental)
Fn(quantile(gdental)) # inverse function
# }
Run the code above in your browser using DataLab