| pputil.omega {pprobeSup} | R Documentation |
Returns a utility based on the scenarios for the omega ratio (or a weighted sum of omega ratios) – a value for each random portfolio.
pputil.omega(rp, scenarios, target, simple = FALSE, verbose = FALSE) pputil.multomega(rp, scenarios, target, weights simple = FALSE, verbose = FALSE)
rp |
a random portfolio object. |
scenarios |
a three-dimensional array: times in rows, assets in columns and scenarios in the third dimension. For |
target |
the target return for the omega ratio. |
weights |
vector of weights to combine omega ratios from different times. There is no assumption that the weights sum to a specific value. |
simple |
logical value: if |
verbose |
logical value, if |
a numeric vector as long as the number of random portfolios.
The utility for each portfolio is the omega ratio
(across scenarios) for pputil.omega.
For pputil.multomega the omega ratio at each time of the
returns is computed (across scenarios) and then the weighted mean
of the omega ratios is returned.
if verbose is TRUE, then printing is done.
In test suite, mildly tested.
This help file was last revised 2013 May 02.
scenario.optimizer, pputil.fourmoments,
pputil.meanvar, pputil.value.
omegaOpt <- scenario.optimizer(scenWith2timepoints, utility=pputil.omega, extraArgs=list(target=0.04), max.weight=.07, gross=1e7, long.only=TRUE, port.size=c(20,30)) multomegaOpt <- scenario.optimizer(scenWith4timepoints, utility=pputil.omega, extraArgs=list(target=0.04, weights=c(3, 3, 4)), max.weight=.07, gross=1e7, long.only=TRUE, port.size=c(20,30))