Learn R Programming

kdecopula (version 0.9.2)

simulate.kdecopula: Simulate data from a kdecop() fit.

Description

See rkdecop().

Usage

# S3 method for kdecopula
simulate(object, nsim = 1, seed = NULL, quasi = FALSE,
  ...)

Arguments

object

an object of class kdecopula.

nsim

integer; number of observations.

seed

integer; set.seed(seed) will be called prior to rkdecop().

quasi

logical; the default (FALSE) returns pseudo-random numbers, use TRUE for quasi-random numbers (generalized Halton, see

...

unused.

Value

Simulated data from the fitted kdecopula model.

Examples

Run this code
# NOT RUN {
data(wdbc)
udat <- apply(wdbc[, -1], 2, function(x) rank(x) / (length(x) + 1))
fit <- kdecop(udat[, 5:6])
plot(simulate(fit, 500))

# }

Run the code above in your browser using DataLab