rkdevine: Simulate from a kdevine object

View source: R/kdevine.R

rkdevineR Documentation

Simulate from a kdevine object

Description

Simulate from a kdevine object

Usage

rkdevine(n, obj, quasi = FALSE)

Arguments

n

number of observations.

obj

a kdevine object.

quasi

logical; the default (FALSE) returns pseudo-random numbers, use TRUE for quasi-random numbers (generalized Halton, only works for fully nonparametric fits).

Value

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

See Also

kdevine, rkdevinecop, rkde1d

Examples

# load and plot data
data(wdbc)

# estimate density
fit <- kdevine(wdbc[, 5:7], xmin = rep(0, 3))

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


kdevine documentation built on June 22, 2024, 10:52 a.m.