| clusterQp | R Documentation |
Sample quantiles in each cluster of observations.
clusterQp(
formula,
data,
f_sum_ = mean.default,
probs = seq.int(from = 0.01, to = 0.99, by = 0.01),
...
)
formula |
formula,
including response
|
data |
data.frame |
f_sum_ |
function to summarize the sample quantiles from
lower-level cluster |
probs |
double vector,
probabilities |
... |
additional parameters of function quantile |
Function clusterQp returns an aggregated data.frame, in which
the highest cluster c_1 and cluster-specific covariate(s) x's
are retained.
If the input formula takes form of y ~ . | c1 or y ~ . - z1 | c1,
then all covariates (except for z_1) are considered cluster-specific;
Sample quantiles from lower-level clusters (e.g., c_2) are point-wise summarized using function f_sum_.
response y is removed; instead, a double matrix of N columns stores
the cluster-specific sample quantiles.
This matrix
is named after the parsed expression of response y in formula;
colnames are the probabilities \mathbf{p}, for the ease of subsequent programming.
# see ?`Qindex-package` for examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.