quantile_coef_density_BMS {fossilbrush}R Documentation

quantile_coef_density_BMS

Description

Static rip of the quantile.coef.density function and relevant internals from the BMS package as the package is archived.

Usage

quantile_coef_density_BMS(
  x,
  probs = seq(0.25, 0.75, 0.25),
  names = TRUE,
  normalize = TRUE,
  ...
)

Arguments

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.

Value

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.

Source

static rip from BMS package


[Package fossilbrush version 1.0.3 Index]