Compute named sequential quantiles, primarily for producing summary-style output.
ntile.names (n, symbol="q", …, emph = n / 2)quartiles (xf, col=FALSE, …,
prob=FALSE, names = ntile.names (4, "Q", emph=emph), emph=2)
deciles (xf, col=FALSE, …,
prob=FALSE, names = ntile.names (10, "D", emph=emph), emph=5)
ntiles (n, xf, col=FALSE, …, prob=FALSE, names)
Integer, the number of sequential quantiles.
String, letter/symbol for the quantile names.
A numeric vector, suitable function object, or an object that can be coerced to a numeric vector. Here, a suitable function object is a quantile function. Refer to the references and see also sections.
Logical, if true, return a single-column matrix.
Logical, if false (the default), name quantiles by index/names, if true, name quantiles by probability.
Character vector, giving the names. Ignored, if rank is false.
In principle, an integer vector in 1:(n-1), which quantiles to emphasize. Can also be a numeric vector, but the floor/ceiling values are used.
Other arguments. Refer to details.
ntiles.names returns a character vector.
The other functions return a named numeric vector (if col=FALSE), or a named single-column matrix (if col=TRUE).
If xf is a numeric vector, a qfuv.el object is created using xf as the main argument. Any arguments contained within …, are passed to the qfuv.el constructor.
If xf is not a quantile function, these functions try to coerce it to a numeric vector, and apply the above.
Refer to the vignette for an overview, references and better examples.
Succinct Constructors Discrete Kernel Smoothing, Continuous Kernel Smoothing, Empirical-Like Distributions
# NOT RUN {
prep.ph.data ()
cFht <- qfuv.cks (height)
quartiles (cFht)
quartiles (cFht, prob=TRUE)
quartiles (height)
# }
Run the code above in your browser using DataLab