1
\name{fPFOLIOSPEC-class}
5
\alias{class-fPFOLIOSPEC}
7
\alias{fPFOLIOSPEC-class}
9
\alias{show,fPFOLIOSPEC-method}
12
\title{Specification of Portfolios}
23
\S4method{show}{fPFOLIOSPEC}(object)
30
an S4 object of class \code{fPFOLIOSPEC}.
38
\bold{Portfolio Specifcation Structure:}
41
The S4 class \code{fPFOLIOSPEC} specifies the portfolio. The slots
46
a call, returning the matched function call.
49
a list, setting the \code{type} of portfolio to be optimized,
50
and the mean/covariance \code{estimator} to be applied:
52
\code{type=c("MV","CVaR")} a character string denoting the type of
53
portfolio, the implemented types are the
54
Mean-Variance Markowitz Portfolio, \code{"MV"}, and the
55
Mean-CVaR Portfolio, \code{"CVaR"}.
57
\code{estimator=c("mean","cov")} a vector of two character
58
strings, the first denoting the mean estimator, and the
59
second the covariance estimator. Additional meaningful
60
selections include robust covariance estimators, e.g.
61
\code{c("mean","mcd")}, or \code{c("mean","shrink")}.
63
\code{tailRisk=list()} a list of optional tail risk information,
64
currently not used.\cr
65
\code{params=list()} a list of optional model parameters,
69
a list, settings portfolio parameters including predefined
70
weights, target return, risk free rate, number of frontier
73
\code{weights=NULL} a numeric vector specifying the portfolio
76
\code{targetReturn=NULL} a numeric value specifying the target
77
return. The default value sets the target return.
79
\code{targetRisk=NULL} a numeric value specifying the target
81
\code{targetAlpha=NULL} a numeric value specifying the target
82
alpha confidence level for CVaR portfolio optimization.
83
The default value sets the target return.
85
\code{riskFreeRate=0} a numeric value specifying the risk free
88
\code{nFrontierPoints=50} a numeric value determining the number
89
of points on the efficient frontier.
92
a list, setting the type of solver to be used for portfolio
95
\code{type=c("quadprog", "Rdonlp2", "lpSolve")} a character
96
string specifying the name of the solver to be used.\cr
97
\code{trace=FALSE} a logical flag, should the optimization be
101
a title string, with a default project title.
104
a character string, with a default project description.
113
\code{portfolioSpec}\cr
115
returns an S4 object of class \code{"fPFOLIOSPEC"}.
126
# Show Default Portfolio Specifications:
127
Spec = portfolioSpec()
129
# Change Risk Free Rate
130
setRiskFreeRate(Spec) = 3