Prediction method for kdecop() fits
Predicts 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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.