Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

table.DownsideRisk

Downside Risk Summary: Statistics and Stylized Facts


Description

Creates a table of estimates of downside risk measures for comparison across multiple instruments or funds.

Usage

table.DownsideRisk(
  R,
  ci = 0.95,
  scale = NA,
  Rf = 0,
  MAR = 0.1/12,
  p = 0.95,
  digits = 4
)

Arguments

R

an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns

ci

confidence interval, defaults to 95%

scale

number of periods in a year (daily scale = 252, monthly scale = 12, quarterly scale = 4)

Rf

risk free rate, in same period as your returns

MAR

Minimum Acceptable Return, in the same periodicity as your returns

p

confidence level for calculation, default p=.99

digits

number of digits to round results to

Author(s)

Peter Carl

See Also

Examples

data(edhec)
table.DownsideRisk(edhec, Rf=.04/12, MAR =.05/12, p=.95)

result=t(table.DownsideRisk(edhec, Rf=.04/12, MAR =.05/12, p=.95))
require("Hmisc")
textplot(format.df(result, na.blank=TRUE, numeric.dollar=FALSE, 
         cdec=rep(3,dim(result)[2])), rmar = 0.8, cmar = 1.5,  
         max.cex=.9, halign = "center", valign = "top", row.valign="center", 
         wrap.rownames=15, wrap.colnames=10, mar = c(0,0,3,0)+0.1)
title(main="Downside Risk Statistics")

PerformanceAnalytics

Econometric Tools for Performance and Risk Analysis

v2.0.4
GPL-2 | GPL-3
Authors
Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb], Joshua Ulrich [ctb], Eric Zivot [ctb], Dries Cornilly [ctb], Eric Hung [ctb], Matthieu Lestel [ctb], Kyle Balkissoon [ctb], Diethelm Wuertz [ctb], Anthony Alexander Christidis [ctb], R. Douglas Martin [ctb], Zeheng 'Zenith' Zhou [ctb], Justin M. Shea [ctb]
Initial release
2020-02-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.