Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: VaR
See also: VaRcopula VaRsimcopula VaRestMCcopula

Quantlet: VaRfitcopula
Description: fits the copula to a given data

Link:
Usage: res = VaRfitcopula(history,copula,method)
Input:
history n x 2 matrix, the data
copula scalar, integer between 1 and 22, selects the copula; see VaRcopula for details
method scalar, selects the method for estimation method=1 returns the least squares fit for the cdf method=2 returns a copula maximum likelihood fit for the pdf, using the Newton Method, fall back to 3 if it fails method=3 returns a copula maximum likelihood fit for the pdf, using an interval search, slower than 2, but more stable method=4 returns a true maximum likelihood fit for the pdf
Output:
res list containing the estimates of the copula parameter and standard deviations of two marginal Normal distributions

Example:
library("VaR")
randomize(1)
x=normal(100,2)
VaRfitcopula(x,4,1)

Result:
Contents of res.theta
[1,]   2.3617
Contents of res.Sigma1
[1,]  0.98477
Contents of res.Sigma2
[1,]  0.90471



Author: J. Rank, T. Siegl, Z. Hlavka, 20010725
(C) MD*TECH Method and Data Technologies, 05.02.2006