Learn R Programming

kdevine (version 0.4.1)

rkdevine: Simulate from a kdevine object

Description

Simulate from a kdevine object

Usage

rkdevine(n, obj)

Arguments

n

number of observations.

obj

a kdevine object.

Value

An \(n x d\) matrix of simulated data from the kdevine object.

See Also

kdevine, rkdevinecop, rkde1d

Examples

Run this code
# NOT RUN {
# load and plot data
data(wdbc)
# }
# NOT RUN {
# estimate density
fit <- kdevine(wdbc[, 5:7], xmin = rep(0, 3))

# plot simulated data
pairs(rkdevine(nrow(wdbc), fit))

# }

Run the code above in your browser using DataLab