quantile_coef_density_BMS | R Documentation |
Static rip of the quantile.coef.density function and relevant internals from the BMS package as the package is archived.
quantile_coef_density_BMS(
x,
probs = seq(0.25, 0.75, 0.25),
names = TRUE,
normalize = TRUE,
...
)
x |
a object of class pred.density, coef.density, density, or a list of densities |
probs |
numeric vector of probabilities with values in range 0 - 1. Elements very close to the boundaries return Inf or -Inf |
names |
logical; if TRUE, the result has a names attribute, resp. a rownames and colnames attributes. Set to FALSE for speedup with many probs |
normalize |
logical if TRUE then the values in x$y are multiplied with a factor such that their integral is equal to one |
... |
further arguments passed to or from other methods. |
If x is of class density (or a list with exactly one element), a vector with quantiles. If x is a list of densities with more than one element (e.g. as resulting from pred.density or coef.density), then the output is a matrix of quantiles, with each matrix row corresponding to the respective density.
static rip from BMS package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.