Skip to content
Prev 1625 / 15274 Next

pointers on using VaR.gpd with return series?

Sylvain BARTHELEMY wrote:
Ouch the default parameters there are two possible fixes setting the 
cut-off threshold using p.tr helps.

(a)  doing the following call on your data comes back with some results..

 > v1 <- VaR.gpd(as.vector(eurusd),p.tr=0.95)

(b) The other alternate is to rewrite VaR.gpd and set  hessian=FALSE 
where it makes the call to maximize the log-likelihood.

optim(init, gpd.liklhd, *hessian = TRUE*, method = "Nelder-Mead") :


Neither of these are "the solution"  as this is more an Art than a 
science. Method (a) relates to the question of  how to pick the 
threshold. Very few and
 you have biased fit and too many you are no longer fitting the tail.

In this context I would point you towards the evir library and the 
excellent book by Alex Mcneill on this but doing the following should 
give you some hints..

 >require(evir)
 >shape(danish)

Hope this helps,

Best
Krishna