Learn R Programming

PCRA (version 1.2)

mathTport: Tangency Portfolio Weights

Description

Computes the portfolio weights of the tangency portfolio, and its mean return and volatility. The tangency portfolio is defined by the line connecting the zero volatility risk-free rate to its tangency point on the efficient frontier.

Usage

mathTport(returns, rf = 0.005, digits = NULL)

Value

Tangency portfoliow weights, mean and volatility

Arguments

returns

A vector or xts object

rf

The risk-free rate, default 0.005

digits

Number of significant digits default NULL

Examples

Run this code
args(mathTport)

Run the code above in your browser using DataLab