ashDensity {refineR} | R Documentation |
Estimate density of distribution employing the R package "ash" using R-wrapper function.
Description
Estimate density of distribution employing the R package "ash" using R-wrapper function.
Usage
ashDensity(x, ab, nbin, m, kopt = c(2, 1), normToAB = FALSE)
Arguments
x |
(numeric) vector of data points |
ab |
(numeric) vector of lower and higher truncation limit of density estimation |
nbin |
(integer) specifying the number of bins used for density estimation |
m |
(integer) specifying the width of the smoothing kernel(s) used for density estimation |
kopt |
(integer) vector specifying the smoothing kernel |
normToAB |
(logical) specifying if the density is normed to the interval ab or to all data points in x |
Value
(list) with density estimation (x values, y values, m and ab).
Author(s)
Christopher Rank christopher.rank@roche.com, Tatjana Ammer tatjana.ammer@roche.com
[Package refineR version 1.6.1 Index]