Description Usage Arguments References Examples
Creates a fPFOLIOCON object from string constraints.
1 2 | ## S4 method for signature 'fPFOLIOCON'
show(object)
|
object |
an object of class |
Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## getClass-
getClass("fPFOLIOCON")
## getSlots -
getSlots("fPFOLIOCON")
## data -
Data = SMALLCAP.RET
print(head(Data))
print(class(Data))
## spec -
Spec = portfolioSpec()
setTargetReturn(Spec) = mean(Data)
## constraints -
Constraints = "LongOnly"
portfolioConstraints(Data, Spec, Constraints)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.