1
\name{feasiblePortfolio}
4
\alias{feasiblePortfolio}
7
\title{Portfolio Class}
12
Returns properties of a feasible portfolio.
18
feasiblePortfolio(data, spec = portfolioSpec(), constraints = "LongOnly")
26
a character string vector, containing the constraints of the form\cr
27
\code{"minW[asset]=percentage"} for box constraints resp. \cr
28
\code{"maxsumW[assets]=percentage"} for sector constraints.
31
a multivariate time series described by an S4 object of class
32
\code{timeSeries}. If your timeSerie is not a \code{timeSeries}
33
object, consult the generic function \code{as.timeSeries} to
34
convert your time series.
37
an S4 object of class \code{fPFOLIOSPEC} as returned by the function
46
\bold{A Feasible Portfolio:}
49
A feasible portfolio is a portfolio with given weights which
50
lies inside the feasible region of portfolios.
52
The function requires three arguments: \code{data}, \code{spec}
53
(specifications), and \code{constraints}, see above. Be sure that
54
the specification structure \code{"spec"} has defined a weights
55
vector which is different from \code{"NULL"}. To assign values
56
to the weights in the specification structure, use the function
59
The \code{feasiblePortfolio} function returns the properties of
60
the feasible portfolio as an S4 object of class \code{fPORTFOLIO}.
67
\code{feasiblePortfolio} function returns an S4 object of class
68
\code{"fPORTFOLIO"}, with the following slots:
71
a call, returning the matched function call.
74
a list with two named elements, \code{series} holding the time series
75
data if available, otherwise NA, and \code{statistics}, itself a
76
named list with two named elements \code{mu} and \code{Sigma}
77
holding the vector of means and the matrix of covariances.
80
a character string, allowing for a brief project description.
83
a list, containing parameter specifications for the portfolio:\cr
84
\code{weights} a numeric vector specifying the portfolio
86
\code{targetReturn} a numeric value specifying the target
88
\code{targetRisk} a numeric value specifying the target
90
\code{targetMean} a numeric value specifying the target
91
return determinated with function mean(),\cr
92
\code{targetStdev} a numeric value specifying the target risk in
93
standart deviation as risk measure.
95
\item{@specification}{
96
a list with one named element \code{spec} which represents an object
97
of class \code{fPFOLIOSPEC}, including all information about
98
the portfolio specifications.
113
# Load Data and Convert to timeSeries Object:
114
Data = as.timeSeries(data(smallcap.ts))
115
Data = Data[, c("BKE", "GG", "GYMB", "KRON")]
119
# Set Default Specifications:
120
Spec = portfolioSpec()
121
setWeights(Spec) = rep(0.25, times = 4)
124
## Allow for unlimited Short Selling:
125
Constraints = "LongOnly"
127
## Compute properties of Efficient Portfolio
128
feasiblePortfolio(Data, Spec, Constraints)