[R-SIG-Finance] R Package for Backtesing VaR Estimates

alexios ghalanos alexios at 4dscape.com
Sat Mar 12 15:35:12 CET 2011

The rgarch package (on r-forge) implements (but does not export) the
exceedance tests of Kupiec ( unconditional ) and Christoffersen
( conditional ).

You can call it as follows:
rgarch:::.VaRreport("", "", "", p, actual, VaR, conf.level = 0.95)

where "p" is the quantile used (e.g. 0.05), "VaR" the actual predicted
VaR vector, and "actual" the realized returns vector.

For a more general test on the predictive distribution have a look at
the 'BerkowitzLR' function which is exported.


Alexios Ghalanos

On Sat, 2011-03-12 at 05:37 -0800, johnmwamba wrote:
> Hi everybody'
> I have VaR estimates computed with different methodologies using
> PerformanceAnalytics package. I divided my sample space into two - the
> in-sample and the out-sample. I now want to backtest my VaR estimates in the
> out-sample space; using for example the number of exceedances (i.e. truely
> observed losses that are greater than the VaR estimates in that out-sample
> space). Is there any package I can use? 
> Thank you very much for helping
> --
> View this message in context: http://r.789695.n4.nabble.com/R-Package-for-Backtesing-VaR-Estimates-tp3350219p3350219.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.

More information about the R-SIG-Finance mailing list