# Plots VaR against confidene level given geometric return data
data <- runif(5, min = 0, max = .2)
LogtVaRPlot2DCL(returns = data, investment = 5, df = 6, cl = seq(.85,.99,.01), hp = 60)
# Computes VaR against confidence level given mean and standard deviation of return data
LogtVaRPlot2DCL(mu = .012, sigma = .03, investment = 5, df = 6, cl = seq(.85,.99,.01), hp = 40)
Run the code above in your browser using DataLab