Learn R Programming

kdevine (version 0.4.5)

dkdevine: Evaluate the density of a kdevine object

Description

Evaluate the density of a kdevine object

Usage

dkdevine(x, obj)

Value

The density estimate evaluated at x.

Arguments

x

(\(m x d\)) matrix of evaluation points (or vector of length \(d\)).

obj

a kdevine object.

See Also

kdevine

Examples

Run this code
# load data
data(wdbc)
wdbc <- wdbc[1:30, ]
# estimate density (use xmin to indicate positive support)
fit <- kdevine(wdbc[, 5:7], xmin = rep(0, 3))

# evaluate density estimate
dkdevine(c(1000, 0.1, 0.1), fit)

Run the code above in your browser using DataLab