Description Usage Arguments Value
View source: R/cma.initialize.r
This function creates a cma object.
1 2 3 4 5 |
as_of_date |
Date assumptions were created. Default NULL. |
classes |
List of names of asset classes. Default list() |
ret |
Vector of returns, same length as classes. In decimal (e.g. 0.05 for five percent). Default vector("numeric"). |
yield |
Vector of yield, same length as classes. In decimal (e.g. 0.05 for five percent). Default vector("numeric"). |
growth |
Vector of growth, same length as classes. In decimal (e.g. 0.05 for five percent). Default vector("numeric"). |
risk |
Vector of standard deviations, same length as classes. In decimal (e.g. 0.05 for five percent). Default vector("numeric"). |
corr |
Correlation matrix, same length as classes. In decimal (e.g. 0.05 for five percent). Default NULL. |
cov |
Covariance matrix, same length as classes. In decimal (e.g. 0.05 for five percent). Default NULL. If null calculates the covariance matrix from the correlation matrix and standard deviations if both are provided. |
boxMin |
Vector of minimum wts per asset class. Default is 0 if classes is not empty otherwise list() |
boxMax |
Vector of maximum wts per asset class. Default is 1 if classes is not empty otherwise list() |
constraints |
List of constraints. Each constraint is a numeric vector with length equal to number of classes. The dot (scalar) product of this vector and the portfolio weights must be at least zero to satisfy the constraint. Default List(). |
constraints.names |
List of the names of constraints. Length should match length of constraints. Default List(). |
A list containing items related to the CMA including: as of date, classes, number of classes ret, yield, growth, risk, correlations, covariance, box min, box max and constraints.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.