fitted.kdecopula: Extract fitted values from a 'kdecop()' fits.

Description Usage Arguments See Also Examples

Description

Simply calls predict(object, object$udata, what).

Usage

1
2
## S3 method for class 'kdecopula'
fitted(object, what = "pdf", ...)

Arguments

object

an object of class kdecopula.

what

what to predict, one of c("pdf", "cdf", "hfunc1", "hfunc2", "hinv1", "hinv2").

...

unused.

See Also

predict.kdecopula()

Examples

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

all.equal(fitted(fit), predict(fit, fit$udata))

kdecopula documentation built on May 2, 2019, 1:06 a.m.