Skip to content

error in VaR calculation

2 messages · G Girija, Joshua Ulrich

#
r != R (you mis-typed the first argument to VaR).  This works:

library(PerformanceAnalytics)
data(sample_matrix)
x <- Return.calculate(as.xts(sample_matrix))
VaR(R=x, p=0.99, method="historical")

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com
On Tue, Jun 25, 2013 at 7:35 AM, G Girija <girijagun at gmail.com> wrote: