71_quantile-based_summaries: Order-Based Summary Statistics

Description Usage Arguments Details Value References See Also Examples

Description

Compute named sequential quantiles, primarily for producing summary-style output.

Usage

1
2
3
4
5
6
7
8
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)

Arguments

n

Integer, the number of sequential quantiles.

symbol

String, letter/symbol for the quantile names.

xf

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.

col

Logical, if true, return a single-column matrix.

prob

Logical, if false (the default), name quantiles by index/names, if true, name quantiles by probability.

names

Character vector, giving the names.
Ignored, if rank is false.

emph

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.

Details

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.

Value

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).

References

Refer to the vignette for an overview, references and better examples.

See Also

Succinct Constructors
Discrete Kernel Smoothing, Continuous Kernel Smoothing, Empirical-Like Distributions

probmv, rng

ph.mean, moment
ph.median, ph.quantile
ph.mode, ph.modes

Examples

1
2
3
4
5
6
7
prep.ph.data ()

cFht <- qfuv.cks (height)
quartiles (cFht)
quartiles (cFht, prob=TRUE)

quartiles (height)

probhat documentation built on May 12, 2021, 5:08 p.m.