meanVariancePortfolioOptimizer: meanVariancePortfolioOptimizer

Description Usage Arguments Value Examples

View source: R/CQF_FA_FunctPFOpt.R

Description

MPT mean Variance Portfolio Optimizer

Usage

1
2
3
meanVariancePortfolioOptimizer(asset.name, mu.vector, sigma.vector,
  correl.matrix, covar.matrix = NA, use.covar.matrix = FALSE,
  target.return, rf, print.out = FALSE, opt.focus.type = "return")

Arguments

asset.name

Name of assets available

mu.vector

vector with estimated returns of investment objects

sigma.vector

vector with the volatilities of the investment objects

correl.matrix

correlation matrix of the investment objects

use.covar.matrix

use covariance matrix directly or build it via sigma vector and the correlation matrix, default is FALSE

target.return

which return level is seeked (for which the variance is minimized)

rf

risk free return

covar.matrx

covariance matrix

Value

weight.risky.assets a vector with the weights of the risky assets

Examples

1
2
3
weights.vector          <- c(0.7,0.3)
daily.returns.data.wide <- data.frame(ref.date=c(Sys.Date()-2:0), asset1.ret=c(-0.02,0.005,0.004), asset2.ret=c(0,-0.001,0.02))
PFstats(weights.vector=weights.vector, daily.returns.data.wide=daily.returns.data.wide)

theteetrinker/CQFFA documentation built on July 17, 2019, 3:37 p.m.