kdecop() fitsPredicts the pdf, cdf, or (inverse) h-functions by calling dkdecop(),
pkdecop(), or hkdecop().
# S3 method for kdecopula predict(object, newdata, what = "pdf", stable = FALSE, ...)
| object | an object of class |
|---|---|
| newdata | evaluation point(s), a length two vector or a matrix with two columns. |
| what | what to predict, one of |
| stable | only used for |
| ... | unused. |
A numeric vector of predictions.
data(wdbc) udat <- apply(wdbc[, -1], 2, function(x) rank(x) / (length(x) + 1)) fit <- kdecop(udat[, 5:6]) all.equal(predict(fit, c(0.1, 0.2)), dkdecop(c(0.1, 0.2), fit))#> [1] TRUE#> [1] TRUE