powered by
Predictions of the density and distribution function for a vine copula model.
# S3 method for vinecop predict(object, newdata, what = "pdf", n_mc = 10^4, ...)# S3 method for vinecop fitted(object, what = "pdf", n_mc = 10^4, ...)
# S3 method for vinecop fitted(object, what = "pdf", n_mc = 10^4, ...)
a vinecop object.
vinecop
points where the fit shall be evaluated.
what to predict, either "pdf" or "cdf".
"pdf"
"cdf"
number of samples used for quasi Monte Carlo integration when what = "cdf".
what = "cdf"
unused.
fitted() and predict() have return values similar to dvinecop() and pvinecop().
fitted()
predict()
dvinecop()
pvinecop()
# NOT RUN { u <- sapply(1:5, function(i) runif(50)) fit <- vinecop(u, "par") all.equal(predict(fit, u), fitted(fit)) # }
Run the code above in your browser using DataLab