Description Usage Arguments Details Value Note Author(s) References See Also Examples

Calculate Sortino ratio based on a vector of gains (or prices). The formula is: (mean(gains) - rf) / sd(negatives(gains)). Here rf is some risk-free rate of return, gains is a vector of gains (usually daily, but could be weekly, monthly, or some other time interval), and negatives(gains) gets the subset of gains that are negative. User can specify prices or gains.

1 |

`gains` |
Numeric vector of gains. |

`prices` |
Numeric vector of stock prices (typically daily closing prices). |

`rf` |
Risk-free rate of return hypothetically available to the investor. |

NA

Numeric value indicating the Sortino ratio.

Several definitions of Sortino ratio are commonly used; this simple version may or may not be the one you prefer.

Dane R. Van Domelen

Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.