1
\name{portfolioFrontier}
4
\alias{portfolioFrontier}
7
\title{Efficient Portfolio Frontier}
12
Compoutes the efficient portfolio frontier.
18
portfolioFrontier(data, spec = portfolioSpec(), constraints = "LongOnly",
19
include.mvl = TRUE, title = NULL, description = NULL)
27
a character string vector, containing the constraints of the form\cr
28
\code{"minW[asset]=percentage"} for box constraints resp. \cr
29
\code{"maxsumW[assets]=percentage"} for sector constraints.
32
a multivariate time series described by an S4 object of class
33
\code{timeSeries}. If your timeSerie is not a \code{timeSeries}
34
object, consult the generic function \code{as.timeSeries} to
35
convert your time series.
38
a character string which allows for a brief description.
41
a logical flag, should the minimum variance locus be added to the
45
an S4 object of class \code{fPFOLIOSPEC} as returned by the function
49
a character string which allows for a project title.
56
\bold{Portfolio Frontier:}
60
The function \code{portfolioFrontier} calculates the whole efficient
61
frontier. The portfolio information consists of five arguments: data,
62
specifications, constraints, title and description.
64
The range of the frontier is determined from the range of the asset
65
returns, and the number of equidistant points in the returns, is
66
calculated from the number of frontier points hold in the specifrication
67
structure. To extract or to modify the number of frontier points
68
use the functions \code{getNFrontierPoints} and \code{setNFrontierPoints}.
71
The \code{frontierPortfolio} function returns the properties of
72
the the efficient frontier as an S4 object of class \code{fPORTFOLIO}.
79
\code{portfolioFrontier} function returns an S4 object of class
90
## portfolioFrontier -
92
# Load Data and Convert to timeSeries Object:
93
Data = as.timeSeries(data(smallcap.ts))
94
Data = Data[, c("BKE", "GG", "GYMB", "KRON")]
97
# Set Default Specifications:
98
Spec = portfolioSpec()
100
setNFrontierPoints = 10
102
# Allow for unlimited Short Selling:
103
Constraints = "LongOnly"
105
# Compute 10 points efficient frontier:
106
portfolioFrontier(Data, Spec, Constraints)