Description Usage Arguments Author(s) See Also Examples
The diversification constraint specifies a target
diversification value. This function is called by
add.constraint when type="diversification" is specified,
see add.constraint
.
1 2 3 |
type |
character type of the constraint |
div_target |
diversification target value |
enabled |
TRUE/FALSE |
message |
TRUE/FALSE. The default is message=FALSE. Display messages if TRUE. |
... |
any other passthru parameters to specify diversification constraint an object of class 'diversification_constraint' |
Ross Bennett
1 2 3 4 5 6 | data(edhec)
ret <- edhec[, 1:4]
pspec <- portfolio.spec(assets=colnames(ret))
pspec <- add.constraint(portfolio=pspec, type="diversification", div_target=0.7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.