Description Usage Arguments Details Author(s) Examples
View source: R/sfcr_portfolio.R
The sfcr_portfolio()
function calculates a valid matrix of portfolio
parameters by applying the symmetry condition and then filling the missing
rows accordingly to the vertical and horizontal adding-up constraints.
1 | sfcr_portfolio(m, known)
|
m |
A matrix of parameter names |
known |
A named vector of known parameters. One entry for each symmetry condition is enough to find a valid matrix. |
This function calculates only the values of the rates of return matrix, i.e., the internal matrix. The adding-up constraint number 1, that calculates the share of assets in the net wealth and the impact of regular income to wealth ratio must be calculated separately.
If supplied with insufficient parameters, the function will return a matrix with NA values.
This function requires at least (n^2 - n)/2 known parameters to find a valid portfolio matrix, where n is the number of rows/columns. This is achieved by setting known parameters outside the diagonal and not on symmetrical entries, i.e., not lambda12 and lambda21, for example.
João Macalós
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.