Learn R Programming

kdevine (version 0.4.1)

dkdevine: Evaluate the density of a kdevine object

Description

Evaluate the density of a kdevine object

Usage

dkdevine(x, obj)

Arguments

x

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

obj

a kdevine object.

Value

The density estimate evaluated at x.

See Also

kdevine

Examples

Run this code
# NOT RUN {
# load data
data(wdbc)
# }
# NOT RUN {
# 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