predict.kdecopula | R Documentation |
kdecop()
fitsPredicts the pdf, cdf, or (inverse) h-functions by calling dkdecop()
,
pkdecop()
, or hkdecop()
.
## S3 method for class '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))
all.equal(predict(fit, udat, "hfunc1"), hkdecop(udat, fit, cond.var = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.