simulate.kdecopula {kdecopula}R Documentation

Simulate data from a kdecop() fit.

Description

See rkdecop().

Usage

## S3 method for class '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

data(wdbc)
udat <- apply(wdbc[, -1], 2, function(x) rank(x) / (length(x) + 1))
fit <- kdecop(udat[, 5:6])
plot(simulate(fit, 500))


[Package kdecopula version 0.9.2 Index]