Learn R Programming

PortfolioAnalytics (version 2.1.0)

centroid.complete.mc: Complete Cases Centroid

Description

Numerical method to estimate complete cases centroid

Usage

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

Value

the centroid vector

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

Author

Ross Bennett

Examples

Run this code
# 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 DataLab