PortfolioAnalytics (version 1.1.0)

centroid.complete.mc: Complete Cases Centroid

Description

Numerical method to estimate complete cases centroid

Usage

centroid.complete.mc(order, simulations = 1000)

Arguments

order

a vector of indexes of the relative ranking of expected asset returns in ascending order. For example, order = c(2, 3, 1, 4) expresses a view on the expected returns such that R_2 < R_3 < R_1 < R_4

simulations

number of simulations

Value

the centroid vector

Examples

Run this code
# NOT RUN {
# Express a view on the assets such that
# R_2 < R_1 < R_3 < R_4
centroid.complete.mc(c(2, 1, 3, 4))
# }

Run the code above in your browser using DataCamp Workspace