new_quantile {scpoisson} | R Documentation |
A more "continuous" approximation of quantiles of samples with a few integer case
Description
This function returns a data frame including data points and corresponding quantile.
Usage
new_quantile(data, sample)
Arguments
data |
A numeric vector of sampled data points. |
sample |
A character string denotes which sample data points come from. |
Details
This is a function developed to get quantile for samples with only a few integer values.
Define both p_{-1} = 0
and q_{-1} = 0
.
Replace the point mass at each integer z
by a bar on the interval [z – \frac{1}{2}, z+ \frac{1}{2}]
with height P(X = z)
. This is a more "continuous" approximation of quantiles in this case.
Value
A data frame contains the corresponding probability from cumulative distribution function (CDF), sample name, and corresponding respective quantiles.
[Package scpoisson version 0.0.1 Index]