Description Objects from the Class Slots Methods Author(s) Examples
This class is intended to hold the results for the weights of an optimal portfolio. Currently, this class is used for minimum-variance and equal-risk-contributed portfolios. It can further be used to store the results of optimal factor weights according to one of the aforementioned portfolio types.
Objects can be created by calls of the form new("PortSol", ...)
.
weights
:Numeric, vector of optimal weights.
opt
:List, the result of the call to the optimizing function.
type
:Character, the type of the optimized portfolio.
call
:The call to the function that created the object.
signature(object = "PortSol")
: Returns the
portfolio type as text with the optimal weights from the object.
signature(object = "PortSol")
: Returns the
list object of the optimizer, i.e. the slot opt
from
the object.
signature(object = "PortSol")
: Returns the list
object of the optimizer, i.e. the slot weights
from
the object.
signature(object = "PortSol")
: updates object
by calling the issuing function with altered arguments.
Bernhard Pfaff
1 | showClass("PortSol")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.